Template:Swatch inline: Difference between revisions

Jump to navigation Jump to search
m (1 revision imported)
en>Jonesey95
(If 1= starts with a #, replace it with its HTML equivalent so that it does not render a new numbered list. This is an egregious kludge.)
Line 1: Line 1:
<span title="{{{2|{{{1|}}}}}}" style="background-color:{{{1}}}"><span>{{#if:{{{2}}}|{{{2}}}|{{{1}}}}}</span></span><noinclude>
<span title="{{{2|{{{1|}}}}}}" style="background-color:{{{1|}}}">{{#if:{{{2|}}}|{{{2}}}|{{replace|{{{1}}}|#|&#35;}}}}</span><noinclude>
 
{{documentation}}
==Usage==
Mostly for use on talk pages when discussing color.
:<nowiki>{{swatch inline|RED}}</nowiki> '''gives''' {{swatch inline|RED}}
:<nowiki>{{swatch inline| #00FF00}}</nowiki> '''gives''' {{swatch inline| #00FF00}}
:<nowiki>{{swatch inline|gold|Au}}</nowiki> '''gives''' {{swatch inline|gold|Au}}
 
RED is a color direct name and <nowiki>#00FF00</nowiki> is a triplet.
 
==See also==
*[[Template:Color sample]]
*[[Template:Swatch]]
*[[Template:Font color]]
*[[Template:Color box]]
*[[Template:Legend inline]]
*[[Template:RouteBox]]
*[[Swatch (disambiguation)|Swatch]]
*[[List of colors]]
[[category:text color templates]]
</noinclude>
</noinclude>

Revision as of 13:09, 14 February 2019

{{{1}}}