« Jauge triple » : différence entre les versions
sur le Dico des Ados : ton dictionnaire collaboratif, libre et gratuit !
Aucun résumé des modifications |
m sortir les infos de la barre |
||
Ligne 2 : | Ligne 2 : | ||
<table style="background:transparent;border-collapse:collapse;width:100%"><tr> | <table style="background:transparent;border-collapse:collapse;width:100%"><tr> | ||
<td width="{{{1}}}%"><div style="background:#269dc4;text-align:center;border-radius:10px 0px 0px 10px;"> | <td width="{{{1}}}%"><div style="background:#269dc4;text-align:center;border-radius:10px 0px 0px 10px;"> | ||
| |||
</div></td> | </div></td> | ||
<td width="{{{2}}}%"><div style="background:#ababab;text-align:center"> | <td width="{{{2}}}%"><div style="background:#ababab;text-align:center"> | ||
| |||
</div></td> | </div></td> | ||
<td width="{{{3}}}%"><div style="background:#e77f1c;text-align:center;border-radius:0px 10px 10px 0px;"> | <td width="{{{3}}}%"><div style="background:#e77f1c;text-align:center;border-radius:0px 10px 10px 0px;"> | ||
| |||
</div></td> | </div></td> | ||
</tr></table> | </tr></table> | ||
{{{1}}} %{{#if:{{{1alt|}}}|<small> ({{{1alt}}} %)</small>}} | |||
{{{2}}} %{{#if:{{{2alt|}}}|<small> ({{{2alt}}} %)</small>}} | |||
{{{3}}} %{{#if:{{{3alt|}}}|<small> ({{{3alt}}} %)</small>}} | |||
</div> | </div> | ||
</includeonly> | </includeonly> |
Version du 23 mars 2019 à 09:49
Ce modèle importé de Vikidia permet de créer une jauge triple de trois de couleur (vert, gris rouge). Il s'utilise ainsi:
{{Jauge triple|Valeur1|Valeur2|Valeur3 (optionnel:|1alt=nom valeur1|2alt=nom valeur2|3alt=nom valeur3)}}
Exemple: {{Jauge triple|50|25|25}} Donne:
|
|
|
50 %
25 %
25 %
Exemple: {{Jauge triple|50|25|25|1alt=Pour|2alt=Contre|3alt=Neutre}} Donne:
|
|
|
50 % (Pour %)
25 % (Contre %)
25 % (Neutre %)