Semi Protection

Template:Userbox

The UESPWiki – Your source for The Elder Scrolls since 1995
Jump to: navigation, search
Due to the sensitive nature of this template or the fact that it is used on a large number of pages, it has been semi-protected to prevent site-wide damage by vandal bots.
Editors: In order to minimize the impact on our servers, please use sandboxes to make and test changes to widely used templates before deployment.
For more information, please see this article's talk page.

Summary

This template makes it simpler to build custom userboxes.

This template was originally copied from Wikipedia.

Parameters

Userbox
Parameter Scope Description
1 or
id-c
optional Color to use for both box border and logo background. Can be overridden separately using border-c(olor) and logo-background.
border-c or
border-color
optional The color of the border. (Defaults to medium grey if first unnamed parameter/id-c are not used.)
border-s or
border-width
optional The width of the border. (Defaults to 1 pixel; in pixels unless otherwise specified.)
float optional Align box to left or right and wrap text around it. Set to none to avoid floating. (Defaults to left.)
table-op optional Any additional CSS style information to apply to the userbox table.
Logo/ID box
logo-background optional The color of the background behind the image. These can be used to have a different color than the border. (Defaults to light grey if first unnamed parameter/id-c are not used.)
3 or
id or
logo
required The contents of the logo (either text, or an image using [[File:...]] tags). Text will automatically be displayed in bold.
5 or
id-s or
logo-size
optional The size of the logo text, if applicable. (Defaults to 14 points; in points unless otherwise specified.)
id-fc or
logo-color
optional The color of the logo text, if applicable. (Defaults to black.)
id-lh or
logo-line-height
optional The line height of the logo text, if applicable. (Defaults to 1.25 em; in em unless otherwise specified.)
id-p or
logo-padding
optional The padding to add between the logo and the text box. (Defaults to 1 pixel; in pixels unless otherwise specified.)
id-op or
logo-other-param
optional Any additional CSS style information to apply to the logo.
Info box
2 or
info-background or
info-c
optional The color of the background behind the text. (Defaults to very light grey.)
4 or
info
required The text for the userbox.
info-align optional Text alignment. (Defaults to left-aligned.)
info-fc or
info-color
optional The color of the text. (Defaults to black.)
info-lh or
info-line-height
optional The line height of the text, if applicable. (Defaults to 1.25 em; in em unless otherwise specified.)
info-p or
info-padding
optional The padding to add on each side of the text. (Defaults to 4 pixels; in pixels unless otherwise specified.)
info-s or
info-size
optional The size of the text. (Defaults to 8 points; in points unless otherwise specified.)
info-op or
info-other-param
optional Any additional CSS style information to apply to the info box.

Examples

{{Userbox|id=[[File:Example.jpg|45x45px]]|info=This is an example userbox.}}
Example.jpg This is an example userbox.
{{Userbox|#0000FF|#80FFFF|E.g.|This is a more colorful example userbox.|20|info-s=11|logo-color=white}}
E.g. This is a more colorful example userbox.