FANDOM


Userboxes
Export this template, then import, to install it.
Use edit summary: Copied from [[w:c:templates:Template:Userboxes]] to properly attribute this template's editors.
This template is probably not already on your wiki.
Template documentation
Note: the template above may sometimes be partially or fully invisible.

View or edit this documentation. (How does this work?)

Editors can experiment with this template's sandbox and test case pages.

Template for collecting userboxes into a single (or multiple) column grouping easily.

Usage

{{Userboxes|boxes=
{{Time userbox|-4}}
{{Babel|en|N}}
{{user edits}}
}}

Parameters

bg
Main background color of the box. Accepts standard HTML color names or RGB hex triplets.
border color
Color of the box border. Accepts standard HTML color names or RGB hex triplets.
boxes
The userboxes which should be displayed within this template.
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.
color
Color of the text within the box. Colors set for specific userboxes override this setting. Accepts standard HTML color names or RGB hex triplets.
columns
The number of columns the userboxes should be displayed in.
extra-css
Any additional CSS you wish to apply to the box.
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.
title
The title of the template, i.e. the text which appears above the userboxes.

Example

Simple

Userboxes
Klok

This user's local time is 3:59 AM. (Purge to update.)

en-N
This user is a native speaker of English.
0 Userboxes has made 0 edits (in all namespaces) on Templates Wiki.
{{Userboxes
|boxes   =
{{Time userbox|-4}}
{{Babel|en|N|float=left}}
{{user edits}}
}}


Multiple columns

Userboxes
Klok

This user's local time is 3:59 AM. (Purge to update.)

en-N
This user is a native speaker of English.
0 Userboxes has made 0 edits (in all namespaces) on Templates Wiki.
This user absolutely loves creating and editing Templates!
{{Userboxes
|columns =2
|boxes   =
{{Time userbox|-4}}
{{Babel|en|N|float=left}}
{{user edits}}
{{User loves templates}}
}}


Altered alignment

Userboxes
Klok

This user's local time is 3:59 AM. (Purge to update.)

en-N
This user is a native speaker of English.
0 Userboxes has made 0 edits (in all namespaces) on Templates Wiki.
{{Userboxes
|float   =left
|boxes   =
{{Time userbox|-4}}
{{Babel|en|N|float=left}}
{{user edits}}
}}


Altered background & title

My userboxes
Klok

This user's local time is 3:59 AM. (Purge to update.)

en-N
This user is a native speaker of English.
0 Userboxes has made 0 edits (in all namespaces) on Templates Wiki.
{{Userboxes
|bg      =#F9F9F9
|title   =My userboxes
|boxes   =
{{Time userbox|-4}}
{{Babel|en|N|float=left}}
{{user edits}}
}}


See also

Community content is available under CC-BY-SA unless otherwise noted.