Template:Progressbar: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(Created page with "[[File:Progress_{{{1}}}%25.png |{{{1|16}}}px |alt= {{{1}}}} completed |link=:Template:Progressabar]]<noinclude> {{Informative template|1= == Goal == Puts a "progress bar" icon...")
 
(Added the new ''link'' parameter to allow for user supplied links.)
 
(22 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[File:Progress_{{{1}}}%25.png |{{{1|16}}}px |alt= {{{1}}}} completed |link=:Template:Progressabar]]<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__
== 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 ==
  <tt><nowiki>{{</nowiki>'''cross'''<nowiki>|</nowiki>''height''<nowiki>}}</nowiki></tt>
  {{obr}}'''progressbar'''
{{!}} ''percentage''
{{!}} ''height''
{{!}} ''link'' =
{{cbr}}
 
; 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 ===
<nowiki>* 3D cockpit model: {{progressbar|40}}</nowiki>
 
* 3D cockpit model: {{Progressbar|40}}
 
=== Using a different size ===
<nowiki>* Instrument panel: {{progressbar|60|30}}</nowiki>
 
* 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|fixed}}
* {{tl|ongoing}}
* {{tl|pending}}
* {{tl|not done}}
* {{tl|not done}}
* {{tl|tick}}
* {{tl|paused}}
* {{tl|done}}


}}
}}
[[Category:Progress templates]]
[[Category:Icon 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