Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Search
Editing
Template:Color/doc
From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
Namespaces
Template
Discussion
More
More
Page actions
Read
Edit source
History
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
This template is used for color blocks on graphs. For the Wikipedia's {{t1|color}} or {{t1|red}} etc use one of the following classes instead: * {{text|class=red|red}} · red * {{text|class=green|green}} · green * {{text|class=blue|blue}} · blue * {{text|class=gray|gray}} · gray (not gr'''''e'''''y), which will appear very light gray if using a dark skin * {{text|class=whitetext|whitetext}} · white text ==Examples== <code><nowiki>{{Text|class=red|This is red text}}</nowiki></code>:<br> {{text|class=red|This is red text}} <code><nowiki>{{Ombox|class=darkskin|text=This text is in <span class="green">green</span> and <span class=":blue">blue</span>.</nowiki></code>:<br> {{Ombox|class=darkskin|text=This text is in <span class="green">green</span> and <span class="blue">blue</span>.}} {| class="wikitable" ! WP template !! Suggested code |- | {{t1|white}} || rowspan="3"|<nowiki>{{text|class=gray|The text}}</nowiki> |- |{{t1|silver (color)}} |- |{{t1|gray}} |- |{{t1|black}} || No formatting |- |{{t1|pink}} || rowspan="4"| <nowiki>{{text|class=red|The text}}</nowiki><br> Avoid {{t1|Red}} which does chart color blocks |- |{{t1|red}} |- |{{t1|darkRed}} |- |{{t1|maroon}} |- |{{t1|olive}} || rowspan="3"| <nowiki>{{text|class=green|The text}}</nowiki> |- |{{t1|lime}} |- |{{t1|green}} |- |{{t1|aqua}} || rowspan="6"| <nowiki>{{text|class=blue|The text}}</nowiki> |- |{{t1|cyan}} |- |{{t1|teal}} |- |{{t1|azure}} |- |{{t1|blue}} |- |{{t1|navy (color)}} |- |{{t1|brown}} || rowspan="4"| None/use bold |- |{{t1|orange}} |- |{{t1|gold (color)}} |- |{{t1|yellow}} |- |{{t1|purple}} || rowspan="3"| None/use bold |- |{{t1|fuchsia}} |- |{{t1|magenta}} |} ==Incorrect syntax == Using <code><nowiki>style="font-color:green"</nowiki></code> instead of the correct <code><nowiki>style="class:green"</nowiki></code> will cause the <span style="color:green">default HTML shade</span> of that color to appear, instead of the <span class="green">MEpedia shade</span> that has improved readability. ==Correcting color shades == All these named classes have a suitable share for the default skins set in [[MediaWiki:Common.css]], and for the dark [[MediaWiki:Timeless.css|Timeless]] skin. Before changing any shades they should be tested for contrast using an accessibility tool online.
Summary:
Please make sure your edits are consistent with
MEpedia's guidelines
.
By saving changes, you agree to the
Terms of use
, and you irrevocably agree to release your contribution under the
CC BY-SA 3.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Ombox
(
edit
)
Template:T1
(
edit
)
Template:Text
(
edit
)
Module:Arguments
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:No globals
(
edit
)
Module:Yesno
(
edit
)
Navigation
Navigation
Skip to content
Main page
Browse
Become an editor
Random page
Popular pages
Abbreviations
Glossary
About MEpedia
Links for editors
Contents
Guidelines
Recent changes
Pages in need
Search
Help
Wiki tools
Wiki tools
Special pages
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs