Template talk:Color
| Template:Color is permanently protected from editing as it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
| This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||
| ||||||||
Interwiki
[edit]Hi! Could an admin add Polish interwiki to the template -> pl:Szablon:Kolor, please. Thanks Electron (talk) 15:28, 18 November 2011 (UTC)
Done by JAn Dudík. —LLarson (said & done) 15:01, 15 August 2016 (UTC)
- Thanks, better late than never ;) Electron (talk) 21:05, 16 August 2016 (UTC)
Redirects
[edit]I notice the documentation here is missing a list of redirects, as present elsewhere.
In particular, I would like to ask for the documentation to note that Template: Colour is redirected here. In other words, that Wikipedia is fine with editors using their preferred spelling of this word when invoking templates. ~Without having to experiment on their own, as I had to. Thanks, ~~ — Preceding unsigned comment added by CapnZapp (talk • contribs) 06:14, 25 January 2014 (UTC)
Done per CapnZapp’s request. —LLarson (said & done) 15:01, 15 August 2016 (UTC)
Brohoof! CapnZapp (talk) 20:57, 15 August 2016 (UTC)
Urgent: Please fix this template for printed content Template:Color/styles.css.
[edit]Firstly, apologies for writing in English if this is not your first language (this is an automated message).
This template has been detected as one of 436 pages using styles that break the page when printed when the user is using dark mode. The fix is very straightforward - all your styles relating to dark mode must be scoped to. Since there is a high risk of this templates being copied to other wikis it is important this notice is acted on ASAP.
To fix this:
- Update `@media (prefers-color-scheme: dark` to `@media screen and (prefers-color-scheme: dark`
- Wrap any styles relating to `html.skin-theme-clientpref-night` in `@media screen`
If this message has not been acted on in 7 days, this will be fixed by an automated script. Thank you for your help fixing this important issue.
For any questions feel free to ask them at phab:T369874.
Jon (WMF) (talk) 18:19, 2 August 2024 (UTC) on behalf of the web team.- This change has since been made. -- Beland (talk) 23:02, 12 September 2024 (UTC)
dark mode problem/alternative
[edit]@Theknightwho: Thank you for striving to improve Wikipedia.
Regarding this edit (and any others like it), apparently {{color}} does not function in dark mode, so Wikipedia's Spanish alphabet section said the letters that used to be part of the Spanish alphabet were shown in red, but displayed them in the same white as the rest of the alphabet. i switched that page back to this format
- <span style="color: RED ">this format</span>
which seems to work in light or dark mode.
If any text on Wikipedia is supposed to be in non-default colors, editors need to know if the wiki code they use is going to work. i'm not sure where else to spread the word about this hiccup, though.
i tried to use {{!xt|this template}} to get a reddish color, but Preview replaced my text with a big bold reddish alert saying, "Template:!xt is only for examples of style and formatting. Do not use it in actual articles." If the {color} template can not be made to work in dark mode, could the {color} template be set to display an {!xt}-style Preview alert about {color} not working in dark mode?
...Should this post move to Wikipedia:Village pump (idea lab)?
Wishing everyone safe, happy, productive editing. --70.22.1.45 (talk) 13:38, 28 August 2025 (UTC)
Can these templates be used in right-to-left languages?
[edit]Reading Vav-consecutive, and as a non-Hebrew reader, I thought it might be useful if the examples could pick out the "vav" letter in a different colour, in the way that {{Red|red}} yields red. So I began to try to edit one of them. But I was unable to make it work. Here's one example from that article:
- yôm wə-laylâ
- יוֹם וְלַיְלָה
- Day and night.
- yôm wə-laylâ
Is there a way to highlight that "vav" (the וְ in the middle).
Do these templates work with right-to-left languages?
Feline Hymnic (talk) 15:37, 11 March 2026 (UTC)
- To clarify: If the Latin-alphabet lines were to receive the highlight treatment, they would be:
- yôm wə-laylâ
- יוֹם וְלַיְלָה
- Day and night.
- yôm wə-laylâ
- My question is about doing the same for the "Script/Hebrew" line.
- Feline Hymnic (talk) 16:02, 12 March 2026 (UTC)
- Here you go: יוֹם וְלַיְלָה. It can be tricky to navigate a mix of left-to-right and right-to-left scripts, but after some trial and error, I was able to do it. —andrybak (talk) 18:12, 9 April 2026 (UTC)
- @Andrybak: Thank you. I've tried it in the article: three occurrences. I think it is correct, but a second pair of eyes would be welcome. Feline Hymnic (talk) 15:18, 11 April 2026 (UTC)
- Here you go: יוֹם וְלַיְלָה. It can be tricky to navigate a mix of left-to-right and right-to-left scripts, but after some trial and error, I was able to do it. —andrybak (talk) 18:12, 9 April 2026 (UTC)