Template:Class/colour

Template documentation[view] [edit] [history] [purge]

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|Book}} #98FF98
{{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}} #DDB1BC
{{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}} #FFA4A4 {{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 MOS:CONTRAST 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 documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

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

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
Featured article FA  Featured list FL  Featured media FM  A-Class article A 
{{class|FA}} {{class|FL}} {{class|FM}} {{class|A}}
 GA  B-Class article B  C-Class article C  Start-Class article Start 
{{class|GA}} {{class|B}} {{class|C}} {{class|Start}}
Stub-Class article Stub   List   NA   ??? 
{{class|Stub}} {{class|List}} {{class|NA}} {{class|Unassessed}}
Non-standard class types
Current-Class article Current  Future-Class article Future  SIA-Class article SIA   Deferred 
{{class|Current}} {{class|Future}} {{class|SIA}} {{class|Deferred}}
A-Class list AL  B-Class list BL  C-Class list CL  Start-Class list SL 
{{class|AL}} {{class|BL}} {{class|CL}} {{class|SL}}
Wikipedia Book Book  Category page Category  Disambiguation page Disambig   Draft 
{{class|Book}} {{class|Category}} {{class|Disambig}} {{class|Draft}}
 File   Merge   Needed   Portal 
{{class|File}} {{class|Merge}} {{class|Needed}} {{class|Portal}}
 Project  Redirect page Redirect   Template   User 
{{class|Project}} {{class|Redirect}} {{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
Importance
Hybrid
Others
Tool to add multiple templates to quality assessment pages