Template:Class/color/doc
< Template:Class | color
Jump to navigation
Jump to search
This is a documentation subpage for Template:Class/color. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on many 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: |
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/color|A}}
|
#9cbdff
|
||||
{{class/color|AL}}
|
#9cbdff
|
{{class/color|Category}}
|
#dcdcdc
|
||
{{class/color|AM}}
|
#9cbdff
|
||||
{{class/color|B}}
|
#66ff66
|
{{class/color|Audio}}
|
#ddccff
|
||
{{class/color|BL}}
|
#66ff66
|
{{class/color|Future}}
|
#b4bbff
|
||
{{class/color|Complete}}
|
#dcdcdc
|
||||
{{class/color|C}}
|
#daff66
|
{{class/color|Needed}}
|
#dcdcdc
|
||
{{class/color|CL}}
|
#daff66
|
{{class/color|Portal}}
|
#ddb1bc
|
||
{{class/color|Substantial}}
|
#dcdcdc
|
{{class/color|Meta}}
|
#dcdcdc
|
||
{{class/color|D}}
|
#ffaa66
|
{{class/color|Project}}
|
#c0c090
|
||
{{class/color|Basic}}
|
#dcdcdc
|
{{class/color|Redirect}}
|
#c0c0c0
|
||
{{class/color|E}}
|
#ffa4a4
|
{{class/color|SIA}}
|
#00fa9a
|
||
{{class/color|Template}}
|
#fbceb1
|
||||
{{class/color|Incomplete}}
|
#dcdcdc
|
{{class/color|User}}
|
#ddd06a
|
||
{{class/color|List}}
|
#c7b1ff
|
{{class/color|Unassessed}}
|
#dcdcdc
|
||
{{class/color|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 for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Class/color in articles based on its TemplateData.
TemplateData for Class/color
<TemplateData> {
"description": "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", "params": { "1": { "label": "Class type", "description": "One of FA, FL, FM, A, GA, B, C, Start, Stub, List, NA, Category, Disambig, Audio, File, Future, Needed, Portal, Project, Redirect, Template, Book, Deferred, Unassessed, or User", "type": "string", "required": false } }
} </TemplateData>
See also
Standard class types | ||||
---|---|---|---|---|
A | B | C | D | E |
{{Class|A}} | {{Class|B}} | {{Class|C}} | {{Class|D}} | {{Class|E}} |
AL | BL | CL | DL | EL |
{{Class|AL}} | {{Class|BL}} | {{Class|CL}} | {{Class|DL}} | {{Class|EL}} |
List | Future | NA | ??? | |
{{Class|List}} | {{Class|Future}} | {{Class|NA}} | {{Class|Unassessed}} | |
Non-standard class types | ||||
Annex | Disambig | Draft | File | Help |
{{Class|Annex}} | {{Class|Disambig}} | {{Class|Draft}} | {{Class|File}} | {{Class|Help}} |
Module | Project | Template | ||
{{Class|Module}} | {{Class|Project}} | {{Class|Template}} |
Class
- {{Category class}}
- {{Articles by Quality}}
- {{Class}}