Template:Syllabus: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
 
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
This is the « syllabus » template, almost identical to its French [[:fr:modèle:tutoriel]] version. It should be called roughly like this:
This is the « syllabus » template, almost identical to its French [[template:tutoriel]] version. It should be called roughly like this:
Use the [[form:syllabus]].
Use the [[form:syllabus]].
   <pre>
   <pre>
Line 84: Line 84:
     </tr>
     </tr>
     }}
     }}
     {{#ifeq:{{{do_not_show_sub_page|}}}|Yes| |{{#ifexpr:{{#subpagecount:}}>0|
     {{#if:{{{pages_module|}}}|
    <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>
      <th style="text-align: center; background-color:#ccccff;" colspan="2">Other module pages</th>
    </tr>
    <tr>
    <td colspan="2"><ul>{{#arraymap:{{{pages_module|}}}|,|x|<li>[[x|{{#titleparts: x | | -1}}]]</li>||}}</ul></td>
    </tr>
     }}
     }}
   {{#if:{{{cat syllabus|}}}|
   {{#if:{{{cat syllabus|}}}|
Line 112: Line 117:
}}
}}
</div>
</div>
  <!-- properties are "set" here -->
  {{#arraymap:{{{prerequisite|}}}|,|x|{{#set:prerequisite=x}} }}
  {{#arraymap:{{{objective|}}}|,|x|{{#set:objective=x}} }}
  {{#arraymap:{{{applies_to|}}}|,|x|{{#set:applies to=x}} }}
  {{#arraymap:{{{see_also|}}}|,|x|{{#set:see_also=x}} }}
  {{#set:is part of syllabus={{{is_part_of_syllabus|}}} }}
  {{#set:is part of module={{{is_part_of_module|}}} }}
  {{#set:parent page={{{page_parent|}}} }}
  {{#set:is module of={{{is_module_of|}}} }}
  {{#set:next module={{{module_next|}}} }}
  {{#set:previous module={{{module_previous|}}} }}
  {{#set:next page={{{page_next|}}} }}
  {{#set:previous page={{{page_previous|}}} }}
  {{#set:status={{{status|}}}}}
  {{#arraymap:{{{editor|}}}|,|x|{{#set:editor=x}} }}
  {{#set:last important modification={{{last_modification|}}}}}
  {{#set:difficulty={{{difficulty|}}}}}
  {{#if:{{{cat_syllabus|}}}|{{#set:syllabus category={{{cat syllabus|}}}}}}}
  {{#if:{{{prerequisite|}}}|{{#arraymap:{{{prerequisite|}}}|,|x|{{#set:prerequisite=x}} }} }}


{{#if:{{{cat_syllabus|}}}|[[category:{{{cat_syllabus|}}}]]}}
{{#if:{{{cat_syllabus|}}}|[[category:{{{cat_syllabus|}}}]]}}

Latest revision as of 13:09, 2 September 2022

This is the « syllabus » template, almost identical to its French template: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=
    }}