Template:Progressbar: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
mNo edit summary
(Added the new ''link'' parameter to allow for user supplied links.)
 
(2 intermediate revisions by the same user 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__
Line 8: Line 8:


== 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 '''10''' to '''100''' with omitted percent sign ('''10''', '''20'''..'''100''')
; 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'''.


== Example ==
; link:  The optional link.
 
== Examples ==
=== Normal use ===
=== Normal use ===
  <nowiki>* 3D cockpit model: {{progressbar|40}}</nowiki>
  <nowiki>* 3D cockpit model: {{progressbar|40}}</nowiki>
Line 24: 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 ==

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