Template:Colorsample

From SME Server
Revision as of 23:48, 15 January 2009 by Cactus (talk | contribs) (Created Template:Colorsample to display color samples)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

    

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