Fallout Wiki
Advertisement
Fallout Wiki


Template documentation (for the template shown above, sometimes hidden or invisible)

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

Neutral
(default: "#AAAAAA")
border color
Color of the box border. Accepts standard HTML color names or RGB hex triplets.
Neutral
(default: "1")
border width
Width of the box border in pixels.
Neutral
(default: none)
clear
Sets 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.
Neutral
(default: "left")
float
CSS "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.
Neutral
(default: "52")
height
Height of the userbox in pixels.
Neutral
(default: "#C9D0AC")
left bg
Background color of the left section. Accepts standard HTML color names or RGB hex triplets.
Neutral
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.
Neutral
(default: "14" or "8")
left size, middle size, right size
Font size of the respective section in points.
Neutral
left text, middle text or text, right text
Text to be displayed in the respective section.
Neutral
(default: "50")
left width, right width
Width of the respective section in pixels. Keep in mind that all sections combined should not be wider than the box itself.
Neutral
style
Additional styling applied to the outer element.
Neutral
(default: "240")
width
Width 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

WikiThis user likes Fallout Wiki.Wiki
{{Userbox
|left image  =Wiki.png
|middle text =This user likes ''Fallout Wiki''.
|right image =Wiki.png
}}
WikiThis user likes Fallout Wiki.
{{Userbox
|left image  =Wiki.png
|middle text =This user likes ''Fallout Wiki''.
}}
?What happened to the bottle cap?
{{Userbox
|left text   =?
|middle text =What happened to the bottle cap?
|right text  =
}}
This user likes Fallout Wiki.Wiki
{{Userbox
|middle text =This user likes ''Fallout Wiki''.
|right image =Wiki.png
}}
This user likes Fallout Wiki.
{{Userbox
|middle text =This user likes ''Fallout Wiki''.
}}

Colors and borders

?The bottle caps are missing.?
{{Userbox
|left text   =?
|left bg     =#456
|middle text =The bottle caps are missing.
|right text  =?
}}
WikiThis user likes the Fallout Wiki.Wiki
{{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

WikiThis user likes the Fallout Wiki.Wiki
{{Userbox
|height      =100
|left image  =Wiki.png
|middle text =This user likes ''Fallout Wiki''.
|right image =Wiki.png
}}
WikiThis user likes the Fallout Wiki.
{{Userbox
|left image  =Wiki.png
|middle text =This user likes the ''Fallout Wiki''.
|width       =180
}}
This user likes the Fallout Wiki.Wiki
{{Userbox
|middle text =This user likes the ''Fallout Wiki''.
|right image =Wiki.png
|right width =100
}}

Technical

See also

Documentation transcluded from Template:Userbox/doc.
Advertisement