A template used to construct small boxes with information which users can put on their user pages.
For pre-made userboxes, please see Category:Userbox templates.
Usage
{{Userbox |left image =Wiki.png |text =This user loves the ''Fallout Wiki''. }}
All of the parameters are completely optional; however, it is recommended to use at least one of the text
or image
parameters.
Parameters
(default: "#AAAAAA")
border colorColor of the box border. Accepts standard HTML color names or RGB hex triplets.
(default: "1")
border widthWidth of the box border in pixels.
(default: none)
clearSets CSS "clear" attribute for the box. Basically, this is used to "reset" floats (see below). For example, setting this to "left" will cause the box to appear at the left margin of the page even if there are left-floating elements before it (which would normally cause the box to appear to their right).
Available options:
- left: Resets floats to the left.
- right: Resets floats to the right.
- both: Resets all floats.
- none: Resets no floats.
(default: "left")
floatCSS "float".
Available options:
- none: Text does not flow around the box.
- left: Subsequent text floats around the box on the right.
- right: Subsequent text floats around the box on the left.
(default: "52")
heightHeight of the userbox in pixels.
(default: "#C9D0AC")
left bgBackground color of the left section. Accepts standard HTML color names or RGB hex triplets.
left image, right image
Name of image to be displayed in the respective section (without "File:"). Automatically resized according to the width of the section it is in (i.e.
left width
or right width
) and height
. This means that in order to have an image appear bigger, you have to modify the width and/or height of the section it is in.
Both left image
and right image
override their corresponding text
parameter, i.e. if you specify both left image
and left text
, left text
will not be displayed.(default: "14" or "8")
left size, middle size, right sizeFont size of the respective section in points.
left text, middle text or text, right text
Text to be displayed in the respective section.
(default: "50")
left width, right widthWidth of the respective section in pixels. Keep in mind that all sections combined should not be wider than the box itself.
style
Additional styling applied to the outer element.
(default: "240")
widthWidth of the userbox in pixels.
Copy/paste
Standard colors
image - text | text - image | image - text - image |
---|---|---|
{{Userbox |left image = |text = }} |
{{Userbox |right image = |text = }} |
{{Userbox |left image = |right image = |text = }} |
(left) text - text | text - (right) text | text - text - text |
{{Userbox |left text = |text = }} |
{{Userbox |right text = |text = }} |
{{Userbox |left text = |text = |right text = }} |
Custom colors
image - text | text - image | image - text - image |
---|---|---|
{{Userbox |left bg = |left image = |middle text = }} |
{{Userbox |middle text = |right image = }} |
{{Userbox |bg = |left bg = |left image = |middle color = |middle text = |right bg = |right image = }} |
text (left) - text | text - text (right) | text - text - text |
{{Userbox |left bg = |left text = |middle text = }} |
{{Userbox |middle text = |right text = }} |
{{Userbox |left bg = |left text = |middle text = |right text = }} |
Examples
Standard
Colors and borders
|
{{Userbox |left text =? |left bg =#456 |middle text =The bottle caps are missing. |right text =? }} | |||
|
{{Userbox |border width=5px |border color=#396 |left image =Wiki.png |middle text =This user likes the ''Fallout Wiki''. |right image =Wiki.png }} |
Height and width
|
{{Userbox |height =100 |left image =Wiki.png |middle text =This user likes ''Fallout Wiki''. |right image =Wiki.png }} | |||
|
{{Userbox |left image =Wiki.png |middle text =This user likes the ''Fallout Wiki''. |width =180 }} | |||
|
{{Userbox |middle text =This user likes the ''Fallout Wiki''. |right image =Wiki.png |right width =100 }} |
Technical
- Standardized documentation for templates based on this one:
{{Userbox/doc/standard}}