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
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 !) :
Ceci est le modèle « syllabus ». Il devrait être appelé selon le format suivant (enfin c'est le code et le formulaire qui font foi !) :
   <pre>
   <pre>
     {{tutoriel
     {{syllabus
     |fait_partie_du_cours=
     |is_part_of_syllabus=
     |fait_partie_du_module=
     |is_part_if_module=
     |est module de=
     |is_module_of=
     |page_parente=
     |page_parent=
     |page_suivante=
     |page_next=
     |page_precedente=
     |page_previous=
     |statut=
     |status=
     |editeur=
     |editor=
     |derniere_modif=
     |last_modification=
     |prérequis=
     |prérequis=
     |objectif=
     |objective=
     |difficulté=
     |difficulty=
     |voir_aussi=
     |see_also=
     }}
     }}
   </pre>
   </pre>
Line 24: Line 24:
     <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>{{#ifexist:{{{is_part_of_syllabus|}}}|[[{{{is_part_of_syllabus|}}}]][[category:{{{is_part_of_syllabus|}}}]]|{{PAGENAME}} }}</big></th>  
     </tr>
     </tr>
   {{#if:{{{fait_partie_du_module|}}}|
   {{#if:{{{is_part_if_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_if_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>
     </tr>
     </tr>
     }}
     }}
Line 36: Line 36:
     </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>
Line 58: Line 58:
     </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:{{{see_also/suites|}}}|
     <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">Voir aussi</th>
     </tr>
     </tr>
     <tr>
     <tr>
       <td colspan="2"><ul>{{#arraymap:{{{voir_aussi|}}}|,|x|<li>[[x]]}}</li></ul></td>
       <td colspan="2"><ul>{{#arraymap:{{{see_also|}}}|,|x|<li>[[x]]}}</li></ul></td>
     </tr>
     </tr>
     }}
     }}
Line 77: Line 77:
     <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><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>}}
     }}
     }}
   {{#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">[[:Catégorie: {{{cat syllabus|}}}]][[Catégorie: {{{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:{{{pages_prérequises|}}}|
'''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:{{{see_also|}}}|,|x|{{#set:see_also=x}} }}
   {{#set:fait partie du cours={{{fait_partie_du_cours|}}} }}
   {{#set:is part of syllabus={{{is_part_of_syllabus|}}} }}
   {{#set:fait partie du module={{{fait_partie_du_module|}}} }}
   {{#set:is part of module={{{is_part_if_module|}}} }}
   {{#set:page parente={{{page_parente|}}} }}
   {{#set:parent page={{{page_parent|}}} }}
   {{#set:est module de={{{est_module_de|}}} }}
   {{#set:is module of={{{is_module_of|}}} }}
   {{#set:module suivant={{{module_suivant|}}} }}
   {{#set:next module={{{module_next|}}} }}
   {{#set:module précédant={{{module_précédant|}}} }}
   {{#set:previous module={{{module_previous|}}} }}
   {{#set:page suivante={{{page_suivante|}}} }}
   {{#set:next page={{{page_next|}}} }}
   {{#set:page précédente={{{page_precedente|}}} }}
   {{#set:previous page={{{page_previous|}}} }}
   {{#set:statut={{{statut|}}}}}
   {{#set:status={{{status|}}}}}
   {{#arraymap:{{{editeur|}}}|,|x|{{#set:editeur=x}} }}
   {{#arraymap:{{{editor|}}}|,|x|{{#set:editor=x}} }}
   {{#set:dernière modification importante={{{dernière_modif|}}}}}  
   {{#set:last important modification={{{last_modification|}}}}}  
   {{#set:difficulté={{{difficulté|}}}}}
   {{#set:difficulty={{{difficulty|}}}}}
   {{#if:{{{cat tutoriels|}}}|{{#set:catégorie tutoriels=catégorie:{{{cat tutoriels|}}}}}}}
   {{#if:{{{cat syllabus|}}}|{{#set:catégorie syllabus=catégorie:{{{cat syllabus|}}}}}}}
   {{#if:{{{pages_prérequises|}}}|{{#arraymap:{{{pages_prérequises|}}}|,|x|{{#set:page_prérequis=x}} }} }}
   {{#if:{{{prerequisite|}}}|{{#arraymap:{{{prerequisite|}}}|,|x|{{#set:prerequisite=x}} }} }}


{{#default_form:tutoriel}}
{{#default_form:syllabus}}
[[Catégorie:tutoriel]]
[[Catégorie:syllabus]]
</includeonly><noinclude>
</includeonly><noinclude>
[[Catégorie:Modèles]]
[[Catégorie:templates]]
</noinclude>
</noinclude>

Revision as of 20:22, 16 March 2018

Ceci est le modèle « syllabus ». Il devrait être appelé selon le format suivant (enfin c'est le code et le formulaire qui font foi !) :

    {{syllabus
    |is_part_of_syllabus=
    |is_part_if_module=
    |is_module_of=
    |page_parent=
    |page_next=
    |page_previous=
    |status=
    |editor=
    |last_modification=
    |prérequis=
    |objective=
    |difficulty=
    |see_also=
    }}
  

Modifier la page pour voir le texte du modèle.


Catégorie:templates