Template:NewUserbox/doc
Jump to navigation
Jump to search
|
It is highly recommended that you use this template in combination with {{Userboxcontain}} and {{NewUserboxBreak}} |
This template is compatible with {{Userboxtop}} and {{Userboxbottom}} |
This is a documentation subpage for Template:NewUserbox (see that page for the template itself). It contains usage information, categories and other content that is not part of the original template page |
This template is intended as a modernized equivalent to {{Template:Userbox}}. It uses a newer layout method; includes the best features of old and new. And it does all this in less code than the original.
Usage, Parameters and Examples
{{NewDelete}}
Parameter | Description | Example | Preview |
---|---|---|---|
{{{border-c}}} | Userbox border color | {{NewUserbox|border-c=red}} |
id
info |
{{{border-w}}} | Userbox border width (Unit must be specified) |
{{NewUserbox|border-w=3px}} |
id
info |
{{{info}}} | Infobox content | {{NewUserbox|info=Hello World!}} |
id
Hello World! |
{{{info-s}}} | Infobox styling | {{NewUserbox|info-s=background:orange;}} |
id
info |
{{{id}}} | Idbox content | {{NewUserbox|id=[[File:WiiDrawing.png|32px|link=]]}} | info |
{{{id-s}}} | Idbox styling | {{NewUserbox|id-s=background:lightblue;}} |
id
info |
{{{mode}}} | Predefined styling that dictates the size of the userbox | {{NewUserbox|mode=compact}} |
id
info |
{{{type}}} | Predefined styling for the entire userbox | {{NewUserbox|type=green}} |
id
info |
Hiding New Userboxes
You can add .NewUserbox{ display: none; }
into your userspace .css files in order to hide New Userboxes.
Avaliable Modes and Types
{{NewUserbox|mode=compact}} | {{NewUserbox|mode=ubercompact}}
id
info
id
info
{{NewUserbox|type=brew}} | {{NewUserbox|type=green}} | {{NewUserbox|type=peripheral}}
id
info
id
info
id
info
See also