Template:Progression: Difference between revisions
From YATA Wiki
Jump to navigationJump to search
No edit summary Tag: Reverted |
No edit summary Tag: Manual revert |
||
Line 4: | Line 4: | ||
--><table width={{#if:{{{width|}}}|{{{width|}}}|50%}} align=center style="background:transparent"> | --><table width={{#if:{{{width|}}}|{{{width|}}}|50%}} align=center style="background:transparent"> | ||
<tr> | <tr> | ||
<td align=center>{{#if:{{{task|}}}|{{{task|}}}: }}<!--T:1--> <big>'''<tvar|1>{{formatnum:{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|100}}}round 1}}|0}}}}</>%'''</big> complete</td> | <td 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></td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 19: | Line 19: | ||
{{documentation|content= | {{documentation|content= | ||
<translate> | |||
=== Syntax === <!--T:2--> | === Syntax === <!--T:2--> | ||
</translate> | |||
:{{tlx|Progression|''percent''}} | :{{tlx|Progression|''percent''}} | ||
<translate> | |||
<!--T:3--> | <!--T:3--> | ||
The <tvar|1><code>percent</code></> is a number between 0 and 100, without the trailing <tvar|2><code>%</code></>. | The <tvar|1><code>percent</code></> is a number between 0 and 100, without the trailing <tvar|2><code>%</code></>. | ||
</translate> | |||
:{{tlx|Progression|''param1''|''param2''}} | :{{tlx|Progression|''param1''|''param2''}} | ||
<translate> | |||
<!--T:4--> | <!--T:4--> | ||
Calculates the progression as a function of <tvar|1><code>param1/param2</code></> | Calculates the progression as a function of <tvar|1><code>param1/param2</code></> | ||
</translate> | |||
:{{tlx|Progression|''param1''|''param2''|task{{=}}''param3''}} | :{{tlx|Progression|''param1''|''param2''|task{{=}}''param3''}} | ||
<translate> | |||
<!--T:5--> | <!--T:5--> | ||
Calculates the progression as a function of <tvar|1><code>param1/param2</code></>, and displays a task label on the bar. | Calculates the progression as a function of <tvar|1><code>param1/param2</code></>, and displays a task label on the bar. | ||
Line 42: | Line 42: | ||
==== 1 parameter (percent) ==== <!--T:7--> | ==== 1 parameter (percent) ==== <!--T:7--> | ||
</translate> | |||
{{tlx|Progression|0}}: | {{tlx|Progression|0}}: | ||
{{Progression|0}} | {{Progression|0}} | ||
Line 58: | Line 58: | ||
{{Progression|100}} | {{Progression|100}} | ||
<translate> | |||
==== 2 parameters ==== <!--T:8--> | ==== 2 parameters ==== <!--T:8--> | ||
</translate> | |||
{{tlx|Progression|0|250}}: | {{tlx|Progression|0|250}}: | ||
{{Progression|0|250}} | {{Progression|0|250}} | ||
Line 73: | Line 73: | ||
{{Progression|300|300}} | {{Progression|300|300}} | ||
<translate> | |||
==== 3 parameters ==== <!--T:9--> | ==== 3 parameters ==== <!--T:9--> | ||
</translate> | |||
{{tlx|Progression|0|250|task{{=}}Sorting articles}}: | {{tlx|Progression|0|250|task{{=}}Sorting articles}}: | ||
{{Progression|0|250|task=Sorting articles}} | {{Progression|0|250|task=Sorting articles}} |
Revision as of 12:16, 27 August 2024
<languages/>
Template documentation
<translate>
Syntax
</translate>
{{Progression|percent}}
<translate> The <tvar
[[Category:Utility templates{{#translation:}}]]