Template:Progression

From HandWiki
Revision as of 07:52, 6 December 2019 by imported>Schekanov (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<languages />

Template documentation

<translate>

Syntax

</translate>

{{Progression|percent}}

<translate> The percent is a number between 0 and 100, without the trailing %. </translate>

{{Progression|param1|param2}}

<translate> Calculates the progression as a function of param1/param2 </translate>

{{Progression|param1|param2|task=param3}}

<translate> Calculates the progression as a function of param1/param2, and displays a task label on the bar.

Examples

1 parameter (percent)

</translate> {{Progression|0}} :

0% complete
 

{{Progression|0.5}} :

0.5% complete
   

{{Progression|1}} :

1% complete
   

{{Progression|36.7}} :

36.7% complete
   

{{Progression|100}} :

100% complete
 

<translate>

2 parameters

</translate> {{Progression|0|250}} :

0% complete
 

{{Progression|100|250}} :

40% complete
   

{{Progression|200|300}} :

66.7% complete
   

{{Progression|300|300}} :

100% complete
 

<translate>

3 parameters

</translate> {{Progression|0|250|task=Sorting articles}} :

Sorting articles: 0% complete
 

{{Progression|100|250|task=Sorting articles}} :

Sorting articles: 40% complete
   

<translate>

See also

</translate>

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