https://wiki.jriver.com/index.php?title=Template:Text/doc&feed=atom&action=historyTemplate:Text/doc - Revision history2024-03-29T11:30:00ZRevision history for this page on the wikiMediaWiki 1.27.7https://wiki.jriver.com/index.php?title=Template:Text/doc&diff=10395&oldid=prevGlynor: 1 revision2014-04-11T06:08:35Z<p>1 revision</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<tr style='vertical-align: top;' lang='en'>
<td colspan='1' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='1' style="background-color: white; color:black; text-align: center;">Revision as of 06:08, 11 April 2014</td>
</tr><tr><td colspan='2' style='text-align: center;' lang='en'><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>Glynorhttps://wiki.jriver.com/index.php?title=Template:Text/doc&diff=10394&oldid=prevAdamponting at 02:29, 28 February 20142014-02-28T02:29:33Z<p></p>
<p><b>New page</b></p><div><br />
== Usage ==<br />
Guts: <br />
'''<nowiki><span style="background:{{{bg}}}; color:{{{c}}}; font:{{{f}}}; text-decoration:{{{d}}};">{{{1}}}</span></nowiki>'''<br />
<br />
Sets foreground and background [[Wikipedia:web colors|colors]] of a given text. They can be specified by name or in the format #dddddd; (RGB hex triplet).<br />
<br />
: '''bg=''' background color (defaults to #ffffff or white).<br />
: '''c=''' text color (defaults to #000000 or black).<br />
: '''f=''' font (no default).<br />
: '''d=''' none, overline, line-through, underline, or blink (defaults to none).<br />
:* '''none''' removes all decorations.<br />
:* '''blink''' is not sported (does not work) in IE, Chrome, or Safari.<br />
<br />
Unless in the case of personal use on a user page, use this template with great caution:<br />
<br />
* a poor contrast may make the text difficult or impossible to read<br />
* the contrast can be experienced as even poorer in the case of [[Wikipedia:color blindness|color blindness]]<br />
* links have a color according to user settings; they become invisible if this color is equal to the background color.<br />
<br />
== See also ==<br />
<br />
* [[wikipedia:Template:Colors]] – background/text color (text in free span) -- the inspiration for this template.<br />
* [[wikipedia:Template:TextColors]] – background/text color (text in block table)<br />
* [[wikipedia:Template:NestTextColors]] – background/text color (text in block div)<br />
* [[wikipedia:Template:bkg]] – background color (text in free span)<br />
* [[wikipedia:Template:bg]] – background color (text in free span)<br />
<br />
== Examples ==<br />
<br />
<nowiki>{{text|From [[Wikipedia]], the free [[encyclopedia]].}}</nowiki> gives: {{text|From [[Wikipedia:Wikipedia|Wikipedia]], the free [[Wikipedia:encyclopedia|encyclopedia]].}} <br />
<br />
<nowiki>{{text|bg=#ffffff|c=#000000|f=bold italic 16px serif|From [[Wikipedia]], the free [[encyclopedia]].}}</nowiki> gives: {{text|bg=#ffffff|c=#000000|f=bold italic 16px serif|From [[Wikipedia]], the free [[encyclopedia]].}} <br />
<br />
<nowiki>{{text|bg=#aa0000|c=#009999|From [[Wikipedia]], the free [[encyclopedia]].}}</nowiki> gives: {{text|bg=#aa0000|c=#009999|From [[Wikipedia]], the free [[encyclopedia]].}}<br />
<br />
<nowiki>{{text|bg=white|c=black|From [[Wikipedia]], the free [[encyclopedia]].}}</nowiki> gives: {{text|bg=white|c=black|From [[Wikipedia]], the free [[encyclopedia]].}} <br />
<br />
<nowiki>{{text|bg=yellow|c=grey|d=overline|From [[Wikipedia]], the free [[encyclopedia]].}}</nowiki> gives: {{text|bg=yellow|c=grey|d=overline|From [[Wikipedia]], the free [[encyclopedia]].}} <br />
<br />
<nowiki>{{text|bg=blue|c=silver|d=line-through|From [[Wikipedia]], the free [[encyclopedia]].}}</nowiki> gives: {{text|bg=blue|c=silver|d=line-through|From [[Wikipedia]], the free [[encyclopedia]].}} <br />
<br />
<nowiki>{{text|bg=grey|c=yellow|d=underline|From [[Wikipedia]], the free [[encyclopedia]].}}</nowiki> gives: {{text|bg=grey|c=yellow|d=underline|From [[Wikipedia]], the free [[encyclopedia]].}} <br />
<br />
<nowiki>{{text|bg=black|c=aqua|d=blink|From [[Wikipedia]], the free [[encyclopedia]].}}</nowiki> gives: {{text|bg=black|c=aqua|d=blink|From [[Wikipedia]], the free [[encyclopedia]].}} <br /><br />
:You can not see the blinking if you are using IE, Chrome, or Safari.<br />
<br />
== Standard color names ==<br />
<br />
The [[Wikipedia:HTML|HTML]] 4.01 specification defines sixteen named colors, as follows:<br />
<br />
{| border="0" background="none"<br />
! Color !! Hexadecimal !! Color !! Hexadecimal<br />
|-<br />
| black || style="background:#000000; color:#ffffff; font-family:monospace;" | #000000<br />
| silver || style="background:#c0c0c0; color:#000000; font-family:monospace;" | #c0c0c0<br />
|-<br />
| gray || style="background:#808080; color:#ffffff; font-family:monospace;" | #808080<br />
| white || style="background:#ffffff; color:#000000; font-family:monospace;" | #ffffff<br />
|-<br />
| maroon || style="background:#800000; color:#ffffff; font-family:monospace;" | #800000<br />
| red || style="background:#ff0000; color:#000000; font-family:monospace;" | #ff0000<br />
|-<br />
| purple || style="background:#800080; color:#ffffff; font-family:monospace;" | #800080<br />
| fuchsia || style="background:#ff00ff; color:#000000; font-family:monospace;" | #ff00ff<br />
|-<br />
| green || style="background:#008000; color:#ffffff; font-family:monospace;" | #008000<br />
| lime || style="background:#00ff00; color:#000000; font-family:monospace;" | #00ff00<br />
|-<br />
| olive || style="background:#808000; color:#ffffff; font-family:monospace;" | #808000<br />
| yellow || style="background:#ffff00; color:#000000; font-family:monospace;" | #ffff00<br />
|-<br />
| navy || style="background:#000080; color:#ffffff; font-family:monospace;" | #000080<br />
| blue || style="background:#0000ff; color:#000000; font-family:monospace;" | #0000ff<br />
|-<br />
| teal || style="background:#008080; color:#ffffff; font-family:monospace;" | #008080<br />
| aqua || style="background:#00ffff; color:#000000; font-family:monospace;" | #00ffff<br />
|}<br />
<br />
== See also ==<br />
<br />
* [[wikipedia:web colors]]<br />
* [[wikipedia:Template:Fontcolor]]<br />
* [http://www.w3schools.com/tags/ref_colornames.asp W3Schools HTML Color codes and names]<br />
* [http://www.w3schools.com/tags/ref_colorpicker.asp W3Schools HTML Color Picker]<br />
* [http://www.w3schools.com/css/default.asp CSS Tutorial]<br />
* [http://www.lynda.com/resources/hexpalette/hue.html non-dithering safe colors]<includeonly><br />
[[Category:Formatting and function templates|{{PAGENAME}}]]</includeonly><noinclude><br />
[[Category:Template documentation|{{PAGENAME}}]]</noinclude></div>Adamponting