Difference between revisions of "Template:Color sample"

From blackwiki
Jump to navigation Jump to search
imported>RossPatterson
(It's been almost five months, and no obvious decision.)
imported>Dispenser
(1em square box now)
Line 1: Line 1:
<span style="display:inline-block;width:1.62ex;height:1ex;border:1px solid black;background:{{{1}}}">&nbsp;&nbsp;&nbsp;&nbsp;</span><noinclude>
+
<span style="display:inline-block;width:1em;height:1em;border:1.62px solid {{border|black}};background:{{{1}}};">&emsp;</span><noinclude>
 +
{{documentation|content=
  
 
==Usage==
 
==Usage==
<nowiki>{{Colorsample|RED}}</nowiki> '''Gives:''' {{Colorsample|RED}}
+
*<nowiki>{{Colorsample|red}}</nowiki> '''Gives:''' {{Colorsample|red}}
  
<nowiki>{{Colorsample|#00FF00}}</nowiki> '''Gives:''' {{Colorsample|#00FF00}}  
+
* <nowiki>{{Colorsample|#00FF00}}</nowiki> '''Gives:''' {{Colorsample|#00FF00}}  
  
  
Line 12: Line 13:
 
*[[List of colors]]
 
*[[List of colors]]
  
 +
}}
 
</noinclude>
 
</noinclude>

Revision as of 19:51, 4 January 2009

<span style="display:inline-block;width:1em;height:1em;border:1.62px solid black;background:{{{1}}};"> 

Template documentation

Usage

  • {{Colorsample|red}} Gives: <span style="display:inline-block;width:1em;height:1em;border:1.62px solid black;background:red;"> 
  • {{Colorsample|#00FF00}} Gives: <span style="display:inline-block;width:1em;height:1em;border:1.62px solid black;background:#00FF00;"> 


See also