Template:Progression: Difference between revisions

From YATA Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
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|}}}:&nbsp;}}<!--T:1--> <big>'''{{formatnum:{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|100}}}round 1}}|0}}}}</>%'''</big> complete</td>
<td align=center>{{#if:{{{task|}}}|{{{task|}}}:&nbsp;}}<!--T:1--> <big>'''{{formatnum:{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|100}}}round 1}}|0}}}}%'''</big> complete</td>
</tr>
</tr>
<tr>
<tr>
Line 25: Line 25:


<!--T:3-->
<!--T:3-->
The <code>percent</code></> is a number between 0 and 100, without the trailing <code>%</code></>.
The <code>percent</code> is a number between 0 and 100, without the trailing <code>%</code>.




Line 31: Line 31:


<!--T:4-->
<!--T:4-->
Calculates the progression as a function of <code>param1/param2</code></>
Calculates the progression as a function of <code>param1/param2</code>




Line 37: Line 37:


<!--T:5-->
<!--T:5-->
Calculates the progression as a function of <code>param1/param2</code></>, and displays a task label on the bar.
Calculates the progression as a function of <code>param1/param2</code>, and displays a task label on the bar.


=== Examples === <!--T:6-->
=== Examples === <!--T:6-->

Latest revision as of 12:41, 27 August 2024

<languages/>

[[Category:Utility templates{{#translation:}}]]