« Modèle:Tutoriel » : différence entre les versions

De EduTech Wiki
Aller à la navigation Aller à la recherche
mAucun résumé des modifications
m (Annulation des modifications 172630 de Daniel K. Schneider (discussion))
Balise : Annulation
 
(35 versions intermédiaires par 3 utilisateurs non affichées)
Ligne 10 : Ligne 10 :
     |page_precedente=
     |page_precedente=
     |statut=
     |statut=
    |editeur=
     |derniere_modif=
     |derniere_modif=
     |prérequis=
     |prérequis=
Ligne 17 : Ligne 18 :
     }}
     }}
   </pre>
   </pre>
Modifier la page pour voir le texte du modèle.
Modifier la page pour voir le texte du modèle.  


</noinclude><includeonly>
</noinclude><includeonly>
<table class="noprint" 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;">
<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>
     <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">
Ligne 27 : Ligne 28 :
   {{#if:{{{fait_partie_du_module|}}}|
   {{#if:{{{fait_partie_du_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: [[{{{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>
       <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>
     </tr>
     }}
     }}
   {{#if:{{{est_module_de|}}}|
   {{#if:{{{est_module_de|}}}|
     <tr><!-- code module -->
     <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">Module - page d'entrée<br/> [[{{{est_module_de|}}}]] {{#if:{{{module_précédant|}}}|<span style="font-size:14px;font-weight:600;">[[{{{module_précédant|}}}|◀]]</span>}}  {{#if:{{{module_suivant|}}}|<span style="font-size:14px;font-weight:600">[[{{{module_suivant|}}}|▶]]</span>}}</th>
       <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>
     </tr>
     }}
     }}
Ligne 44 : Ligne 45 :
     </tr>
     </tr>
     <tr>
     <tr>
       <td><span style="font-size:20px;font-weight:900;">⚐</span> {{{statut|}}}</td>
       <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>
       <td><span style="font-size:20px;font-weight:900;">☸</span> {{{difficulté|}}}</td>
     </tr>
     </tr>
Ligne 54 : Ligne 55 :
       <th style="text-align: center; background-color:#ccccff;" colspan="2">Prérequis</th>
       <th style="text-align: center; background-color:#ccccff;" colspan="2">Prérequis</th>
     <tr>
     <tr>
       <td colspan="2"><ul>{{#arraymap:{{{pages_prérequises|}}}|,|x|<li>[[x]]}}</li></ul></td>
       <td colspan="2"><ul>{{#arraymap:{{{pages_prérequises|}}}|,|x|<li>[[x]]</li>||}}</ul></td>
     </tr>
     </tr>
     }}
     }}
Ligne 62 : Ligne 63 :
     </tr>
     </tr>
     <tr>
     <tr>
       <td colspan="2"><ul>{{#arraymap:{{{objectif|}}}|,|x|<li>x}}</li></ul></td>
       <td colspan="2"><ul>{{#arraymap:{{{objectif|}}}|,|x|<li>x</li>||}}</ul></td>
     </tr>
     </tr>
     }}
     }}
Ligne 70 : Ligne 71 :
     </tr>
     </tr>
     <tr>
     <tr>
       <td colspan="2"><ul>{{#arraymap:{{{voir_aussi|}}}|,|x|<li>[[x]]}}</li></ul></td>
       <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>
     </tr>
     }}
     }}
Ligne 81 : Ligne 98 :
   </table>
   </table>


  <!-- properties are "set" here -->
 
  {{#arraymap:{{{prérequis|}}}|,|x|{{#set:prérequis=x}} }}
{{#arraymap:{{{prérequis|}}}|,|x|{{#set:prérequis=x}} }}
  {{#arraymap:{{{objectif|}}}|,|x|{{#set:objectif=x}} }}
{{#arraymap:{{{objectif|}}}|,|x|{{#set:objectif=x}} }}
  {{#arraymap:{{{voir_aussi|}}}|,|x|{{#set:voir aussi=x}} }}
{{#arraymap:{{{voir_aussi|}}}|,|x|{{#set:voir aussi=x}} }}
  {{#set:fait partie du cours={{{fait_partie_du_cours|}}} }}
{{#arraymap:{{{pages_module|}}}|,|x|{{#set:pages du module=x}} }}
  {{#set:fait partie du module={{{fait_partie_du_module|}}} }}
{{#set:fait partie du cours={{{fait_partie_du_cours|}}} }}
  {{#set:page parente={{{page_parente|}}} }}
{{#set:fait partie du module={{{fait_partie_du_module|}}} }}
  {{#set:est module de={{{est_module_de|}}} }}
{{#set:page parente={{{page_parente|}}} }}
  {{#set:module suivant={{{module_suivant|}}} }}
{{#set:est module de={{{est_module_de|}}} }}
  {{#set:module précédant={{{module_précédant|}}} }}
{{#set:module suivant={{{module_suivant|}}} }}
  {{#set:page suivante={{{page_suivante|}}} }}
{{#set:module précédant={{{module_précédant|}}} }}
  {{#set:page précédente={{{page_precedente|}}} }}
{{#set:page suivante={{{page_suivante|}}} }}
  {{#set:statut={{{statut|}}}}}
{{#set:page précédente={{{page_precedente|}}} }}
  {{#set:editeur={{{editeur|}}}}}  
{{#set:statut={{{statut|}}}}}
  {{#set:dernière modification importante={{{dernière_modif|}}}}}  
{{#arraymap:{{{editeur|}}}|,|x|{{#set:editeur=x}} }}
  {{#set:difficulté={{{difficulté|}}}}}
{{#set:dernière modification importante={{{dernière_modif|}}}}}  
  {{#if:{{{cat tutoriels|}}}|{{#set:catégorie tutoriels=catégorie:{{{cat tutoriels|}}}}}}}
{{#set:difficulté={{{difficulté|}}}}}
  {{#if:{{{pages_prérequises|}}}|{{#arraymap:{{{pages_prérequises|}}}|,|x|{{#set:page_prérequis=x}} }} }}
{{#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}} }} }}


{{#default_form:tutoriel}}
{{#default_form:tutoriel}}

Dernière version du 5 août 2023 à 09: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.