Template:Syllabus: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
(16 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: | |||
Use the [[form:syllabus]]. | |||
<pre> | <pre> | ||
{{syllabus | {{syllabus | ||
|is_part_of_syllabus= | |is_part_of_syllabus= | ||
| | |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= | ||
| | |prerequisite= | ||
|objective= | |objective= | ||
|difficulty= | |difficulty= | ||
Line 18: | Line 21: | ||
}} | }} | ||
</pre> | </pre> | ||
</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>{{# | <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> | ||
}} | }} | ||
{{#if:{{{ | {{#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 | <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:{{{ | {{#if:{{{last_modification|}}}|<td><span style="font-size:20px;font-weight:900;">⚒⚒</span> {{{last_modification|}}}</td>|<td></td>}} | ||
</tr> | </tr> | ||
{{#if:{{{ | {{#if:{{{prerequisite|}}}| | ||
<tr> | <tr> | ||
<th style="text-align: center; background-color:#ccccff;" colspan="2"> | <th style="text-align: center; background-color:#ccccff;" colspan="2">Prerequisite(s)</th> | ||
<tr> | <tr> | ||
<td colspan="2"><ul>{{#arraymap:{{{ | <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 | <td colspan="2"><ul>{{#arraymap:{{{objective|}}}|,|x|<li>x</li>||}}</ul></td> | ||
</tr> | </tr> | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{{applies_to|}}}| | ||
<tr> | <tr> | ||
<th style="text-align: center; background-color:#ccccff;" colspan="2"> | <th style="text-align: center; background-color:#ccccff;" colspan="2">Applies to</th> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td colspan="2"><ul>{{#arraymap:{{{ | <td colspan="2"><ul>{{#arraymap:{{{applies_to|}}}|,|x|<li>x</li>||}}</ul></td> | ||
</tr> | </tr> | ||
}} | }} | ||
{{#ifeq:{{{do_not_show_sub_page|}}}| | {{#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">[[: | <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 | <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 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={{{ | {{#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|}}} }} | ||
Line 119: | Line 130: | ||
{{#set:last important modification={{{last_modification|}}}}} | {{#set:last important modification={{{last_modification|}}}}} | ||
{{#set:difficulty={{{difficulty|}}}}} | {{#set:difficulty={{{difficulty|}}}}} | ||
{{#if:{{{cat_syllabus|}}}|{{#set:syllabus category= | {{#if:{{{cat_syllabus|}}}|{{#set:syllabus category={{{cat syllabus|}}}}}}} | ||
{{#if:{{{prerequisite|}}}|{{#arraymap:{{{prerequisite|}}}|,|x|{{#set:prerequisite=x}} }} }} | {{#if:{{{prerequisite|}}}|{{#arraymap:{{{prerequisite|}}}|,|x|{{#set:prerequisite=x}} }} }} | ||
{{#if:{{{cat_syllabus|}}}|[[category:{{{cat_syllabus|}}}]]}} | |||
{{#default_form:syllabus}} | {{#default_form:syllabus}} | ||
[[Category:syllabus page]] | [[Category:syllabus page]] |
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= }}