Help:Using colours: Difference between revisions

Content deleted Content added
add notice
Line 3:
{{Wikipedia how to|HELP:COLOR|WP:COLOURS|H:UC}}
{{Warning link color}}
{{Notice|Editors are encouraged to use the tools listed at [[MOS:COLOR]], such as the [[Wikipedia:Manual of Style/Accessibility#Additional tools for color scheme selection|tools for color scheme selection]], to make illustrations and webpages more accessible.}}
 
To use a colour in a [[wikipedia:template|template]] or [[wikipedia:table|table]] you can use the [[hex triplet]] (e.g. {{Mono|#CD7F32}} is bronze) or [[HTML color names|HTML color name]] (e.g. red).
 
Editors are encouraged to make use of tools, such as [https://colorbrewer2.org/ Color Brewer 2] to create [[Brewer palettes]], listed at [[MOS:COLOR]] for [[Wikipedia:Manual of Style/Accessibility#Additional tools for color scheme selection|color scheme selection]] used in graphical charts, maps, tables, and otherwebpages entities,with usingaccessibility '''[https://colorbrewer2.org/in thismind tool]'''for color-blind and visually impaired users.
 
==Overriding font colour{{anchors|Overriding font color}}==
To makeapply acolour wordto have colourtext, use:
<code><nowiki><span style="color:</nowiki>''hex triplet or colour name''<nowiki>">text</span></nowiki></code>
 
Note that you cannot use the BritishCommonwealth spelling, "colour", in thisHTML contexttags used in wikitext.
 
Examples:
*<code>'''<nowiki><span style="color:red"></nowikicode>{{Highlight round|red|bc=#dadde3}}<code>">'''red writing'''<nowiki></span></nowiki>'''</code> shows as <span style="color:red">red writing</span>
*<code>'''<nowiki><span style="color:</code>{{Highlight round|#0f0">|bc=#dadde3}}</nowikicode>">'''green writing'''<nowiki></span></nowiki>'''</code> shows as <span style="color:#0f0">green writing</span>
*<code>'''<nowiki><span style="color:</code>{{Highlight round|#0000FF">|bc=#dadde3}}</nowikicode>">'''blue writing'''<nowiki></span></nowiki>'''</code> shows as <span style="color:#0000FF">blue writing</span>
 
===Template font colour {{anchors|Template font color}}===
[[Template:{{Tl|Font color]]}}, or its redirect [[Template:{{Tl|Font colour]]}}, can also be used.
{{tlx|Font colour|fontcolour|backgroundcolour|Your text here}}