Template:Syllabus: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
{{syllabus | {{syllabus | ||
|is_part_of_syllabus= | |is_part_of_syllabus= | ||
| | |is_part_of_module= | ||
|is_module_of= | |is_module_of= | ||
|module_next= | |module_next= | ||
Line 26: | 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>{{#if:{{{is_part_of_syllabus|}}}|[[{{{is_part_of_syllabus|}}}]]|{{PAGENAME}} }}</big> | <big>{{#if:{{{is_part_of_syllabus|}}}|[[{{{is_part_of_syllabus|}}}]]|{{PAGENAME}} }}</big></th> | ||
</tr> | </tr> | ||
{{#if:{{{ | {{#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: [[{{{ | <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> | ||
}} | }} | ||
Line 50: | 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:{{{ | {{#if:{{{last_modification|}}}|<td><span style="font-size:20px;font-weight:900;">⚒⚒</span> {{{last_modification|}}}</td>|<td></td>}} | ||
</tr> | </tr> | ||
{{#if:{{{prerequisite|}}}| | {{#if:{{{prerequisite|}}}| | ||
Line 57: | Line 57: | ||
<th style="text-align: center; background-color:#ccccff;" colspan="2">Prerequisite(s)</th> | <th style="text-align: center; background-color:#ccccff;" colspan="2">Prerequisite(s)</th> | ||
<tr> | <tr> | ||
<td colspan="2"><ul>{{#arraymap:{{{prerequisite|}}}|,|x|<li>[[x]] | <td colspan="2"><ul>{{#arraymap:{{{prerequisite|}}}|,|x|<li>[[x]]</li>||}}</ul></td> | ||
</tr> | </tr> | ||
}} | }} | ||
Line 65: | 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> | |||
}} | |||
{{#if:{{{applies_to|}}}| | |||
<tr> | |||
<th style="text-align: center; background-color:#ccccff;" colspan="2">Applies to</th> | |||
</tr> | |||
<tr> | |||
<td colspan="2"><ul>{{#arraymap:{{{applies_to|}}}|,|x|<li>x</li>||}}</ul></td> | |||
</tr> | </tr> | ||
}} | }} | ||
Line 73: | Line 81: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td colspan="2"><ul>{{#arraymap:{{{see_also|}}}|,|x|<li>[[x]] | <td colspan="2"><ul>{{#arraymap:{{{see_also|}}}|,|x|<li>[[x]]</li>||}}</ul></td> | ||
</tr> | </tr> | ||
}} | }} | ||
{{#ifeq:{{{do_not_show_sub_page|}}}| | {{#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>}} | ||
}} | }} | ||
Line 87: | Line 95: | ||
{{#if:{{{objective|}}}| | {{#if:{{{objective|}}}| | ||
'''Objectives''' | '''Objectives''' | ||
<ul>{{#arraymap:{{{objective|}}}|,|x|<li>x | <ul>{{#arraymap:{{{objective|}}}|,|x|<li>x</li>||}}</ul> | ||
}} | }} | ||
{{#if:{{{prerequisite|}}}| | {{#if:{{{prerequisite|}}}| | ||
'''Prerequisites''' | '''Prerequisites''' | ||
<ul>{{#arraymap:{{{prerequisite|}}}|,|x|<li>[[x]] | <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]] | <ul>{{#arraymap:{{{see_also|}}}|,|x|<li>[[x]]</li>||}}</ul> | ||
}} | }} | ||
{{#if:{{{status|}}}| | {{#if:{{{status|}}}| | ||
Line 108: | 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={{{ | {{#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 10: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= }}