• Home
  • Random
  • Log in
  • Settings
  • About Safer nicotine wiki
  • Disclaimers
Safer nicotine wiki

Template:Class/colour

  • Language
  • Watch
  • View source
< Template:Class
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on 19,000+ pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
This template uses Lua:
  • Module:Class
  • Module:Class/definition.json


This template uses a single unnamed parameter to output the colour used by each class type as a six digit hex code prefixed with a # symbol.

Syntax Output Colour Syntax Output Colour
{{class/colour|FA}} #9cbdff
{{class/colour|FL}} #9cbdff {{class/colour|Category}} #ffdb58
{{class/colour|FM}} #9cbdff {{class/colour|Current}} #e6a4ff
{{class/colour|FPo}} #9cbdff {{class/colour|Deferred}} #d1bcac
{{class/colour|A}} #66ffff {{class/colour|Disambig}} #00fa9a
{{class/colour|AL}} #66ffff {{class/colour|Draft}} #e7b198
{{class/colour|GA}} #66ff66 {{class/colour|File}} #ddccff
{{class/colour|B}} #b2ff66 {{class/colour|Audio}} #ddccff
{{class/colour|BL}} #b2ff66 {{class/colour|Future}} #b4bbff
{{class/colour|Complete}} #b2ff66 {{class/colour|Merge}} #add8e6
{{class/colour|C}} #ffff66 {{class/colour|Needed}} #dcdcdc
{{class/colour|CL}} #ffff66 {{class/colour|Portal}} #ddb1bc
{{class/colour|Substantial}} #ffff66 {{class/colour|Meta}} transparent
{{class/colour|Start}} #ffaa66 {{class/colour|Project}} #c0c090
{{class/colour|Basic}} #ffaa66 {{class/colour|Redirect}} #c0c0c0
{{class/colour|Stub}} #ffa4a4 {{class/colour|SIA}} #e9daff
{{class/colour|SL}} #ffa4a4 {{class/colour|Template}} #fbceb1
{{class/colour|Incomplete}} transparent {{class/colour|User}} #ddd06a
{{class/colour|List}} #c7b1ff {{class/colour|Unassessed}} transparent
{{class/colour|NA}} #f5f5f5

Accessibility

To accommodate readers of Wikipedia who are partially or fully color-blind or visually impaired, the contrast of the text with its background colour should reach at least Web Content Accessibility Guidelines (WCAG) 2.0's AA level; see for further details. Class colours are typically used with blue linked text which uses colour #0645AD. You can check contrast levels with the following online tool: WebAIM Contrast Checker

Template data

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

TemplateData for Class

This template uses a single unnamed parameter to output the colour used by each class type as a six digit hex code prefixed with a # symbol

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Class type1

One of FA, FL, FM, A, GA, B, C, Start, Stub, List, NA, Category, Current, Disambig, Audio, File, Future, Merge, Needed, Portal, Project, Redirect, Template, Book, Deferred, SL, Unassessed, or User

Stringoptional

See also

Standard class types
 FA  FL  FM  A
{{Class|FA}} {{Class|FL}} {{Class|FM}} {{Class|A}}
 GA B C Start
{{Class|GA}} {{Class|B}} {{Class|C}} {{Class|Start}}
Stub List NA ???
{{Class|Stub}} {{Class|List}} {{Class|NA}} {{Class|Unassessed}}
Non-standard class types
Current Future SIA  AL
{{Class|Current}} {{Class|Future}} {{Class|SIA}} {{Class|AL}}
BL CL SL Category
{{Class|BL}} {{Class|CL}} {{Class|SL}} {{Class|Category}}
Disambig Draft File Merge
{{Class|Disambig}} {{Class|Draft}} {{Class|File}} {{Class|Merge}}
Needed Portal Project Redirect
{{Class|Needed}} {{Class|Portal}} {{Class|Project}} {{Class|Redirect}}
Template User
{{Class|Template}} {{Class|User}}
Importance types
 Top   High   Mid   Low 
{{Importance|Top}} {{Importance|High}} {{Importance|Mid}} {{Importance|Low}}
 Bottom   NA   ??? 
{{Importance|Bottom}} {{Importance|NA}} {{Importance|Unknown}}
Class
  • {{Article classification}}
  • {{Grading scheme}}
  • {{Assessment Class Summary}}
  • {{Category class}}
  • {{Articles by Quality}}
  • {{Class}}
Importance
  • {{Article importance}}
  • {{Importance scheme}}
  • {{Assessment Importance Summary}}
  • {{Category importance}}
  • {{Articles by Importance}}
  • {{Importance}}
  • {{Importance/colour}}
  • {{Importance/icon}}
Hybrid
  • {{Articles by Quality and Importance}}
  • {{Article by Quality and Importance}}
Others
  • {{Articles by Quality Pie Graph}}
  • {{Articles by Importance Pie Graph}}
  • {{Progression rainbow}}
  • {{WikiProject assessment progression}}
Tool to add multiple templates to quality assessment pages
  • {{WPBannerMeta/templatepage/qualheader |project =|topic =}}

<translate> This box:</translate> <span style="" title="<translate nowrap> View this template</translate>"><translate> view</translate> · <span style="" title="<translate nowrap> Discuss this template</translate>"><translate> talk</translate> · <span style="" title="<translate nowrap> Edit this template</translate>"><translate> edit</translate>

The above documentation is transcluded from Template:Class/colour/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://safernicotine.wiki/mediawiki/index.php?title=Template:Class/colour&oldid=34029"
Last edited on 11 June 2022, at 18:47
Cookies help us deliver our services. By using our services, you agree to our use of cookies.
More information

Languages

    • Moore
    Safer nicotine wiki
    • This page was last modified on 11 June 2022, at 18:47. Warning: Page may not contain recent updates.
    • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
    • Privacy policy
    • About Safer nicotine wiki
    • Disclaimers
    • Terms of Use
    • Desktop
    • Data access
    • Developers
    • Statistics
    • Cookie statement