Help:Userbox

This page explains what a userbox is and how to use, alter and create one.

What is a Userbox?
A userbox is a box that describes you, a user. It can represent a multitude of things:
 * Favorite game
 * Favorite series
 * Favorite characters
 * Favorite consoles
 * Stuff about you on and or off the wiki

Many userboxes make up a Userbox Tower, a bunch of organized userboxes lined up vertically. There are quite a few available already at Userbox, but to really express yourself, you may wish to make your own.

Contents of a Userbox



 * 1) The border color sets what it says.
 * 2) Mainbkgd stands for main background, where the message (6) text is set at.
 * 3) Codebkgd likewise stands for the code background, where the left-handed box text or image is set at.
 * 4) Codecolor changes the text color in the left-hand box. If an image is used instead, this still has to be filled in, but it will be ineffective.
 * 5) Code is what is filled in the left-hand box, either text or an image. An image should not be more than 40 X 40 pixels (see below).
 * 6) Msg, likewise, is what is filled in on the right-hand side. Wiki code can be used.

The four six-alphanumeric codes above are hex decimal colors. The maincolor is automatically black, but can be changed using  tags.

Code of a Userbox
Note: Please know what a hex color is before reading this section.

The code of the vg-5 userbox above is

 . As revealed by the two squiggly brackets, the code is a template. There is also a top and a bottom template to add inbetween the userboxes, completing the Userbox Tower. The code of these templates, one at a time:

Userboxtop
 {| name="userboxes" id="userboxes" style="float: right; margin-left: 1em; margin-bottom: 1ex; width: 242px; border: 1px solid #99B3FF; clear: right"
 * style="text-align: center" | Userbox Tower
 * 
 * 
 * 

This part opens up a table, aligned to the right, with the header "Userbox Tower" (linking to the Userbox page). It sets up the main code...

Userbox
 |- 
 * 

If you've been reading this tutorial, the words inbetween the three squiggly brackets (not two), you should be understanding how it works now. Those six IDs are variables that can be changed for each userbox, by specificing ID=_____ each time, inbetween |s. The hex colors require a # before the six characters. There can be as many userboxes as you want, and they will be "stacked" on top of one another in the right-hand table going down, hence where the name Userbox Tower came from. Each userbox is an individual table inside of a whole tower table.

Userboxbottom
|}

Yes, you're reading everything right. Though you can just as easily type |}</tt>, using denotes the end of the userbox on your user page, making it easier to navigate when editing. The sole purpose of the code itself is to close the Tower table from.

Advanced Techniques
There are a few steps beyond the normal style to make your userboxes look unique:


 * 1) Make the border and codebkgd colors the same. This makes the border look like it's coming out of the left side for a cool effect.
 * 2) In the code (left-hand) text, images are allowed. Be sure that they are only 40 X 40 max in pixels, or resize it in the code.  code=[[Image:formyuserbox.png|40px]] </tt>
 * 3) Change the color of text (default black) by using  TEXT </tt>. Other span changes include:
 * 4) text-decoration: underline</tt>, or line-through</tt> for a strikeout effect