Modèle:Barre Faim : Différence entre versions
m (Diverses corrections) |
m (Correction syntaxe) |
||
(2 révisions intermédiaires par 2 utilisateurs non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
− | <includeonly> | + | <noinclude> |
− | {{ #switch: {{{1}}} | + | Ce modèle sert à afficher une barre de faim en lui précisant la quantité à afficher. |
+ | |||
+ | '''Utilisation :''' | ||
+ | Pour utiliser ce modèle | ||
+ | <nowiki>{{Barre Faim|nombre}}</nowiki> | ||
+ | Le nombre allant de 0.5 à 10 ou 0,5 à 10. | ||
+ | |||
+ | '''Exemple :''' | ||
+ | En tapant cela : | ||
+ | <nowiki>{{Barre Faim|5.5}}</nowiki> | ||
+ | |||
+ | Le modèle va afficher : | ||
+ | {{Barre Faim|5.5}} | ||
+ | [[Category:Modèle]]</noinclude> | ||
+ | <includeonly>{{ #switch: {{{1}}} | ||
| 0.5 = <div style="margin-right: 2px; display: inline;">[[Fichier:Faim_Demi.png]]</div> | | 0.5 = <div style="margin-right: 2px; display: inline;">[[Fichier:Faim_Demi.png]]</div> | ||
| 0,5 = <div style="margin-right: 2px; display: inline;">[[Fichier:Faim_Demi.png]]</div> | | 0,5 = <div style="margin-right: 2px; display: inline;">[[Fichier:Faim_Demi.png]]</div> |