Pojdi na vsebino

Predloga:Progression

Iz Wikipedije, proste enciklopedije
Dokumentacija za predlogo[poglej] [uredi] [zgodovina] [osveži]

Syntax[uredi kodo]

{{Progression|percent}}

The percent is a number between 0 and 100, without the trailing %.

Optionally, the decimal parameter will set the number of decimal places to be rounded. If not specified, defaults to 1.

{{Progression|param1|param2}}

Calculates the progression as a function of param1/param2

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

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

Examples[uredi kodo]

1 parameter (percent)[uredi kodo]

{{Progression|0}} :

{{Progression|0.5}} :

{{Progression|1}} :

{{Progression|36.7}} :

{{Progression|100}} :

2 parameters[uredi kodo]

{{Progression|0|250}} :

{{Progression|100|250}} :

{{Progression|200|300}} :

{{Progression|300|300}} :

3 parameters[uredi kodo]

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

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

TemplateData[uredi kodo]

To je dokumentacija TemplateData za predlogo, ki jo uporabljajo Vizualni urejevalnik in druga orodja; glejte mesečno poročilo o uporabi parametrov za to predlogo.

TemplateData za Progression

The template is used to create a progression bar.

Parametri predloge[Urejanje podatkov predloge]

Za to predlogo se uporablja postavitev parametrov v eni vrstici.

ParameterOpisVrstaStanje
value1

The current value of the progression.

Številkapredlagano
max value2 total

The total value of the progression bar

Privzeto
100
Številkaneobvezno
widthwidth

The CSS width of the progression bar. Unit is required.

Zgled
100px, 30em
Nizneobvezno
tasktask

The name displayed before the value.

Zgled
Sorting articles
Vrsticaneobvezno
decimaldecimal

The decimal to be rounded to

Številkaneobvezno
hide completehidecomplete

Whether hide the display of number of completion.

Privzeto
0
Boolneobvezno

Predloga:Progress templates