Template:Userbox color
Appearance
{{{id}}} | {{{info}}} |
Purpose
[edit]create a general purpose userbox with predefined color combinations that can be specified with just a Key value.
What this template does
[edit]This template takes the key value specified by the user to set up a userbox with the predefined colors assigned to this key, and the ID and Info specified by the user.
Usage
[edit]{{userbox | id = id text or image | info = info text | key = color key (default = 0) determines border color, id (left sub-box) background color, and info (right sub-box) background color | float = left|right|none (default = left) | border-s = border width in pixels (default = 1) | id-fc = id font color (default = black) | id-s = id text size (default = 8pt) | id-p = id cell padding space (distance between cell contents & cell border)(default = 1px) | id-lh = id line height (default=1.25em) | id-op = id other parameter (CSS) (optional) | id-w = id box width (default=45px) | id-h = id box height - determines height of userbox (default=45px) | info-fc = info font color (default=black) | info-s = info text size (8 pt) | info-p = info padding (distance between cell contents & cell border) default=4px | info-lh = info line height (or distance in between text lines) (default=1.25em) | info-op = info other (CSS) parameter(s) (optional) | usercategory = user category (optional) | usercategory2 = user category (optional) }}
- all key values and their color combinations are shown in the examples
- Text size is assumed to be in points
- All parameters are optional
To add a color combination
[edit]Examples
[edit]{{userbox color |key = default |id=AAA |info=text in right box}}
|