Template:Syllabus: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
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 !) :
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>
     {{syllabus
     {{syllabus
     |is_part_of_syllabus=
     |is_part_of_syllabus=
     |is_part_if_module=
     |is_part_of_module=
     |is_module_of=
     |is_module_of=
    |module_next=
    |module_previous=
     |page_parent=
     |page_parent=
     |page_next=
     |page_next=
Line 12: Line 15:
     |editor=
     |editor=
     |last_modification=
     |last_modification=
     |prérequis=
     |prerequisite=
     |objective=
     |objective=
     |difficulty=
     |difficulty=
Line 18: Line 21:
     }}
     }}
   </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:{{{is_part_of_syllabus|}}}|[[{{{is_part_of_syllabus|}}}]]|{{PAGENAME}} }}</big></th>  
<big>{{#if:{{{is_part_of_syllabus|}}}|[[{{{is_part_of_syllabus|}}}]]|{{PAGENAME}} }}</big></th>
     </tr>
     </tr>
   {{#if:{{{is_part_if_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: [[{{{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>
       <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>
     }}
     }}
Line 48: Line 50:
       <td><span style="font-size:20px;font-weight:900;">☸</span> {{{difficulty|}}}</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>
     }}
     }}
Line 63: Line 65:
     </tr>
     </tr>
     <tr>
     <tr>
       <td colspan="2"><ul>{{#arraymap:{{{objective|}}}|,|x|<li>x}}</li></ul></td>
       <td colspan="2"><ul>{{#arraymap:{{{objective|}}}|,|x|<li>x</li>||}}</ul></td>
     </tr>
     </tr>
     }}
     }}
     {{#if:{{{see_also/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:{{{see_also|}}}|,|x|<li>[[x]]}}</li></ul></td>
       <td colspan="2"><ul>{{#arraymap:{{{applies_to|}}}|,|x|<li>x</li>||}}</ul></td>
     </tr>
     </tr>
     }}
     }}
     {{#ifeq:{{{do_not_show_sub_page|}}}|Oui| |{{#ifexpr:{{#subpagecount:}}>0|
    {{#if:{{{see_also|}}}|
    <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>}}
     <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 syllabus|}}}|
   {{#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 syllabus|}}}]][[Catégorie: {{{cat syllabus|}}}]]</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>
Line 85: Line 95:
{{#if:{{{objective|}}}|
{{#if:{{{objective|}}}|
'''Objectives'''
'''Objectives'''
<ul>{{#arraymap:{{{objective|}}}|,|x|<li>x}}</li></ul>
<ul>{{#arraymap:{{{objective|}}}|,|x|<li>x</li>||}}</ul>
}}
}}
{{#if:{{{prerequisite|}}}|
{{#if:{{{prerequisite|}}}|
'''Prerequisites'''
'''Prerequisites'''
<ul>{{#arraymap:{{{prerequisite|}}}|,|x|<li>[[x]]}}</li></ul>
<ul>{{#arraymap:{{{prerequisite|}}}|,|x|<li>[[x]]</li>||}}</ul>
}}
}}
{{#if:{{{see_also|}}}|
{{#if:{{{see_also|}}}|
'''See also'''
'''See also'''
<ul>{{#arraymap:{{{see_also|}}}|,|x|<li>[[x]]}}</li></ul>
<ul>{{#arraymap:{{{see_also|}}}|,|x|<li>[[x]]</li>||}}</ul>
}}
}}
{{#if:{{{status|}}}|
{{#if:{{{status|}}}|
Line 106: Line 116:
   {{#arraymap:{{{prerequisite|}}}|,|x|{{#set:prerequisite=x}} }}
   {{#arraymap:{{{prerequisite|}}}|,|x|{{#set:prerequisite=x}} }}
   {{#arraymap:{{{objective|}}}|,|x|{{#set:objective=x}} }}
   {{#arraymap:{{{objective|}}}|,|x|{{#set:objective=x}} }}
  {{#arraymap:{{{applies_to|}}}|,|x|{{#set:applies to=x}} }}
   {{#arraymap:{{{see_also|}}}|,|x|{{#set:see_also=x}} }}
   {{#arraymap:{{{see_also|}}}|,|x|{{#set:see_also=x}} }}
   {{#set:is part of syllabus={{{is_part_of_syllabus|}}} }}
   {{#set:is part of syllabus={{{is_part_of_syllabus|}}} }}
   {{#set:is part of module={{{is_part_if_module|}}} }}
   {{#set:is part of module={{{is_part_of_module|}}} }}
   {{#set:parent page={{{page_parent|}}} }}
   {{#set:parent page={{{page_parent|}}} }}
   {{#set:is module of={{{is_module_of|}}} }}
   {{#set:is module of={{{is_module_of|}}} }}

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=
    }}