Template:Progressbar: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
mNo edit summary
(Added information about the now supported 0%.)
Line 10: Line 10:
  <nowiki>{{</nowiki>'''progressbar'''<nowiki>|</nowiki>percentage<nowiki>|</nowiki>''height''<nowiki>}}</nowiki>
  <nowiki>{{</nowiki>'''progressbar'''<nowiki>|</nowiki>percentage<nowiki>|</nowiki>''height''<nowiki>}}</nowiki>


; 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'''.
Line 24: Line 24:


* Instrument panel: {{progressbar|60|30}}
* Instrument panel: {{progressbar|60|30}}
=== Not started ===
{{obr}}progressbar{{!}}0{{cbr}}
{{progressbar|0}}


== Related templates ==
== Related templates ==

Revision as of 23:06, 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}}
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.

Example

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

Not started

{{progressbar|0}}

0}% completed

Related templates