User:IJZM/Tutorials/Userboxes

This tutorial will show you how to create a custom userbox.

To do this, first we start with copying the next code, to the page you are creating the userbox (this should be a blank page):

Now, as you can see, it's pretty straightforward.

We will start by separating the userbox in 3 sections:


 * Id


 * Info


 * Border

You can see those in here:

And here is the code for this:

As you can see in the above example, we have deleted some of the parameters, when you are not going to use a parameter you should delete it.

Now, we will focus on the id section, there are 3 parameters:


 * id: Which can either be an image or text. This is the content that goes on the left side of the userbox.


 * id-c: Which must be a color, either as a word (ex: black) or in hexadecimal (ex: #000000). This determines the background color for the left side of the userbox.


 * id-fc: Which must be a color, either as a word (ex: black) or in hexadecimal (ex: #000000). This determines the color for the font on the left side of the userbox.


 * id-s: Which must be a number. This determines the size of the font that will go on the left side of the userbox.

NOTE: When using an image on the ID, we erase the id-fc and the id-s parameters.

Now... for the info, there are the same parameters, but they are called a little bit different:


 * info


 * info-c


 * info-fc


 * info-d

They are used exactly the same way you will use the Id parameters.

And finally... to the border section. This has 2 parameters:


 * border-c: Which must be a color, either as a word (ex: black) or in hexadecimal (ex: #000000). This determines the color for the outline of the userbox.


 * border-s: Which must be a number. This determines the size of the outline of the userbox.

And now.. To put the userbox in your userpage:

First of all, we need to check if the userbox is working properly, we check that by going to the Page preview mode.

Then, we save the page, and copy the name.

Finally, we go to edit the page we want to have the userbox, and in there we place the next code:

Then, we click the preview option, to check everything is working properly and we save it.

That is everything there is! I recomend using the source editor when trying to create an userbox, and clicking the preview to check if things are working the way you want to.

Have fun creating!