Help:Userboxes


Userboxes are a series of small information boxes on a user's page that describe that user in a few words. Userboxes are made beforehand as templates, which can then be used in any user's list of userboxes.

Showing Userboxes

Sample Userboxes
This user thinks GTA is the best series of games ever
This user thinks GTA IV is the best GTA game
This user thinks GTA San Andreas is the best GTA game
This user thinks GTA Vice City is the best GTA game
This user thinks GTA Vice City Stories is the best GTA
This user is proud to be British
This user is proud to be American
This user is proud to be Australian
This user is proud to be Japanese
This user is proud to be Italian

To show a list of userboxes on your own page, you need three elements - the top of the table, the userboxes themselves and the bottom of the table. These elements MUST be on separate lines.

{{userboxtop}} starts off the table, and you can change the title by adding a vertical line, eg {{userboxtop|My Games}}. This could be a link, such as {{userboxtop|My [[Grand Theft Wiki:userboxes|Userboxes]]}}

For the actual userboxes, simply include the template link to them, eg {{userbox:GTA}} or {{Userbox:GTAVC}}. Remember that Capital letters matter (except at the very beginning).

To end the table, simply add {{userboxbottom}} on a new line.

The userboxes on the right are as follows:

{{userboxtop|Sample Userboxes}}

{{userbox:GTA}}
{{userbox:GTAIV}}
{{userbox:GTASA}}
{{userbox:GTAVC}}
{{userbox:GTAVCS}}
{{userbox:UK}}
{{userbox:USA}}
{{userbox:AUS}}
{{userbox:Japan}}
{{userbox:Italy}}

{{userboxbottom}}
See Category:Userboxes for a full list of available userboxes.

Creating Userboxes

There are two methods to creating userboxes. You can either make a box yourself using a DIV and a TABLE, or you can use the pre-made userbox syntax. You should create your userbox at Template:Userbox:Name - this means your box can be included by a user simply using {{userbox:Name}}.

For both methods, do not forget to put your userbox in Category:Userboxes. Use the following code:

<noinclude>[[Category:Userboxes]]</noinclude>

Userbox Syntax

For ease of use, userboxes are made using maker-templates that have a number of parameters. Once the maker-template is saved, it is automatically transformed to HTML.

Template Parameters Meaning Value type
border-c The border colour of the userbox. CSS colour value (#hex or colour name)
border-s The border size of the userbox. Width in pixels
id-c The background colour of the id box. CSS colour value
id-s The font size of the id box. Size in PostScript points
id-fc The font colour of the id box text. CSS colour value
id-p The distance between border and content of id box. CSS padding width value. px, pt
id-lh The distance between text lines of id box. CSS relative line height/length value. em
info-c The background colour of info box. CSS colour value
info-s The font size of info box. Size in PostScript points
info-fc The font colour of info box. CSS colour value
info-p The distance between border and content of info box. CSS padding width value. px, pt
info-lh The distance between text lines of info box. CSS relative line height/length value. em
id This is the content of the id box. Text
info This is the content of info box. Text

For example:

{{Userbox |border-c=#000 |border-s=1 |id-c=#fff |id-s=12 |id-fc=#000 |info-c=#039 |info-s=8 |info-fc=#fff |id=ID |info=Content}}

Produces:

ID Content



Manual Userboxes

<div style="float: left; border:solid pink 1px; margin: 1px;">
{| cellspacing="0" style="width: 238px; background: #FFF;"
| style="width: 55px; height: 45px; background: #FF7799; text-align: center; font-size: {{{5|{{{id-s|13}}}}}}pt; color: {{{id-fc|white}}};" | '''VC'''
| style="font-size: 8pt; padding: 4pt; line-height: 1.25em; color: #E57;" | This user thinks [[Grand Theft Auto: Vice City|Vice City]] is the best GTA game
|}</div><noinclude>
[[Category:Userboxes]]
</noinclude>

External Link