Predefinição:Userbox/Doc
A UESPWiki – Sua fonte de The Elder Scrolls desde 1995
Summary
This template makes it simpler to build custom userboxes.
This template was originally copied from Wikipedia.
Parameters
Userbox | ||
---|---|---|
Parâmetero | Escopo | Descrição |
1 or |
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 |
optional | The color of the border. (Defaults to medium grey if first unnamed parameter/id-c are not used.) |
border-s or |
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 |
required | The contents of the logo (either text, or an image using [[File:...]] tags). Text will automatically be displayed in bold. |
5 or |
optional | The size of the logo text, if applicable. (Defaults to 14 points; in points unless otherwise specified.) |
id-fc or |
optional | The color of the logo text, if applicable. (Defaults to black.) |
id-lh or |
optional | The line height of the logo text, if applicable. (Defaults to 1.25 em; in em unless otherwise specified.) |
id-p or |
optional | The padding to add between the logo and the text box. (Defaults to 1 pixel; in pixels unless otherwise specified.) |
id-op or |
optional | Any additional CSS style information to apply to the logo. |
Info box | ||
2 or |
optional | The color of the background behind the text. (Defaults to very light grey.) |
4 or |
required | The text for the userbox. |
info-align |
optional | Text alignment. (Defaults to left-aligned.) |
info-fc or |
optional | The color of the text. (Defaults to black.) |
info-lh or |
optional | The line height of the text, if applicable. (Defaults to 1.25 em; in em unless otherwise specified.) |
info-p or |
optional | The padding to add on each side of the text. (Defaults to 4 pixels; in pixels unless otherwise specified.) |
info-s or |
optional | The size of the text. (Defaults to 8 points; in points unless otherwise specified.) |
info-op or |
optional | Any additional CSS style information to apply to the info box. |
Examples
<pre style="width:; white-space:-moz-pre-wrap; white-space:-pre-wrap; white-space:-o-pre-wrap; white-space:pre-wrap; word-wrap:break-word; ">{{Userbox|id=[[File:Example.jpg|45x45px]]|info=This is an example userbox.}}
This is an example userbox. |
<pre style="width:; white-space:-moz-pre-wrap; white-space:-pre-wrap; white-space:-o-pre-wrap; white-space:pre-wrap; word-wrap:break-word; ">{{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. |