« Modèle:Tutoriel » : différence entre les versions
Aller à la navigation
Aller à la recherche
mAucun résumé des modifications |
m (Annulation des modifications 172630 de Daniel K. Schneider (discussion)) Balise : Annulation |
||
(197 versions intermédiaires par 3 utilisateurs non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
<noinclude> | <noinclude> | ||
Ceci est le modèle « tutoriel ». Il devrait être appelé selon le format suivant : | 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> | <pre> | ||
{{tutoriel | {{tutoriel | ||
|fait_partie_du_cours= | |fait_partie_du_cours= | ||
|page_parente= | |fait_partie_du_module= | ||
|page_suivante= | |est module de= | ||
|page_precedente= | |page_parente= | ||
|statut= | |page_suivante= | ||
|derniere_modif= | |page_precedente= | ||
|prérequis= | |statut= | ||
|objectif= | |editeur= | ||
|difficulté= | |derniere_modif= | ||
|voir_aussi= | |prérequis= | ||
}} | |objectif= | ||
</pre> | |difficulté= | ||
Modifier la page pour voir le texte du modèle. | |voir_aussi= | ||
</noinclude><includeonly><!-- | }} | ||
</pre> | |||
Modifier la page pour voir le texte du modèle. | |||
</noinclude><includeonly> | |||
<table cellspacing="8" style="width: 272px; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 5px; float: right; clear: right; text-align:left;"> | |||
<tr> | |||
<th style="text-align:center; margin:10px auto; background-color:#ccccff; border:1px solid rgb(190, 190,240);padding:8px;" colspan="2"> | |||
<big>{{#ifexist:{{{fait_partie_du_cours|}}}|[[{{{fait_partie_du_cours|}}}]][[category:{{{fait_partie_du_cours|}}}]]|{{PAGENAME}} }}</big></th> | |||
</tr> | |||
{{#if:{{{fait_partie_du_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: [[{{{fait_partie_du_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> | |||
</tr> | |||
}} | |||
{{#if:{{{est_module_de|}}}| | |||
<tr><!-- code page entree 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">''Page d'entrée du module''<br/>[[{{{est_module_de|}}}]] </th> | |||
</tr> | |||
}} | |||
{{#if:{{{page_parente|}}}| | |||
<tr> | |||
<th colspan="2" style="text-align:center;font-size:30px;font-weight:900;"> [[{{{page_parente|}}}|▲]]</th> | |||
</tr> | |||
}} | |||
<tr><!-- code page --> | |||
<th colspan="2" style="margin-bottom:10px;">{{#if:{{{page_precedente|}}}|<span style="float:left;font-size:30px;font-weight:900;margin-bottom:10px">[[{{{page_precedente|}}}|◀▬]]</span>}}{{#if:{{{page_suivante|}}}|<span style="float:right;font-size:30px;font-weight:900;margin-bottom:10px">[[{{{page_suivante|}}}|▬▶]]</span>}}</th> | |||
</tr> | |||
<tr> | |||
<td><span style="font-size:20px;font-weight:900;background-color:green">⚐</span> {{{statut|}}}</td> | |||
<td><span style="font-size:20px;font-weight:900;">☸</span> {{{difficulté|}}}</td> | |||
</tr> | |||
<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>}} | |||
</tr> | |||
{{#if:{{{pages_prérequises|}}}| | |||
<tr> | |||
<th style="text-align: center; background-color:#ccccff;" colspan="2">Prérequis</th> | |||
<tr> | |||
<td colspan="2"><ul>{{#arraymap:{{{pages_prérequises|}}}|,|x|<li>[[x]]</li>||}}</ul></td> | |||
</tr> | |||
}} | |||
{{#if:{{{objectif|}}}| | |||
<tr> | |||
<th style="text-align: center; background-color:#ccccff;" colspan="2">Objectifs</th> | |||
</tr> | |||
<tr> | |||
<td colspan="2"><ul>{{#arraymap:{{{objectif|}}}|,|x|<li>x</li>||}}</ul></td> | |||
</tr> | |||
}} | |||
{{#if:{{{voir_aussi|}}}| | |||
<tr> | |||
<th style="text-align: center; background-color:#ccccff;" colspan="2">Voir aussi</th> | |||
</tr> | |||
<tr> | |||
<td colspan="2"><ul>{{#arraymap:{{{voir_aussi|}}}|,|x|<li>[[x|{{#titleparts: x | | -1}}]]</li>||}}</ul></td> | |||
</tr> | |||
}} | |||
{{#ifeq:{{{all_pages_module|}}}| | |||
<tr> | |||
<th style="text-align: center; background-color:#ccccff;" colspan="2">Contenu du module</th> | |||
</tr> | |||
<tr> | |||
<td colspan="2"><ul>{{#arraymap:{{{A_FAIRE_NE_MARCHE_PAS_DKS}}}|,|x|<li>[[x|{{#titleparts: x | | -1}}]]</li>||}}</ul></td> | |||
</tr> | |||
}} | |||
{{#if:{{{pages_module|}}}| | |||
<tr> | |||
<th style="text-align: center; background-color:#ccccff;" colspan="2">Autres pages du module</th> | |||
</tr> | |||
<tr> | |||
<td colspan="2"><ul>{{#arraymap:{{{pages_module|}}}|,|x|<li>[[x|{{#titleparts: x | | -1}}]]</li>||}}</ul></td> | |||
</tr> | |||
}} | |||
{{#ifeq:{{{pas_afficher_sous-page|}}}|Oui| |{{#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">Sous-pages et productions: {{#subpages:default=aucune}} </td></tr>}} | |||
}} | |||
{{#if:{{{cat tutoriels|}}}| | |||
<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 tutoriels|}}}]][[Catégorie: {{{cat tutoriels|}}}]]</tr> | |||
}} | |||
</table> | |||
{{#arraymap:{{{prérequis|}}}|,|x|{{#set:prérequis=x}} }} | |||
{{#arraymap:{{{objectif|}}}|,|x|{{#set:objectif=x}} }} | |||
{{#arraymap:{{{voir_aussi|}}}|,|x|{{#set:voir aussi=x}} }} | |||
{{#arraymap:{{{pages_module|}}}|,|x|{{#set:pages du module=x}} }} | |||
{{#set:fait partie du cours={{{fait_partie_du_cours|}}} }} | {{#set:fait partie du cours={{{fait_partie_du_cours|}}} }} | ||
{{#set:fait partie du module={{{fait_partie_du_module|}}} }} | |||
{{#set:page parente={{{page_parente|}}} }} | {{#set:page parente={{{page_parente|}}} }} | ||
{{#set:est module de={{{est_module_de|}}} }} | |||
{{#set:module suivant={{{module_suivant|}}} }} | |||
{{#set:module précédant={{{module_précédant|}}} }} | |||
{{#set:page suivante={{{page_suivante|}}} }} | {{#set:page suivante={{{page_suivante|}}} }} | ||
{{#set:page précédente={{{page_precedente|}}} }} | {{#set:page précédente={{{page_precedente|}}} }} | ||
{{#set:statut={{{statut|}}}}} | {{#set:statut={{{statut|}}}}} | ||
{ | {{#arraymap:{{{editeur|}}}|,|x|{{#set:editeur=x}} }} | ||
{{#set:dernière modification importante={{{dernière_modif|}}}}} | |||
{{#set:difficulté={{{difficulté|}}}}} | |||
{{#if:{{{cat tutoriels|}}}|{{#set:catégorie tutoriels=catégorie:{{{cat tutoriels|}}}}}}} | |||
{{#if:{{{pages_prérequises|}}}|{{#arraymap:{{{pages_prérequises|}}}|,|x|{{#set:page_prérequis=x}} }} }} | |||
| {{#arraymap:{{{ | |||
{{#default_form:tutoriel}} | |||
[[Catégorie:tutoriel]] | [[Catégorie:tutoriel]] | ||
</includeonly> | </includeonly><noinclude> | ||
[[Catégorie:Modèles]] | |||
</noinclude> |
Dernière version du 5 août 2023 à 10:05
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 !) :
{{tutoriel |fait_partie_du_cours= |fait_partie_du_module= |est module de= |page_parente= |page_suivante= |page_precedente= |statut= |editeur= |derniere_modif= |prérequis= |objectif= |difficulté= |voir_aussi= }}
Modifier la page pour voir le texte du modèle.