Template:Progression/fr
From Linux Web Expert
Template documentation
Syntaxe
- {{Progression|percent}}
percent
est un nombre entre 0 et 100, sans le %
de fin.
- {{Progression|param1|param2}}
Calcule la progression en fonction de param1/param2
- {{Progression|param1|param2|task=param3}}
Calcule la progression en fonction de param1/param2
et affiche un nom de tâche sur la barre,
Exemples
1 paramètre (pourcent)
{{Progression|0}}:
<translate> <tvar|1>0</>% complete</translate> | |
|
{{Progression|0.5}}:
<translate> <tvar|1>0.5</>% complete</translate> | ||
|
{{Progression|1}}:
<translate> <tvar|1>1</>% complete</translate> | ||
|
{{Progression|36.7}}:
<translate> <tvar|1>36.7</>% complete</translate> | ||
|
{{Progression|100}}:
<translate> <tvar|1>100</>% complete</translate> | |
|
2 paramètres
{{Progression|0|250}}:
<translate> <tvar|1>0</>% complete</translate> | |
|
{{Progression|100|250}}:
<translate> <tvar|1>40</>% complete</translate> | ||
|
{{Progression|200|300}}:
<translate> <tvar|1>66.7</>% complete</translate> | ||
|
{{Progression|300|300}}:
<translate> <tvar|1>100</>% complete</translate> | |
|
3 paramètres
{{Progression|0|250|task=Sorting articles}}:
Sorting articles: <translate> <tvar|1>0</>% complete</translate> | |
|
{{Progression|100|250|task=Sorting articles}}:
Sorting articles: <translate> <tvar|1>40</>% complete</translate> | ||
|