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

Template:Progression rainbow/sandbox

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

This template is used to display a progression chart for article assessments, with the colours representative of the class colours associated with each type (e.g. FA, B, Start, etc). The chart can be updated automatically or manually.

Contents

  • 1 Usage
    • 1.1 Automatic
    • 1.2 Manual
  • 2 Examples
  • 3 See also

Usage

edit

Automatic

edit
{{Progression rainbow|project=}}

Use the WikiProject or task force name (as used in its categories) to populate |project=.

Manual

edit
{{Progression rainbow|List|Stub|Start|C|B|GA|A|FA+FL|Total}}

Each field should be the number of articles in that category for the wikiproject.

This may be automatically calculated with the {{PAGESINCATEGORY}} magic word, e.g. {{PAGESINCATEGORY:FA-Class Square Enix articles|R}}

Adding together such categories for the total can be done with the {{#expr:}} function call, e.g. {{#expr:{{PAGESINCATEGORY:FA-Class video game articles|R}}+{{PAGESINCATEGORY:FL-Class video game articles|R}}}}

The bar expands to fit the full width of the page or container it is in; to adjust the width of the bar, place the template inside of a smaller div or table.

Examples

edit
Raw numbers
{{Progression rainbow|20|20|100|40|30|40|10|40|310}} produces
  • 6.5% List-Class
  • 6.5% Stub-Class
  • 32.3% Start-Class
  • 12.9% C-Class
  • 9.7% B-Class
  • 12.9% GA-Class
  • 3.2% A-Class
  • 12.9% FA-Class
  • 3.2% remaining

Note that the total is ten higher than the actual inputs; this results in a gray bar representing unassessed articles.

{{Progression rainbow|10|40|100|40|20|50|10|20|290}} produces
  • 3.4% List-Class
  • 13.8% Stub-Class
  • 34.5% Start-Class
  • 13.8% C-Class
  • 6.9% B-Class
  • 17.2% GA-Class
  • 3.4% A-Class
  • 6.9% FA-Class

This bar's inputs match the total, so there is no gray bar at the end.

Calculated amounts
{{Progression rainbow|{{PAGESINCATEGORY:List-Class video game articles|R}}|{{PAGESINCATEGORY:Stub-Class video game articles|R}}|{{PAGESINCATEGORY:Start-Class video game articles|R}}|{{PAGESINCATEGORY:C-Class video game articles|R}}|{{PAGESINCATEGORY:B-Class video game articles|R}}|{{PAGESINCATEGORY:GA-Class video game articles|R}}|0|{{#expr:{{PAGESINCATEGORY:FA-Class video game articles|R}}+{{PAGESINCATEGORY:FL-Class video game articles|R}}}}|{{#expr:{{PAGESINCATEGORY:FA-Class video game articles|R}} + {{PAGESINCATEGORY:FL-Class video game articles|R}} + {{PAGESINCATEGORY:GA-Class video game articles|R}} + {{PAGESINCATEGORY:A-Class video game articles|R}} + {{PAGESINCATEGORY:B-Class video game articles|R}} + {{PAGESINCATEGORY:C-Class video game articles|R}} + {{PAGESINCATEGORY:Start-Class video game articles|R}} + {{PAGESINCATEGORY:List-Class video game articles|R}} + {{PAGESINCATEGORY:Stub-Class video game articles|R}} + {{PAGESINCATEGORY:Unassessed video game articles|R}}}}}} produces
  • 3.6% List-Class
  • 18.2% Stub-Class
  • 51.7% Start-Class
  • 15.4% C-Class
  • 4.7% B-Class
  • 5.6% GA-Class
  • 0.9% FA-Class
  • 0% remaining

Note that this method could more easily be written using |project=video game (see below) but would work if multiple projects/categories were being used.

Automatic values
{{Progression rainbow|project=video game}} produces
  • 3.6% List-Class
  • 18.2% Stub-Class
  • 51.7% Start-Class
  • 15.4% C-Class
  • 4.7% B-Class
  • 5.6% GA-Class
  • 0.9% FA-Class
  • 0% remaining
Custom height
{{Progression rainbow|project=video game|height=12px}} produces
  • 3.6% List-Class
  • 18.2% Stub-Class
  • 51.7% Start-Class
  • 15.4% C-Class
  • 4.7% B-Class
  • 5.6% GA-Class
  • 0.9% FA-Class
  • 0% remaining

See also

edit
  • 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 rainbow/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_rainbow/sandbox&oldid=987247811"
Last edited on 5 November 2020, at 21:00

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 5 November 2020, at 21:00 (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