Template:Syllabus: Difference between revisions
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 |
||
(25 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 | ||
| | |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= | |||
}} | }} | ||
</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> | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{{page_parent|}}}| | ||
<tr> | <tr> | ||
<th colspan="2" style="text-align:center;font-size:30px;font-weight:900;"> [[{{{ | <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:{{{ | <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> {{{ | <td><span style="font-size:20px;font-weight:900;">⚐</span> {{{status|}}}</td> | ||
<td><span style="font-size:20px;font-weight:900;">☸</span> {{{ | <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> | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{{objective|}}}| | ||
<tr> | <tr> | ||
<th style="text-align: center; background-color:#ccccff;" colspan="2"> | <th style="text-align: center; background-color:#ccccff;" colspan="2">Objectives</th> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td colspan="2"><ul>{{#arraymap:{{{ | <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:{{{ | {{#if:{{{see_also|}}}| | ||
<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> | ||
<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>}} | |||
}} | }} | ||
{{#if:{{{cat | {{#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> | ||
<div class="onlyinprint"> | <div class="onlyinprint"> | ||
{{#if:{{{ | {{#if:{{{objective|}}}| | ||
''' | '''Objectives''' | ||
<ul>{{#arraymap:{{{ | <ul>{{#arraymap:{{{objective|}}}|,|x|<li>x</li>||}}</ul> | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{{prerequisite|}}}| | ||
''' | '''Prerequisites''' | ||
<ul>{{#arraymap:{{{ | <ul>{{#arraymap:{{{prerequisite|}}}|,|x|<li>[[x]]</li>||}}</ul> | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{{see_also|}}}| | ||
''' | '''See also''' | ||
<ul>{{#arraymap:{{{ | <ul>{{#arraymap:{{{see_also|}}}|,|x|<li>[[x]]</li>||}}</ul> | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{{status|}}}| | ||
<ul><li> | <ul><li>Quality: {{{status|}}}</li></ul> | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{{difficulty|}}}| | ||
<ul><li> | <ul><li>Difficulty: {{{difficulty|}}}</li></ul> | ||
}} | }} | ||
</div> | </div> | ||
<!-- properties are "set" here --> | <!-- properties are "set" here --> | ||
{{#arraymap:{{{ | {{#arraymap:{{{prerequisite|}}}|,|x|{{#set:prerequisite=x}} }} | ||
{{#arraymap:{{{ | {{#arraymap:{{{objective|}}}|,|x|{{#set:objective=x}} }} | ||
{{#arraymap:{{{ | {{#arraymap:{{{applies_to|}}}|,|x|{{#set:applies to=x}} }} | ||
{{#set: | {{#arraymap:{{{see_also|}}}|,|x|{{#set:see_also=x}} }} | ||
{{#set: | {{#set:is part of syllabus={{{is_part_of_syllabus|}}} }} | ||
{{#set:page | {{#set:is part of module={{{is_part_of_module|}}} }} | ||
{{#set: | {{#set:parent page={{{page_parent|}}} }} | ||
{{#set:module | {{#set:is module of={{{is_module_of|}}} }} | ||
{{#set:module | {{#set:next module={{{module_next|}}} }} | ||
{{#set:page | {{#set:previous module={{{module_previous|}}} }} | ||
{{#set:page | {{#set:next page={{{page_next|}}} }} | ||
{{#set: | {{#set:previous page={{{page_previous|}}} }} | ||
{{#arraymap:{{{ | {{#set:status={{{status|}}}}} | ||
{{#set: | {{#arraymap:{{{editor|}}}|,|x|{{#set:editor=x}} }} | ||
{{#set: | {{#set:last important modification={{{last_modification|}}}}} | ||
{{#if:{{{ | {{#set:difficulty={{{difficulty|}}}}} | ||
{{#if:{{{ | {{#if:{{{cat_syllabus|}}}|{{#set:syllabus category={{{cat syllabus|}}}}}}} | ||
{{#if:{{{prerequisite|}}}|{{#arraymap:{{{prerequisite|}}}|,|x|{{#set:prerequisite=x}} }} }} | |||
{{#default_form: | {{#if:{{{cat_syllabus|}}}|[[category:{{{cat_syllabus|}}}]]}} | ||
[[ | {{#default_form:syllabus}} | ||
[[Category:syllabus page]] | |||
</includeonly><noinclude> | </includeonly><noinclude> | ||
[[ | [[Category:templates]] | ||
</noinclude> | </noinclude> |
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= }}