Modèle:ProgressBar : Différence entre versions

De Wiki @ Brest

 
(14 révisions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
<includeonly>{| class="formtable" width={{#if:{{{width|}}}|{{{width|}}}|50%}} align=center style="background: transparent"
+
<includeonly>{| width={{#if:{{{width|}}}|{{{width|}}}|50%}} align=center style="background: transparent"
|-
+
|align=center width=90% |
|
+
{|style="border: 1px solid gray" cellspacing=1 width=100% height=10px
{|style="border: 1px solid gray" cellspacing=1 width=100% height=15x
+
 
{{#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 34 : 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%