Template:Progression/pt-br

From Linux Web Expert

Revision as of 16:03, 5 August 2023 by imported>FuzzyBot (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Template documentation

Sintaxe

{{Progression|percent}}

percent deve ser um número entre 0 e 100, sem o símbolo %.

{{Progression|param1|param2}}

Calcula a progressão como função de param1/param2.

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

Calcula a progressão como função de param1/param2, e exibe o nome da tarefa na barra.

Exemplos

1 parâmetro (porcentagem)

{{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 parâmetros

{{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 parâmetros

{{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>