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

Template:Class/colour

  • Template
  • Talk
  • Language
  • Watch
  • View source
< Template:Class
(Redirected from Template:Classcolor)
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 can only be edited by administrators because it is transcluded onto one or more cascade-protected pages.
This template uses Lua:
  • Module:Class (sandbox)
  • Module:Class/definition.json
Shortcuts
  • {{Class/colorTemplate:Class/color}}
  • {{Class colourTemplate:Class colour}}
  • {{Class colorTemplate:Class color}}
  • {{Class colTemplate:Class col}}
  • {{ClasscolourTemplate:Classcolour}}
  • {{ClasscolorTemplate:Classcolor}}
  • {{ClasscolTemplate:Classcol}}

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|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|C}} #ffff66 {{class/colour|Needed}} #dcdcdc
{{class/colour|CL}} #ffff66 {{class/colour|Portal}} #ddb1bc
{{class/colour|Substantial}} #ffff66 {{class/colour|Meta}} #dcdcdc
{{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|Template}} #fbceb1
{{class/colour|Incomplete}} #dcdcdc {{class/colour|User}} #ddd06a
{{class/colour|List}} #c7b1ff {{class/colour|Unassessed}} #dcdcdc
{{class/colour|NA}} #f5f5f5

Contents

  • 1 Accessibility
  • 2 Template data
  • 3 See also
    • 3.1 Class
    • 3.2 Importance
    • 3.3 Hybrid
    • 3.4 Others

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 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, Disambig, Audio, File, Future, Needed, Portal, Project, Redirect, Template, Book, Deferred, Unassessed, or User

Stringoptional

See also

Class

  • {{Article classification}}
  • {{Grading scheme}}
  • {{Assessment Class Summary}}
  • {{Articles by Quality}}
  • {{Class}}

Importance

  • {{Article importance}}
  • {{Importance scheme}}
  • {{Assessment Importance Summary}}
  • {{Articles by Importance}}
  • {{Importance}}
  • {{Importance/colour}}

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}}
This box:
  • view
  • talk
  • edit
The above documentation is transcluded from Template:Class/colour/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:Class/colour&oldid=1265220788"
Last edited on 25 December 2024, at 20:30

Languages

    • Afrikaans
    • العربية
    • অসমীয়া
    • Azərbaycanca
    • تۆرکجه
    • বাংলা
    • Беларуская
    • भोजपुरी
    • Dansk
    • فارسی
    • Galego
    • ગુજરાતી
    • 한국어
    • हिन्दी
    • Bahasa Indonesia
    • Kurdî
    • Ladino
    • मराठी
    • Bahasa Melayu
    • Minangkabau
    • Mirandés
    • Nederlands
    • नेपाली
    • 日本語
    • ଓଡ଼ିଆ
    • Oʻzbekcha / ўзбекча
    • ਪੰਜਾਬੀ
    • ភាសាខ្មែរ
    • Português
    • Scots
    • Shqip
    • සිංහල
    • Slovenščina
    • ไทย
    • Tiếng Việt
    • Zazaki
    • 中文
    • ᥖᥭᥰ ᥖᥬᥲ ᥑᥨᥒᥰ
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 25 December 2024, at 20:30 (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