Template:Color: Difference between revisions

From Blockgame Wiki
(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

Documentation

{{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