Modèle:ProgressBar : Différence entre versions

De Wiki @ Brest

 
(11 révisions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
<includeonly>{| width={{#if:{{{width|}}}|{{{width|}}}|50%}} cellspacing=0 cellpadding=0 align=center style="background: transparent;margin:0;padding:0;"
+
<includeonly>{| width={{#if:{{{width|}}}|{{{width|}}}|50%}} align=center style="background: transparent"
| align=center|
+
|align=center width=90% |
{|style="border: 1px solid gray" cellspacing=0 cellpadding=0 width=100% height=15x
+
{|style="border: 1px solid gray" cellspacing=1 width=100% height=10px
 
{{#ifeq:{{#if:{{{1|}}}|{{{1}}}|0}}|0| | {{!}}style="background-color: #{{#ifexpr: {{{1}}} < 25
 
{{#ifeq:{{#if:{{{1|}}}|{{{1}}}|0}}|0| | {{!}}style="background-color: #{{#ifexpr: {{{1}}} < 25
 
  | ff9c00
 
  | ff9c00
Ligne 33 : Ligne 33 :
 
  | 30ff00
 
  | 30ff00
 
  | 10e2ef }} }} }} 100%); height:5px; width: {{#ifexpr:({{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|100}}}}}|0}}<1)|1%|{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|100}}}round 1}}|0}}%}}"{{!}} }}
 
  | 10e2ef }} }} }} 100%); height:5px; width: {{#ifexpr:({{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|100}}}}}|0}}<1)|1%|{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|100}}}round 1}}|0}}%}}"{{!}} }}
{{#ifeq:{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|100}}}}}|0}}|100|| {{!}}style="background: #E2E2E2;" {{!}} }}{{formatnum:{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|100}}}round 1}}|0}}}}%
+
{{#ifeq:{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|100}}}}}|0}}|100|| {{!}}style="background: #E2E2E2;" {{!}} }}
 
|}
 
|}
 +
|<small>{{formatnum:{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|100}}}round 1}}|0}}}}%</small>
 
|}</includeonly><noinclude>{{TemplateDoc}}[[Category:Template]]</noinclude>
 
|}</includeonly><noinclude>{{TemplateDoc}}[[Category:Template]]</noinclude>

Version actuelle en date du 27 juin 2013 à 22:39

[edit]

Template-info.svg Documentation des modèles

90%