|
|
(4 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| <noinclude> | | <div style=" |
| <languages />
| | width:{{{width|75%}}}; |
| </noinclude><includeonly>{| width={{#if:{{{width|}}}|{{{width|}}}|50%}} align=center style="background:transparent"
| | {{#ifeq: {{{center|yes}}} | yes | |
| |align=center|{{#if:{{{task|}}}|{{{task|}}}: }}<translate><!--T:1--> <big>'''<tvar|1>{{formatnum:{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|100}}}round 1}}|0}}}}</>%'''</big> complete</translate>
| | margin:auto; |
| |-
| | text-align:center;}}"> |
| |
| | {{#ifeq: {{{header|yes}}} | yes |
| {|style="border:1px solid gray" cellspacing=1 width=100% height=15x
| | | <p> |
| {{#ifeq:{{#if:{{{1|}}}|{{{1}}}|0}}|0| | {{!}}style="background:#5FDB00; width:{{#ifexpr:({{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|100}}}}}|0}}<1)|1%|{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|100}}}round 1}}|0}}%}}"{{!}} }}
| | {{Big|1= |
| {{#ifeq:{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|100}}}}}|0}}|100|| {{!}}style="background:#E2E2E2" {{!}} }} | | '''{{#expr: ( {{{1|<noinclude>2</noinclude>0}}} / {{{total|100}}}) * 100 round 1}}%''' |
| |} | | }} |
| |}</includeonly><noinclude>
| | {{{text|completed <small>(estimate)</small>}}} |
| {{ {{TNTN|documentation}} |content= | | </p> |
| | |
| <translate>
| |
| === Syntax === <!--T:2--> | |
| </translate>
| |
| :<tt>'''<nowiki>{{Progression|</nowiki>'''''percent'''''<nowiki>}}</nowiki>'''</tt>
| |
| <translate>
| |
| <!--T:3-->
| |
| The <tt>percent</tt> is a number between 0 and 100, without the trailing <tt>%</tt>.
| |
| </translate>
| |
| | |
| :<tt>'''<nowiki>{{Progression|</nowiki>'''''param1'''''<nowiki>|</nowiki>'''''param2'''''<nowiki>}}</nowiki>'''</tt>
| |
| <translate>
| |
| <!--T:4-->
| |
| Calculates the progression as a function of <tt>param1/param2</tt>
| |
| </translate>
| |
| | |
| :<tt>'''<nowiki>{{Progression|</nowiki>'''''param1'''''<nowiki>|</nowiki>'''''param2'''''<nowiki>|</nowiki>task='''''param3'''''<nowiki>}}</nowiki>'''</tt>
| |
| <translate>
| |
| <!--T:5-->
| |
| Calculates the progression as a function of <tt>param1/param2</tt>, and displays a task label on the bar.
| |
| | |
| === Examples === <!--T:6-->
| |
| | |
| ==== 1 parameter (percent) ==== <!--T:7-->
| |
| </translate>
| |
| <tt><nowiki>{{TNT|Progression|0}}</nowiki></tt> :
| |
| {{ {{TNTN|Progression}} |0}} | |
| | |
| <tt><nowiki>{{TNT|Progression|0.5}}</nowiki></tt> :
| |
| {{ {{TNTN|Progression}} |0.5}}
| |
| | |
| <tt><nowiki>{{TNT|Progression|1}}</nowiki></tt> :
| |
| {{ {{TNTN|Progression}} |1}}
| |
| | |
| <tt><nowiki>{{TNT|Progression|36.7}}</nowiki></tt> : | |
| {{ {{TNTN|Progression}} |36.7}}
| |
| | |
| <tt><nowiki>{{TNT|Progression|100}}</nowiki></tt> :
| |
| {{ {{TNTN|Progression}} |100}}
| |
| | |
| <translate>
| |
| ==== 2 parameters ==== <!--T:8-->
| |
| </translate> | |
| <tt><nowiki>{{TNT|Progression|0|250}}</nowiki></tt> :
| |
| {{ {{TNTN|Progression}} |0|250}} | |
| | |
| <tt><nowiki>{{TNT|Progression|100|250}}</nowiki></tt> :
| |
| {{ {{TNTN|Progression}} |100|250}}
| |
| | |
| <tt><nowiki>{{TNT|Progression|200|300}}</nowiki></tt> :
| |
| {{ {{TNTN|Progression}} |200|300}} | |
| | |
| <tt><nowiki>{{TNT|Progression|300|300}}</nowiki></tt> : | |
| {{ {{TNTN|Progression}} |300|300}}
| |
| | |
| <translate>
| |
| ==== 3 parameters ==== <!--T:9-->
| |
| </translate> | |
| <tt><nowiki>{{TNT|Progression|0|250|task=Sorting articles}}</nowiki></tt> :
| |
| {{ {{TNTN|Progression}} |0|250|task=Sorting articles}}
| |
| | |
| <tt><nowiki>{{TNT|Progression|100|250|task=Sorting articles}}</nowiki></tt> :
| |
| {{ {{TNTN|Progression}} |100|250|task=Sorting articles}}
| |
| | |
| <translate>
| |
| === See also === <!--T:10-->
| |
| </translate>
| |
| * {{tl|Backlog progress bar}}
| |
| * {{tl|Percentage bar}}
| |
| * {{tl|Percent-done}}
| |
| * {{tl|Progress}}
| |
| * {{tl|Progress bar}}
| |
| * {{tl|Progress box}}
| |
| * {{tl|Progress meter}}
| |
| | |
| }} | | }} |
| [[Category:Templates]]
| | <p style="border:{{{border|1px solid gray}}}; padding:{{{padding|1px}}}; overflow:hidden;"> |
| </noinclude> | | <span style=" |
| | width: {{#expr: {{{1|<noinclude>2</noinclude>0}}} / {{{total|100}}} * 100}}%; |
| | height: {{{height|2}}}px; |
| | background:{{{color1|#5FDB00}}}; |
| | float:left; |
| | "> </span> |
| | <span style=" |
| | width:{{#expr: 100 - {{{1|<noinclude>2</noinclude>0}}} / {{{total|100}}} * 100}}%; |
| | height:{{{height|2}}}px; |
| | background:{{{color2|#efefef}}}; |
| | float:left; |
| | "> </span> |
| | </p> |
| | </div> |