ProgressBar: Difference between revisions
From Betamountain.org
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{ProgressBar|60|100}} | |||
<noinclude> | <noinclude> | ||
Line 11: | Line 11: | ||
|} | |} | ||
|}</includeonly><noinclude> | |}</includeonly><noinclude> | ||
{{ {{TNTN|documentation}} |content= | |||
:<tt>'''<nowiki>{{Progression|</nowiki>'''''percent'''''<nowiki>}}</nowiki>'''</tt> | |||
<translate> | |||
<!--T:3--> | |||
The <tt>percent</tt> is a number between 0 and 100, without the trailing <tt>%</tt>. | |||
</translate> | |||
:<tt>'''<nowiki>{{Progression|</nowiki>'''''param1'''''<nowiki>|</nowiki>'''''param2'''''<nowiki>}}</nowiki>'''</tt> | |||
<translate> | |||
<!--T:4--> | |||
Calculates the progression as a function of <tt>param1/param2</tt> | |||
</translate> | |||
:<tt>'''<nowiki>{{Progression|</nowiki>'''''param1'''''<nowiki>|</nowiki>'''''param2'''''<nowiki>|</nowiki>task='''''param3'''''<nowiki>}}</nowiki>'''</tt> | |||
<translate> | |||
<!--T:5--> | |||
Calculates the progression as a function of <tt>param1/param2</tt>, and displays a task label on the bar. | |||
=== Examples === <!--T:6--> | |||
==== 1 parameter (percent) ==== <!--T:7--> | |||
</translate> | |||
<tt><nowiki>{{TNT|Progression|0}}</nowiki></tt> : | |||
{{ {{TNTN|Progression}} |0}} | |||
<tt><nowiki>{{TNT|Progression|0.5}}</nowiki></tt> : | |||
{{ {{TNTN|Progression}} |0.5}} | |||
<tt><nowiki>{{TNT|Progression|1}}</nowiki></tt> : | |||
{{ {{TNTN|Progression}} |1}} | |||
<tt><nowiki>{{TNT|Progression|36.7}}</nowiki></tt> : | |||
{{ {{TNTN|Progression}} |36.7}} | |||
<tt><nowiki>{{TNT|Progression|100}}</nowiki></tt> : | |||
{{ {{TNTN|Progression}} |100}} | |||
<translate> | |||
==== 2 parameters ==== <!--T:8--> | |||
</translate> | |||
<tt><nowiki>{{TNT|Progression|0|250}}</nowiki></tt> : | |||
{{ {{TNTN|Progression}} |0|250}} | |||
<tt><nowiki>{{TNT|Progression|100|250}}</nowiki></tt> : | |||
{{ {{TNTN|Progression}} |100|250}} | |||
<tt><nowiki>{{TNT|Progression|200|300}}</nowiki></tt> : | |||
{{ {{TNTN|Progression}} |200|300}} | |||
<tt><nowiki>{{TNT|Progression|300|300}}</nowiki></tt> : | |||
{{ {{TNTN|Progression}} |300|300}} | |||
<translate> | |||
==== 3 parameters ==== <!--T:9--> | |||
</translate> | |||
<tt><nowiki>{{TNT|Progression|0|250|task=Sorting articles}}</nowiki></tt> : | |||
{{ {{TNTN|Progression}} |0|250|task=Sorting articles}} | |||
<tt><nowiki>{{TNT|Progression|100|250|task=Sorting articles}}</nowiki></tt> : | |||
{{ {{TNTN|Progression}} |100|250|task=Sorting articles}} | |||
<translate> | |||
=== See also === <!--T:10--> | |||
</translate> | |||
* {{tl|Backlog progress bar}} | |||
* {{tl|Percentage bar}} | |||
* {{tl|Percent-done}} | |||
* {{tl|Progress}} | |||
* {{tl|Progress bar}} | |||
* {{tl|Progress box}} | |||
* {{tl|Progress meter}} | |||
}} | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 11:06, 10 January 2018
Template loop detected: Template:ProgressBar
{{ Template:TNTN |content=
- {{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> {{TNT|Progression|0}} : {{ Template:TNTN |0}}
{{TNT|Progression|0.5}} : {{ Template:TNTN |0.5}}
{{TNT|Progression|1}} : {{ Template:TNTN |1}}
{{TNT|Progression|36.7}} : {{ Template:TNTN |36.7}}
{{TNT|Progression|100}} : {{ Template:TNTN |100}}
<translate>
2 parameters
</translate> {{TNT|Progression|0|250}} : {{ Template:TNTN |0|250}}
{{TNT|Progression|100|250}} : {{ Template:TNTN |100|250}}
{{TNT|Progression|200|300}} : {{ Template:TNTN |200|300}}
{{TNT|Progression|300|300}} : {{ Template:TNTN |300|300}}
<translate>
3 parameters
</translate> {{TNT|Progression|0|250|task=Sorting articles}} : {{ Template:TNTN |0|250|task=Sorting articles}}
{{TNT|Progression|100|250|task=Sorting articles}} : {{ Template:TNTN |100|250|task=Sorting articles}}
<translate>
See also
</translate>
}}