847 bytes added
, 23:48, 15 January 2009
m<span style="display:inline-block;width:1.62ex;height:1ex;border:{{{border|1px solid black}}};background:{{{1}}}">{{{text| }}}</span><noinclude>
==Usage==
<nowiki>{{Colorsample|COLOR}}</nowiki> or
<nowiki>{{Colorsample|COLOR|text=TEXT|border=BORDER}}</nowiki>
All the named parameters are optional.
COLOR can be any [[Help:CSS|CSS]] specification for a color.
Default values:
* border: 1px solid black
* text: &nbsp;&nbsp;&nbsp;&nbsp;
==Examples==
<nowiki>{{Colorsample|RED}}</nowiki> produces {{Colorsample|RED}}
<nowiki>{{Colorsample|#00FF00|text=foreground}}</nowiki> produces {{Colorsample|#00FF00|text=foreground}}
<nowiki>{{Colorsample|{{rgb|bronze}}}}</nowiki> produces {{Colorsample|{{rgb|bronze}}}}
<!--keyword: swatch -->
[[Category:CSS Template]]
[[Category:Color Template]]
</noinclude>