Modèle:ProgressBar : Différence entre versions

De Wiki @ Brest

Ligne 35 : Ligne 35 :
 
  | 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;" {{!}} }}<small>{{formatnum:{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|100}}}round 1}}|0}}}}%</small>
+
{{#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>
 
|<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 du 27 juin 2013 à 22:36

[edit]

Template-info.svg Documentation des modèles

90%