Template talk:TextColors

From Wikipedia, the free encyclopedia
Jump to: navigation, search

[edit] Help/Usage moved

The help/usage that was here is now found on Template:TextColors // FrankB 20:09, 4 January 2007 (UTC) for user:Patrick

Okay, so maybe it took a year, but I've copied the documentation ("help/usage" as you call it) to Template:TextColors/doc. I've made the edit request below replace the entire documentation information with the {{Documentation}} template (which loads Template:TextColors/doc on the template page automatically). This way, the documentation subpage can be edited without needing to request an edit to a protected page. Categories and interwiki should be added to the documentation subpage. --Lightsup55 ( T | C ) 19:24, 23 January 2009 (UTC)

[edit] Category link

{{editprotected}}

YesY Done Harryboyles 17:15, 27 August 2008 (UTC)

[edit] Edit request

{{editprotected}}

Please remove the usage section (and other text inside the <noinclude></noinclude> tags) and replace it with the {{Documentation}} template as I've created a documentation subpage at Template:TextColors/doc. A specific description of the request follows below. Thanks.

Change this:

{| style="background:{{{2}}};"
|<span style="color: {{{1}}}">{{{3}}}</span>
|}<noinclude>
{{commonstmp}}
==Usage==
Guts: 
'''<nowiki> {| style="background:{{{2}}};" | <span style="color: {{{1}}}">{{{3}}}</span> |} </nowiki>'''

Sets foreground and background [[web colors|colors]] of a given text. They can be specified by name or in the format #dddddd (RGB hex triplet).

Unless in the case of personal use on a user page, use this template with great caution:
*a poor contrast may make the text difficult or impossible to read
*the contrast can be experienced as even poorer in the case of [[color blindness]]
*links have a color according to user settings; they become invisible if this color is equal to the background color

==Examples==

<nowiki>{{co|#ffffff|#000000|From [[Wikipedia]], the free [[encyclopedia]].}}</nowiki> gives: {{co|#ffffff|#000000|From [[Wikipedia]], the free [[encyclopedia]].}} 

<nowiki>{{co|#aa0000|#009999|From [[Wikipedia]], the free [[encyclopedia]].}}</nowiki> gives: {{co|#aa0000|#009999|From [[Wikipedia]], the free [[encyclopedia]].}} 

<nowiki>{{co|white|black|From [[Wikipedia]], the free [[encyclopedia]].}}</nowiki> gives: {{co|white|black|From [[Wikipedia]], the free [[encyclopedia]].}} 

<nowiki>{{co|yellow|grey|From [[Wikipedia]], the free [[encyclopedia]].}}</nowiki> gives: {{co|yellow|grey|From [[Wikipedia]], the free [[encyclopedia]].}} 

<nowiki>{{co|blue|silver|From [[Wikipedia]], the free [[encyclopedia]].}}</nowiki> gives: {{co|blue|silver|From [[Wikipedia]], the free [[encyclopedia]].}} 

<nowiki>{{co|grey|yellow|From [[Wikipedia]], the free [[encyclopedia]].}}</nowiki> gives: {{co|grey|yellow|From [[Wikipedia]], the free [[encyclopedia]].}} 

<nowiki>{{co|black|aqua|From [[Wikipedia]], the free [[encyclopedia]].}}</nowiki> gives: {{co|black|aqua|From [[Wikipedia]], the free [[encyclopedia]].}}

== Standard color names ==

The [[HTML]] 4.01 specification defines sixteen named colors, as follows:

{| border="0"
!Color
!Hexadecimal
!Color
!Hexadecimal
|-
|black
|style="background:#000000; color:#ffffff; font-family:monospace;"|#000000
|silver
|style="background:#c0c0c0; color:#000000; font-family:monospace;"|#c0c0c0
|-
|gray
|style="background:#808080; color:#ffffff; font-family:monospace;"|#808080
|white
|style="background:#ffffff; color:#000000; font-family:monospace;"|#ffffff
|-
|maroon
|style="background:#800000; color:#ffffff; font-family:monospace;"|#800000
|red
|style="background:#ff0000; color:#000000; font-family:monospace;"|#ff0000
|-
|purple
|style="background:#800080; color:#ffffff; font-family:monospace;"|#800080
|fuchsia
|style="background:#ff00ff; color:#000000; font-family:monospace;"|#ff00ff
|-
|green
|style="background:#008000; color:#ffffff; font-family:monospace;"|#008000
|lime
|style="background:#00ff00; color:#000000; font-family:monospace;"|#00ff00
|-
|olive
|style="background:#808000; color:#ffffff; font-family:monospace;"|#808000
|yellow
|style="background:#ffff00; color:#000000; font-family:monospace;"|#ffff00
|-
|navy
|style="background:#000080; color:#ffffff; font-family:monospace;"|#000080
|blue
|style="background:#0000ff; color:#000000; font-family:monospace;"|#0000ff
|-
|teal
|style="background:#008080; color:#ffffff; font-family:monospace;"|#008080
|aqua
|style="background:#00ffff; color:#000000; font-family:monospace;"|#00ffff
|}

==See also==

* {{tl|Colors}} – background/text color (text in free span)
* {{tl|TextColors}} – background/text color (text in block table)
* {{tl|NestTextColors}} – background/text color (text in block div)
* {{tl|bkg}} – background color (text in free span)
* {{tl|bg}} – background color (text in free span)

and

*[[web colors]]
*{{tiw|Fontcolor}}
*[http://lynda.com/hex.asp# non-dithering safe colors]

[[Category:Typing-aid templates|{{PAGENAME}} ]]
[[Category:text color templates]]
[[Category:Wikipedia formatting and function templates|{{PAGENAME}}]]<!--- Keep for compatibility with en.wp ---->

</noinclude>

To this:

{| style="background:{{{2}}};"
|<span style="color: {{{1}}}">{{{3}}}</span>
|}<noinclude>

<!-- Add categories and interwikis to the /doc subpage, not here! -->
{{Documentation}}</noinclude>

--Lightsup55 ( T | C ) 19:17, 23 January 2009 (UTC)

YesY Done Thanks, PeterSymonds (talk) 02:34, 24 January 2009 (UTC)
Personal tools
Namespaces
Variants
Actions
Navigation
Interaction
Toolbox