Template:Color letter - Wikimedia Commons
Article Images
color: black (000000) On other letters: letter: [[:Category:{{{2}}}|{{{2}}}]] In other colors: | [[File:Letter{{{2}}}.svg|50px]] |
[[Category:{{{1}}} letters|{{{2}}}]][[Category:Letter {{{2}}} by color]]
Template:Color number is to be added to categories with media of letters of a particular color (e.g. Category:Black letter A). It uses WikiData to get color information and display a header, and categorizes by color and letter.
- 1 - color
- 2 - letter
- for layout, see Template:Color letter/data and Template:Color letter/layout
- The following parameters are passed to data:
- 1 - color QID
- 2 - color category name
- 3 - letter
- lang - language code from autotranslate
- othercolors - from localized template
- otherletters - from localized template
- The following parameters are gathered by data and passed to layout:
- clabel - color WD label
- ccat - color category name
- cimage - color image (WD) (P18)
- crgb - sRGB color hex triplet (WD) (P465)
- letter - letter
- lang - language code to use in WD queries
- othercolors - from localized template
- otherletters - from localized template
English | español | македонски | português do Brasil | русский | 日本語 | +/−
Use the following template for new language templates (e.g. Template:Color letter/en):
<includeonly>{{Color letter/data|{{{1}}}|{{{2}}}|{{{3}}}|lang=<!-- Insert desired language code here --> <!-- (comment code may be removed if desired) -->|othercolors= <!-- text title for list of other colors the same letter is used in (e.g. In other colors) -->|otherletters= <!-- text title for list of other letters the same color is used on (e.g. On other letters) -->}}</includeonly>
NOTE: Please do not use this template directly! This is just for translation. Use
{{Color letter}}instead.