Wikia Templates


Template page

1,184pages on
this wiki

Template documentation (for the above template, sometimes partially or fully invisible) [view] [edit] [history] [refresh]
This template is not on the Starter Pages Wikia. It can be copied to other Wikia sites, but it is not included on any by default.
This template is used to create user boxes.
Description Left Inset Main Box Right Inset
Content Content wiki code lcontent= content= rcontent=
Background color lbg= mainbg= rbg=
Text color color lcolor= color= rcolor=
Width with units lwidth= width=
(with insets)
Font size with units lsize= size= rsize=
  • Italic parameters above default to sane values and should generally not be touched.
  • Sane defaults are provided for everything, only content has to be specified to display an infobox.
  • |bcolor= and |bwidth= specify the box border color and width respectively (both with units).

Type {{userbox|p1|p2|p3|etc}} on user page.
The box is formatted with the help of MediaWiki:Wikia.css (see below) - allowing the template to be used both with and without additional formatting information.
The box consists of three parts - left and right inserts as well as the main (text) cell; the cells are rendered if the relevant content parameters are provided.
The available parameters are listed in the box to the right.

CSS code (add to MediaWiki:Wikia.css)
/* === USERBOXES  === */
table.userbox { float:left; margin:0.2em; padding:0; border-width:1px; border-style:solid; }
table.userbox td.left, table.userbox td.right { text-align:center; vertical-align:middle; font-size:1.6em; padding:0; }
table.userbox td.main { padding:0 4px; vertical-align:middle; line-height:125%; font-size:0.9em; }

table.userbox { border-color:#aaa; background:#f8f8f8; }
table.userbox td.left, table.userbox td.right { background:#d8d8d8; }

Sample output
{{userbox}} gives...

{{userbox|rcontent=R|content=Box with one inset and no provided styling.}} gives...
Box with one inset and no provided styling. R

{{userbox|lcontent=L|rcontent=R|content=Box with both insets and no provided styling.}} gives...
L Box with both insets and no provided styling. R

{{userbox|rcontent=[[File:Red Prompt button up-1-.svg]]|content=Box with one inset with a photo and no provided styling.}} gives...
Box with one inset with a photo and no provided styling. Red Prompt button up-1-

{{userbox|rcontent=BLU|content=Right inset, custom colors|mainbg=steelblue|rbg=lightsteelblue|rcolor=midnightblue|rsize=2em|color=#BBDDFF|bcolor=skyblue}} gives...
Right inset, custom colors BLU

See also
Template:User edits on Wikia Template, a userbox using this template.
Template:Userbox on WoWWiki, upon which this template was based.

The above text is transcluded from Template:Userbox/doc; you can change it or view its history. (How does this work?)
If you're done making changes, please refresh the text. (Why?)
You can experiment in this template's sandbox (create | mirror ) and testcases (create) pages.
Please add categories and interwikis to Template:Userbox/doc. (View all subpages of this page.)

Around Wikia's network

Random Wiki