Template:Colorsample

From SME Server
Revision as of 23:53, 15 January 2009 by Cactus (talk | contribs) (Added source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump 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     

Source

http://qed.princeton.edu/main/Template:Colorsample