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

De EduTech Wiki
Aller à la navigation Aller à la recherche
mAucun résumé des modifications
mAucun résumé des modifications
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 :
<pre>
  <pre>
{{tutoriel
    {{tutoriel
|fait_partie_du_cours=
    |fait_partie_du_cours=
|page_parente=
    |page_parente=
|page_suivante=
    |page_suivante=
|page_precedente=
    |page_precedente=
|statut=
    |statut=
|derniere_modif=
    |derniere_modif=
|prérequis=
    |prérequis=
|objectif=
    |objectif=
|difficulté=
    |difficulté=
|voir_aussi=
    |voir_aussi=
}}
    }}
</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 style="width: 25em; min-width:10em; max-width:30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;">
  <table style="width: 25em; min-width:10em; max-width:30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;">
  <tr>
    <tr>
    <th style="text-align:center; margin:10px auto; background-color:#ccccff;" colspan="2">
      <th style="text-align:center; margin:10px auto; background-color:#ccccff;" colspan="2">
      <big>{{#if:{{{fait_partie_du_cours|}}}|{{{fait_partie_du_cours|}}}|{{PAGENAME}}}}</big></th>  
<big>{{#if:{{{fait_partie_du_cours|}}}|{{{fait_partie_du_cours|}}}|{{PAGENAME}} }}</big></th>  
  </tr>
    </tr>
{{#if:{{{page_parente|}}}|
    {{#if:{{{page_parente|}}}|
  <tr>
    <tr>
    <th colspan="2" style="text-align:center;font-size:30px;font-weight:900;"> [[{{{page_parente|}}}|▲]]</th>
      <th colspan="2" style="text-align:center;font-size:30px;font-weight:900;"> [[{{{page_parente|}}}|▲]]</th>
  </tr>
    </tr>
}}
    }}
  <tr>
    <tr>
    <th colspan="2" style="margin-bottom:10px;"><span style="float:left;font-size:30px;font-weight:900;">{{#if:{{{page_precedente|}}}|[[{{{page_precedente|}}}◀◀]]| }}</span> <span style="float:right;font-size:30px;font-weight:900;margin-bottom:10px">{{#if:{{{page_suivante|}}}|[[{{{page_suivante|}}}|▶▶]]| }}</span></th>
      <th colspan="2" style="margin-bottom:10px;"><span style="float:left;font-size:30px;font-weight:900;">{{#if:{{{page_precedente|}}}|[[{{{page_precedente|}}}◀◀]]| }}</span> <span style="float:right;font-size:30px;font-weight:900;margin-bottom:10px">{{#if:{{{page_suivante|}}}|[[{{{page_suivante|}}}|▶▶]]| }}</span></th>
  </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;">☑</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>
{{#if:{{{prérequis|}}|
    {{#if:{{{{prérequis|}}}|
  <tr>
    <tr>
    <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:{{{prérequis|}}}|,|x|<li>[[prérequis::x]]}}</li></ul></td>
      <td colspan="2"><ul>{{#arraymap:{{{prérequis|}}}|,|x|<li>[[prérequis::x]]}}</li></ul></td>
  </tr>}}
    </tr>}}
{{#if:{{{objectif|}}|
    {{#if:{{{objectif|}}}|
  <tr>
    <tr>
    <th style="text-align: center; background-color:#ccccff;" colspan="2">Objectifs</th>
      <th style="text-align: center; background-color:#ccccff;" colspan="2">Objectifs</th>
  </tr>
    </tr>
  <tr>
    <tr>
    <td colspan="2"><ul>{{#arraymap:{{{objectif|}}}|,|x|<li>[[objectif::x]]}}</li></ul></td>
      <td colspan="2"><ul>{{#arraymap:{{{objectif|}}}|,|x|<li>[[objectif::x]]}}</li></ul></td>
  </tr>
    </tr>
}}
    }}
{{#if:{{{voir_aussi|}}|
    {{#if:{{{voir_aussi|}}}|
  <tr>
    <tr>
    <th style="text-align: center; background-color:#ccccff;" colspan="2">Voir aussi</th>
      <th style="text-align: center; background-color:#ccccff;" colspan="2">Voir aussi</th>
  </tr>
    </tr>
  <tr>
    <tr>
    <td colspan="2"><ul>{{#arraymap:{{{voir_aussi|}}}|,|x|<li>[[voir aussi::x]]}}</li></ul></td>
      <td colspan="2"><ul>{{#arraymap:{{{voir_aussi|}}}|,|x|<li>[[voir aussi::x]]}}</li></ul></td>
  </tr>
    </tr>
}}
    }}
{{#if:{{{dernière_modif|}}}|
    {{#if:{{{dernière_modif|}}}|
  <tr>
    <tr>
    <td colspan="2" style="text-align:right;">{{{dernière_modif|}}}</td>
      <td colspan="2" style="text-align:right;">{{{dernière_modif|}}}</td>
  </tr>
    </tr>
}}
    }}
</table>
  </table>
<!-- properties displayed in a non standard way are just "set" -->
  <!-- properties displayed in a non standard way are just "set" -->
{{#set:fait partie du cours={{{fait_partie_du_cours|}}} }}
  {{#set:fait partie du cours={{{fait_partie_du_cours|}}} }}
{{#set:page parente={{{page_parente|}}} }}
  {{#set:page parente={{{page_parente|}}} }}
{{#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|}}}}}  
{{#set:dernière modification importante={{{dernière_modif|}}}}}  
  {{#set:dernière modification importante={{{dernière_modif|}}}}}  
{{#set:difficulté={{{difficulté|}}}}}
  {{#set:difficulté={{{difficulté|}}}}}
[[Catégorie:tutoriel]]
  [[Catégorie:tutoriel]]
</includeonly>
</includeonly>

Version du 29 août 2013 à 11:27

 Ceci est le modèle « tutoriel ». Il devrait être appelé selon le format suivant :
    {{tutoriel
    |fait_partie_du_cours=
    |page_parente=
    |page_suivante=
    |page_precedente=
    |statut=
    |derniere_modif=
    |prérequis=
    |objectif=
    |difficulté=
    |voir_aussi=
    }}
  
 Modifier la page pour voir le texte du modèle.