• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Progression/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Progression
This is the template sandbox page for Template:Progression (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]
CSSThis template uses TemplateStyles:
  • Template:Progression/styles.css (sandbox)

Contents

  • 1 Syntax
  • 2 Examples
    • 2.1 1 parameter (percent)
    • 2.2 2 parameters
    • 2.3 3 parameters
  • 3 TemplateData

Syntax

edit
{{Progression|percent}}

The percent is a number between 0 and 100, without the trailing %.

Optionally, the decimal parameter will set the number of decimal places to be rounded. If not specified, defaults to 1.

{{Progression|param1|param2}}

Calculates the progression as a function of param1/param2

{{Progression|param1|param2|task=param3}}

Calculates the progression as a function of param1/param2, and displays a task label on the bar.

Examples

edit

1 parameter (percent)

edit

{{Progression|0}} :

0% complete

{{Progression|0.5}} :

0.5% complete

{{Progression|1}} :

1% complete

{{Progression|36.7}} :

36.7% complete

{{Progression|100}} :

100% complete

2 parameters

edit

{{Progression|0|250}} :

0% complete

{{Progression|100|250}} :

40% complete

{{Progression|200|300}} :

66.7% complete

{{Progression|300|300}} :

100% complete

3 parameters

edit

{{Progression|0|250|task=Sorting articles}} :

Sorting articles: 0% complete

{{Progression|100|250|task=Sorting articles}} :

Sorting articles: 40% complete

TemplateData

edit
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Progression in articles based on its TemplateData.

TemplateData for Progression

The template is used to create a progression bar.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
value1

The current value of the progression.

Numbersuggested
max value2 total

The total value of the progression bar

Default
100
Numberoptional
widthwidth

The CSS width of the progression bar. Unit is required.

Example
100px, 30em
Stringoptional
tasktask

The name displayed before the value.

Example
Sorting articles
Lineoptional
decimaldecimal

The decimal to be rounded to

Numberoptional
hide completehidecomplete

Whether hide the display of number of completion.

Default
0
Booleanoptional
  • v
  • t
  • e
Progress templates
General progress templates
  • {{Progress bar}}
  • {{Progression}}
  • {{Composition bar}}
  • {{Composition bar/advanced}}
  • {{Composition bar compact}}
  • {{Composition histogram}}
  • {{Percentage bar}}
  • {{Number and percent}}
  • {{Progress meter}}
  • {{Percentile}}
  • {{Stacked bar}}
Specific-use templates
  • {{Backlog progress bar}}
  • {{Progress box}}
  • {{Progression rainbow}}
  • {{WikiProject assessment progression}}
  • {{Article length bar}}
  • Category
  • List (partial)
The above documentation is transcluded from Template:Progression/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Progression/sandbox&oldid=1172962473"
Last edited on 30 August 2023, at 12:13

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 30 August 2023, at 12:13 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop