Difference between revisions of "Template:Colorsample"
From SME Server
Jump to navigationJump to searchm (Created Template:Colorsample to display color samples) |
m (Added source) |
||
Line 19: | Line 19: | ||
<nowiki>{{Colorsample|{{rgb|bronze}}}}</nowiki> produces {{Colorsample|{{rgb|bronze}}}} | <nowiki>{{Colorsample|{{rgb|bronze}}}}</nowiki> produces {{Colorsample|{{rgb|bronze}}}} | ||
− | + | ==Source== | |
− | + | http://qed.princeton.edu/main/Template:Colorsample | |
+ | ---- | ||
[[Category:CSS Template]] | [[Category:CSS Template]] | ||
[[Category:Color Template]] | [[Category:Color Template]] | ||
</noinclude> | </noinclude> |
Latest revision as of 22:53, 15 January 2009
Usage
{{Colorsample|COLOR}} or {{Colorsample|COLOR|text=TEXT|border=BORDER}}
All the named parameters are optional.
COLOR can be any CSS specification for a color.
Default values:
- border: 1px solid black
- text:
Examples
{{Colorsample|RED}} produces
{{Colorsample|#00FF00|text=foreground}} produces foreground
{{Colorsample|{{rgb|bronze}}}} produces
Source
http://qed.princeton.edu/main/Template:Colorsample