Template:Progressbar: Difference between revisions
Jump to navigation
Jump to search
m (Putting back the link. Getting to the template is faster + Bait for the curious ;-) |
(Added the new ''link'' parameter to allow for user supplied links.) |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
[[File:Progress bar-{{{percentage|{{{1|10}}}}}} percent-32px.png |x{{{height|{{{2|15}}}}}}px |alt={{{percentage|{{{1|10}}}}}}}% completed |link=:Template:Progressbar]]<noinclude> | [[File:Progress bar-{{{percentage|{{{1|10}}}}}} percent-32px.png|x{{{height|{{{2|15}}}}}}px|alt={{{percentage|{{{1|10}}}}}}}% completed|link={{{link|:Template:Progressbar}}}]]<noinclude> | ||
{{Informative template|1= | {{Informative template|1= | ||
__NOTOC__ | __NOTOC__ | ||
== Goal == | == Goal == | ||
Puts a "progress bar" icon in running text. | Puts a "progress bar" icon in running text. | ||
{{inote|If you don't know how far through the task you are, you can use {{tl|ongoing}} instead.}} | |||
== Usage == | == Usage == | ||
{{obr}}'''progressbar''' | |||
{{!}} ''percentage'' | |||
{{!}} ''height'' | |||
{{!}} ''link'' = | |||
{{cbr}} | |||
; percentage: Progress in ten percent steps from ''' | ; percentage: Progress in ten percent steps from '''0''' to '''100''' with omitted percent sign ('''0''', '''10''', '''20'''..'''100''') | ||
; height: Optional height in pixels. Default value is is '''15'''. | ; height: Optional height in pixels. Default value is is '''15'''. | ||
== | ; link: The optional link. | ||
== Examples == | |||
=== Normal use === | === Normal use === | ||
<nowiki>* 3D cockpit model: {{progressbar|40}}</nowiki> | <nowiki>* 3D cockpit model: {{progressbar|40}}</nowiki> | ||
Line 22: | Line 30: | ||
* Instrument panel: {{progressbar|60|30}} | * Instrument panel: {{progressbar|60|30}} | ||
=== All supported percentages === | |||
{{obr}}progressbar{{!}}0{{!}}10{{cbr}} | |||
{{progressbar|0|10}} | |||
{{obr}}progressbar{{!}}10{{!}}10{{cbr}} | |||
{{progressbar|10|10}} | |||
{{obr}}progressbar{{!}}20{{!}}10{{cbr}} | |||
{{progressbar|20|10}} | |||
{{obr}}progressbar{{!}}30{{!}}10{{cbr}} | |||
{{progressbar|30|10}} | |||
{{obr}}progressbar{{!}}40{{!}}10{{cbr}} | |||
{{progressbar|40|10}} | |||
{{obr}}progressbar{{!}}50{{!}}10{{cbr}} | |||
{{progressbar|50|10}} | |||
{{obr}}progressbar{{!}}60{{!}}10{{cbr}} | |||
{{progressbar|60|10}} | |||
{{obr}}progressbar{{!}}70{{!}}10{{cbr}} | |||
{{progressbar|70|10}} | |||
{{obr}}progressbar{{!}}80{{!}}10{{cbr}} | |||
{{progressbar|80|10}} | |||
{{obr}}progressbar{{!}}90{{!}}10{{cbr}} | |||
{{progressbar|90|10}} | |||
{{obr}}progressbar{{!}}100{{!}}10{{cbr}} | |||
{{progressbar|100|10}} | |||
=== Link === | |||
{{obr}}progressbar{{!}}100{{!}}link=Main page{{cbr}} | |||
{{progressbar|100|link=Main page}} | |||
== Related templates == | == Related templates == | ||
* {{tl|abandoned}} | |||
* {{tl|done}} | * {{tl|done}} | ||
* {{tl|fixed}} | |||
* {{tl|ongoing}} | |||
* {{tl|pending}} | |||
* {{tl|not done}} | * {{tl|not done}} | ||
* {{tl| | * {{tl|paused}} | ||
}} | }} |
Latest revision as of 23:36, 28 December 2017
The following template description is not displayed when the template is inserted in an article.
Goal
Puts a "progress bar" icon in running text.
Note If you don't know how far through the task you are, you can use {{ongoing}} instead.
Usage
{{progressbar | percentage | height | link = }}
- percentage
- Progress in ten percent steps from 0 to 100 with omitted percent sign (0, 10, 20..100)
- height
- Optional height in pixels. Default value is is 15.
- link
- The optional link.
Examples
Normal use
* 3D cockpit model: {{progressbar|40}}
Using a different size
* Instrument panel: {{progressbar|60|30}}
All supported percentages
{{progressbar|0|10}}
{{progressbar|10|10}}
{{progressbar|20|10}}
{{progressbar|30|10}}
{{progressbar|40|10}}
{{progressbar|50|10}}
{{progressbar|60|10}}
{{progressbar|70|10}}
{{progressbar|80|10}}
{{progressbar|90|10}}
{{progressbar|100|10}}
Link
{{progressbar|100|link=Main page}}