Template:Syllabus: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
(Created page with "<noinclude> Ceci est le modèle « tutoriel ». Il devrait être appelé selon le format suivant (enfin c'est le code et le formulaire qui font foi !) : <pre> {{tutoriel...")
 
mNo edit summary
 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
Ceci est le modèle « tutoriel ». Il devrait être appelé selon le format suivant (enfin c'est le code et le formulaire qui font foi !) :
This is the « syllabus » template, almost identical to its French [[:fr:modèle:tutoriel]] version. It should be called roughly like this:
Use the [[form:syllabus]].
   <pre>
   <pre>
     {{tutoriel
     {{syllabus
     |fait_partie_du_cours=
     |is_part_of_syllabus=
     |fait_partie_du_module=
     |is_part_of_module=
     |est module de=
     |is_module_of=
     |page_parente=
     |module_next=
     |page_suivante=
     |module_previous=
     |page_precedente=
     |page_parent=
     |statut=
     |page_next=
     |editeur=
     |page_previous=
     |derniere_modif=
     |status=
     |prérequis=
     |editor=
     |objectif=
     |last_modification=
     |difficulté=
     |prerequisite=
     |voir_aussi=
     |objective=
    |difficulty=
    |see_also=
     }}
     }}
   </pre>
   </pre>
Modifier la page pour voir le texte du modèle.


</noinclude><includeonly>
</noinclude><includeonly>
Line 24: Line 26:
     <tr>
     <tr>
       <th style="text-align:center; margin:10px auto; background-color:#ccccff; border:1px solid rgb(190, 190,240);padding:8px;" colspan="2">
       <th style="text-align:center; margin:10px auto; background-color:#ccccff; border:1px solid rgb(190, 190,240);padding:8px;" colspan="2">
<big>{{#ifexist:{{{fait_partie_du_cours|}}}|[[{{{fait_partie_du_cours|}}}]][[category:{{{fait_partie_du_cours|}}}]]|{{PAGENAME}} }}</big></th>  
<big>{{#if:{{{is_part_of_syllabus|}}}|[[{{{is_part_of_syllabus|}}}]]|{{PAGENAME}} }}</big></th>
     </tr>
     </tr>
   {{#if:{{{fait_partie_du_module|}}}|
   {{#if:{{{is_part_of_module|}}}|
     <tr><!-- code module -->
     <tr><!-- code module -->
       <th style="text-align:center; margin:10px auto; background-color:rgb(225,235,255);border:1px solid rgb(210, 210,245);padding:8px;" colspan="2">Module: [[{{{fait_partie_du_module|}}}]]  {{#if:{{{module_précédant|}}}|<span style="font-size:20px;font-weight:600;">[[{{{module_précédant|}}}|◀]]</span>}}  {{#if:{{{module_suivant|}}}|<span style="font-size:20px;font-weight:600">[[{{{module_suivant|}}}|▶]]</span>}}</th>
       <th style="text-align:center; margin:10px auto; background-color:rgb(225,235,255);border:1px solid rgb(210, 210,245);padding:8px;" colspan="2">Module: [[{{{is_part_of_module|}}}]]  {{#if:{{{module_next|}}}|<span style="font-size:20px;font-weight:600;">[[{{{module_next|}}}|◀]]</span>}}  {{#if:{{{module_next|}}}|<span style="font-size:20px;font-weight:600">[[{{{module_next|}}}|▶]]</span>}}</th>
     </tr>
     </tr>
     }}
     }}
   {{#if:{{{est_module_de|}}}|
   {{#if:{{{is_module_of|}}}|
     <tr><!-- code module -->
     <tr><!-- code module -->
       <th style="text-align:center; margin:10px auto; background-color:rgb(225,235,255);border:1px solid rgb(210, 210,245);padding:8px;" colspan="2">Module - page d'entrée<br/> [[{{{est_module_de|}}}]]  {{#if:{{{module_précédant|}}}|<span style="font-size:14px;font-weight:600;">[[{{{module_précédant|}}}|◀]]</span>}}  {{#if:{{{module_suivant|}}}|<span style="font-size:14px;font-weight:600">[[{{{module_suivant|}}}|▶]]</span>}}</th>
       <th style="text-align:center; margin:10px auto; background-color:rgb(225,235,255);border:1px solid rgb(210, 210,245);padding:8px;" colspan="2">Module - entry page<br/> [[{{{is_module_of|}}}]]  {{#if:{{{module_next|}}}|<span style="font-size:14px;font-weight:600;">[[{{{module_next|}}}|◀]]</span>}}  {{#if:{{{module_next|}}}|<span style="font-size:14px;font-weight:600">[[{{{module_next|}}}|▶]]</span>}}</th>
     </tr>
     </tr>
     }}
     }}
     {{#if:{{{page_parente|}}}|
     {{#if:{{{page_parent|}}}|
     <tr>
     <tr>
       <th colspan="2" style="text-align:center;font-size:30px;font-weight:900;"> [[{{{page_parente|}}}|▲]]</th>
       <th colspan="2" style="text-align:center;font-size:30px;font-weight:900;"> [[{{{page_parent|}}}|▲]]</th>
     </tr>
     </tr>
     }}
     }}
     <tr><!-- code page -->
     <tr><!-- code page -->
       <th colspan="2" style="margin-bottom:10px;">{{#if:{{{page_precedente|}}}|<span style="float:left;font-size:30px;font-weight:900;margin-bottom:10px">[[{{{page_precedente|}}}|◀▬]]</span>}}{{#if:{{{page_suivante|}}}|<span style="float:right;font-size:30px;font-weight:900;margin-bottom:10px">[[{{{page_suivante|}}}|▬▶]]</span>}}</th>
       <th colspan="2" style="margin-bottom:10px;">{{#if:{{{page_previous|}}}|<span style="float:left;font-size:30px;font-weight:900;margin-bottom:10px">[[{{{page_previous|}}}|◀▬]]</span>}}{{#if:{{{page_next|}}}|<span style="float:right;font-size:30px;font-weight:900;margin-bottom:10px">[[{{{page_next|}}}|▬▶]]</span>}}</th>
     </tr>
     </tr>
     <tr>
     <tr>
       <td><span style="font-size:20px;font-weight:900;">⚐</span> {{{statut|}}}</td>
       <td><span style="font-size:20px;font-weight:900;">⚐</span> {{{status|}}}</td>
       <td><span style="font-size:20px;font-weight:900;">☸</span> {{{difficulté|}}}</td>
       <td><span style="font-size:20px;font-weight:900;">☸</span> {{{difficulty|}}}</td>
     </tr>
     </tr>
<tr><td><span style="font-size:20px;font-weight:900;">⚒</span> {{REVISIONYEAR}}/{{REVISIONMONTH}}/{{REVISIONDAY2}}</td>
    <tr><td><span style="font-size:20px;font-weight:900;">⚒</span> {{REVISIONYEAR}}/{{REVISIONMONTH}}/{{REVISIONDAY2}}</td>
         {{#if:{{{dernière_modif|}}}|<td><span style="font-size:20px;font-weight:900;">⚒⚒</span> {{{dernière_modif|}}}</td>|<td></td>}}
         {{#if:{{{last_modification|}}}|<td><span style="font-size:20px;font-weight:900;">⚒⚒</span> {{{last_modification|}}}</td>|<td></td>}}
     </tr>
     </tr>
   {{#if:{{{pages_prérequises|}}}|
   {{#if:{{{prerequisite|}}}|
     <tr>
     <tr>
       <th style="text-align: center; background-color:#ccccff;" colspan="2">Prérequis</th>
       <th style="text-align: center; background-color:#ccccff;" colspan="2">Prerequisite(s)</th>
     <tr>
     <tr>
       <td colspan="2"><ul>{{#arraymap:{{{pages_prérequises|}}}|,|x|<li>[[x]]}}</li></ul></td>
       <td colspan="2"><ul>{{#arraymap:{{{prerequisite|}}}|,|x|<li>[[x]]</li>||}}</ul></td>
     </tr>
     </tr>
     }}
     }}
     {{#if:{{{objectif|}}}|
     {{#if:{{{objective|}}}|
     <tr>
     <tr>
       <th style="text-align: center; background-color:#ccccff;" colspan="2">Objectifs</th>
       <th style="text-align: center; background-color:#ccccff;" colspan="2">Objectives</th>
     </tr>
     </tr>
     <tr>
     <tr>
       <td colspan="2"><ul>{{#arraymap:{{{objectif|}}}|,|x|<li>x}}</li></ul></td>
       <td colspan="2"><ul>{{#arraymap:{{{objective|}}}|,|x|<li>x</li>||}}</ul></td>
     </tr>
     </tr>
     }}
     }}
     {{#if:{{{voir_aussi/suites|}}}|
     {{#if:{{{applies_to|}}}|
     <tr>
     <tr>
       <th style="text-align: center; background-color:#ccccff;" colspan="2">Voir aussi</th>
       <th style="text-align: center; background-color:#ccccff;" colspan="2">Applies to</th>
     </tr>
     </tr>
     <tr>
     <tr>
       <td colspan="2"><ul>{{#arraymap:{{{voir_aussi|}}}|,|x|<li>[[x]]}}</li></ul></td>
       <td colspan="2"><ul>{{#arraymap:{{{applies_to|}}}|,|x|<li>x</li>||}}</ul></td>
     </tr>
     </tr>
     }}
     }}
     {{#ifeq:{{{pas_afficher_sous-page|}}}|Oui| |{{#ifexpr:{{#subpagecount:}}>0|
    {{#if:{{{see_also|}}}|
     <tr><td style="text-align:left; margin:10px auto; background-color:rgb(225,235,255);border:1px solid rgb(210, 210,245);padding:8px;" colspan="2">Sous-pages et productions: {{#subpages:default=aucune}} </td></tr>}}
    <tr>
      <th style="text-align: center; background-color:#ccccff;" colspan="2">See also</th>
    </tr>
    <tr>
      <td colspan="2"><ul>{{#arraymap:{{{see_also|}}}|,|x|<li>[[x]]</li>||}}</ul></td>
    </tr>
    }}
     {{#ifeq:{{{do_not_show_sub_page|}}}|Yes| |{{#ifexpr:{{#subpagecount:}}>0|
     <tr><td style="text-align:left; margin:10px auto; background-color:rgb(225,235,255);border:1px solid rgb(210, 210,245);padding:8px;" colspan="2">Sub pages: {{#subpages:default=aucune}} </td></tr>}}
     }}
     }}
   {{#if:{{{cat tutoriels|}}}|
   {{#if:{{{cat syllabus|}}}|
   <tr><td style="text-align:left; margin:10px auto; background-color:rgb(225,235,255);border:1px solid rgb(210, 210,245);padding:8px;" colspan="2">[[:Catégorie: {{{cat tutoriels|}}}]][[Catégorie: {{{cat tutoriels|}}}]]</tr>
   <tr><td style="text-align:left; margin:10px auto; background-color:rgb(225,235,255);border:1px solid rgb(210, 210,245);padding:8px;" colspan="2">[[:Category: {{{cat syllabus|}}}]][[Category: {{{cat syllabus|}}}]]</tr>
   }}
   }}
   </table>
   </table>


<div class="onlyinprint">
<div class="onlyinprint">
{{#if:{{{objectif|}}}|
{{#if:{{{objective|}}}|
'''Objectifs'''
'''Objectives'''
<ul>{{#arraymap:{{{objectif|}}}|,|x|<li>x}}</li></ul>
<ul>{{#arraymap:{{{objective|}}}|,|x|<li>x</li>||}}</ul>
}}
}}
{{#if:{{{pages_prérequises|}}}|
{{#if:{{{prerequisite|}}}|
'''Prérequis'''
'''Prerequisites'''
<ul>{{#arraymap:{{{pages_prérequises|}}}|,|x|<li>[[x]]}}</li></ul>
<ul>{{#arraymap:{{{prerequisite|}}}|,|x|<li>[[x]]</li>||}}</ul>
}}
}}
{{#if:{{{voir_aussi|}}}|
{{#if:{{{see_also|}}}|
'''Voir aussi/suites'''
'''See also'''
<ul>{{#arraymap:{{{voir_aussi|}}}|,|x|<li>[[x]]}}</li></ul>
<ul>{{#arraymap:{{{see_also|}}}|,|x|<li>[[x]]</li>||}}</ul>
}}
}}
{{#if:{{{statut|}}}|
{{#if:{{{status|}}}|
<ul><li>Qualité: {{{statut|}}}</li></ul>
<ul><li>Quality: {{{status|}}}</li></ul>
}}
}}
{{#if:{{{difficulté|}}}|
{{#if:{{{difficulty|}}}|
<ul><li>Difficulté: {{{difficulté|}}}</li></ul>
<ul><li>Difficulty: {{{difficulty|}}}</li></ul>
}}
}}
</div>
</div>


   <!-- properties are "set" here -->
   <!-- properties are "set" here -->
   {{#arraymap:{{{prérequis|}}}|,|x|{{#set:prérequis=x}} }}
   {{#arraymap:{{{prerequisite|}}}|,|x|{{#set:prerequisite=x}} }}
   {{#arraymap:{{{objectif|}}}|,|x|{{#set:objectif=x}} }}
   {{#arraymap:{{{objective|}}}|,|x|{{#set:objective=x}} }}
   {{#arraymap:{{{voir_aussi|}}}|,|x|{{#set:voir aussi=x}} }}
   {{#arraymap:{{{applies_to|}}}|,|x|{{#set:applies to=x}} }}
   {{#set:fait partie du cours={{{fait_partie_du_cours|}}} }}
  {{#arraymap:{{{see_also|}}}|,|x|{{#set:see_also=x}} }}
   {{#set:fait partie du module={{{fait_partie_du_module|}}} }}
   {{#set:is part of syllabus={{{is_part_of_syllabus|}}} }}
   {{#set:page parente={{{page_parente|}}} }}
   {{#set:is part of module={{{is_part_of_module|}}} }}
   {{#set:est module de={{{est_module_de|}}} }}
   {{#set:parent page={{{page_parent|}}} }}
   {{#set:module suivant={{{module_suivant|}}} }}
   {{#set:is module of={{{is_module_of|}}} }}
   {{#set:module précédant={{{module_précédant|}}} }}
   {{#set:next module={{{module_next|}}} }}
   {{#set:page suivante={{{page_suivante|}}} }}
   {{#set:previous module={{{module_previous|}}} }}
   {{#set:page précédente={{{page_precedente|}}} }}
   {{#set:next page={{{page_next|}}} }}
   {{#set:statut={{{statut|}}}}}
   {{#set:previous page={{{page_previous|}}} }}
   {{#arraymap:{{{editeur|}}}|,|x|{{#set:editeur=x}} }}
   {{#set:status={{{status|}}}}}
   {{#set:dernière modification importante={{{dernière_modif|}}}}}  
   {{#arraymap:{{{editor|}}}|,|x|{{#set:editor=x}} }}
   {{#set:difficulté={{{difficulté|}}}}}
   {{#set:last important modification={{{last_modification|}}}}}  
   {{#if:{{{cat tutoriels|}}}|{{#set:catégorie tutoriels=catégorie:{{{cat tutoriels|}}}}}}}
   {{#set:difficulty={{{difficulty|}}}}}
   {{#if:{{{pages_prérequises|}}}|{{#arraymap:{{{pages_prérequises|}}}|,|x|{{#set:page_prérequis=x}} }} }}
   {{#if:{{{cat_syllabus|}}}|{{#set:syllabus category={{{cat syllabus|}}}}}}}
   {{#if:{{{prerequisite|}}}|{{#arraymap:{{{prerequisite|}}}|,|x|{{#set:prerequisite=x}} }} }}


{{#default_form:tutoriel}}
{{#if:{{{cat_syllabus|}}}|[[category:{{{cat_syllabus|}}}]]}}
[[Catégorie:tutoriel]]
{{#default_form:syllabus}}
[[Category:syllabus page]]
</includeonly><noinclude>
</includeonly><noinclude>
[[Catégorie:Modèles]]
[[Category:templates]]
</noinclude>
</noinclude>

Latest revision as of 11:50, 17 April 2019

This is the « syllabus » template, almost identical to its French fr:modèle:tutoriel version. It should be called roughly like this: Use the form:syllabus.

    {{syllabus
    |is_part_of_syllabus=
    |is_part_of_module=
    |is_module_of=
    |module_next=
    |module_previous=
    |page_parent=
    |page_next=
    |page_previous=
    |status=
    |editor=
    |last_modification=
    |prerequisite=
    |objective=
    |difficulty=
    |see_also=
    }}