Template:Progressbar: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
m (ok, next fix up height and alt attrib (hopefully))
(Added the new ''link'' parameter to allow for user supplied links.)
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[File:Progress_{{{percentage|{{{1|10}}}}}}%25.png |x{{{height|{{{2|16}}}}}}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 ==
  <nowiki>{{</nowiki>'''progressbar'''<nowiki>|</nowiki>percentage<nowiki>|</nowiki>''height''<nowiki>}}</nowiki>
  {{obr}}'''progressbar'''
{{!}} ''percentage''
{{!}} ''height''
{{!}} ''link'' =
{{cbr}}
 
; percentage:  Progress in ten percent steps from '''0''' to '''100''' with omitted percent sign ('''0''', '''10''', '''20'''..'''100''')


; percentageProgress in ten percent steps from 10 to 100 with omitted percent sign (10, 20..100)
; heightOptional height in pixels. Default value is is '''15'''.


; heightOptional height in pixels.  Default value is is 16.
; linkThe optional link.


== Example ==
== 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|pending}} Useful when there is less of a plan or no current progress.
* {{tl|paused}}


}}
}}
[[Category:Progress templates]]
[[Category:Progress templates]]
[[Category:Icon templates]]
</noinclude>
</noinclude>

Latest revision as of 23:36, 28 December 2017

10}% completed

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}}
  • 3D cockpit model: 40}% completed

Using a different size

* Instrument panel: {{progressbar|60|30}}
  • Instrument panel: 60}% completed

All supported percentages

{{progressbar|0|10}}

0}% completed

{{progressbar|10|10}}

10}% completed

{{progressbar|20|10}}

20}% completed

{{progressbar|30|10}}

30}% completed

{{progressbar|40|10}}

40}% completed

{{progressbar|50|10}}

50}% completed

{{progressbar|60|10}}

60}% completed

{{progressbar|70|10}}

70}% completed

{{progressbar|80|10}}

80}% completed

{{progressbar|90|10}}

90}% completed

{{progressbar|100|10}}

100}% completed

Link

{{progressbar|100|link=Main page}}

100}% completed


Related templates