Template:Progressbar: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(Added examples for all supported percentages, to catch icon issues.)
(Added the new ''link'' parameter to allow for user supplied links.)
 
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 '''0''' to '''100''' with omitted percent sign ('''0''', '''10''', '''20'''..'''100''')
; percentage:  Progress in ten percent steps from '''0''' to '''100''' with omitted percent sign ('''0''', '''10''', '''20'''..'''100''')
Line 14: Line 18:
; 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 70: Line 76:


{{progressbar|100|10}}
{{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