Template:Color: Difference between revisions
Added mw-no-invert class to color. Color should now not invert when Dark Mode is toggled |
m Forgot <includeonly> |
||
Line 1: | Line 1: | ||
{{#switch: {{{1}}} | <includeonly>{{#switch: {{{1}}} | ||
| Common= <span class="mw-no-invert" style="color:#c8c8c8;">{{{2}}}</span> | | Common= <span class="mw-no-invert" style="color:#c8c8c8;">{{{2}}}</span> | ||
| Black= <span class="mw-no-invert" style="color:#000000;">{{{2}}}</span> | | Black= <span class="mw-no-invert" style="color:#000000;">{{{2}}}</span> | ||
Line 22: | Line 22: | ||
| Turquoise= <span class="mw-no-invert" style="color:#40E0D0;">{{{2}}}</span> | | Turquoise= <span class="mw-no-invert" style="color:#40E0D0;">{{{2}}}</span> | ||
| #default= {{{2}}} | | #default= {{{2}}} | ||
}}<noinclude>[[Category:Template]] [[Category:Color Template]] {{doc}}</noinclude> | }}</includeonly><noinclude>[[Category:Template]] [[Category:Color Template]] {{doc}}</noinclude> |
Latest revision as of 10:46, 15 April 2024
{{Color}}
is a color template used to add a color to text it is applied to.
Syntax
{{Color}}
List of Color Templates
The "§" below represents minecraft color codes.
- [§0]
{{Color|Black}}
- Black - [§1]
{{Color|DarkBlue}}
- DarkBlue - [§2]
{{Color|DarkGreen}}
- DarkGreen - [§3]
{{Color|DarkAqua}}
- DarkAqua - [§4]
{{Color|DarkRed}}
- DarkRed - [§5]
{{Color|DarkPurple}}
- DarkPurple - [§6]
{{Color|Gold}}
- Gold - [§7]
{{Color|Gray}}
- Gray - [§8]
{{Color|DarkGray}}
- DarkGray - [§9]
{{Color|Blue}}
- Blue - [§a]
{{Color|Green}}
- Green - [§b]
{{Color|Aqua}}
- Aqua - [§c]
{{Color|Red}}
- Red - [§d]
{{Color|LightPurple}}
- LightPurple - [§e]
{{Color|Yellow}}
- Yellow - [§f]
{{Color|White}}
- White {{Color|Bronze}}
- Bronze{{Color|Orange}}
- Orange{{Color|Silver}}
- Silver{{Color|Turquoise}}
- Turquoise
Examples
Aqua
{{Color|Aqua|notIrma}}
- Produces
notIrma
Gold
{{Color|Gold|Little__Ham}}
- Produces
Little__Ham
The above documentation is transcluded from Template:Color/doc. (edit | history)