Template:Color

From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history

!

template icon Template documentation[view] [edit] [history] [purge]

This template is used for color blocks on graphs.

For the Wikipedia's {{Color}} or {{Red}} etc use one of the following classes instead:

  • red · red
  • green · green
  • blue · blue
  • gray · gray (not grey), which will appear very light gray if using a dark skin
  • whitetext · white text

Examples[edit source]

{{Text|class=red|This is red text}}:
This is red text

{{Ombox|class=darkskin|text=This text is in <span class="green">green</span> and <span class=":blue">blue</span>.:

WP template Suggested code
{{White}} {{text|class=gray|The text}}
{{Silver (color)}}
{{Gray}}
{{Black}} No formatting
{{Pink}} {{text|class=red|The text}}
Avoid {{Red}} which does chart color blocks
{{Red}}
{{DarkRed}}
{{Maroon}}
{{Olive}} {{text|class=green|The text}}
{{Lime}}
{{Green}}
{{Aqua}} {{text|class=blue|The text}}
{{Cyan}}
{{Teal}}
{{Azure}}
{{Blue}}
{{Navy (color)}}
{{Brown}} None/use bold
{{Orange}}
{{Gold (color)}}
{{Yellow}}
{{Purple}} None/use bold
{{Fuchsia}}
{{Magenta}}

Incorrect syntax[edit source]

Using style="font-color:green" instead of the correct style="class:green" will cause the default HTML shade of that color to appear, instead of the MEpedia shade that has improved readability.

Correcting color shades[edit source]

All these named classes have a suitable share for the default skins set in MediaWiki:Common.css, and for the dark Timeless skin. Before changing any shades they should be tested for contrast using an accessibility tool online.