Help:Userboxes

From WikiLou
Jump to: navigation, search
Crystal kthememgr.png A userbox is a small box that looks like this.


Userboxes can come in many different styles and colors. Crystal package.png
Crystal package favorite.png Userboxes can have one or two sideboxes. Crystal ark.png

Userboxes (commonly abbreviated as UBX) are small colored boxes designed to appear on user pages. They generally include one or two small graphics and a few short lines of text. Often they also include wiki markup that places the user in a category. Userboxes are generally created as templates and put onto userpages. Userboxes should not be used in articles.

The first Userboxes were designed on Wikipedia to support the Babel inter-language effort; these were designed to show skills in other languages.

Using Existing Userboxes

Userboxes are for the use of users on their own user pages. It may be considered uncivil to place any userboxes on any other user's page(s) without their permission. However, userboxes may be placed on talk/discussion pages by anyone.

Syntax

The standard syntax for adding a userbox to your user page is: {{user nameofbox}}.

Creating a New Userbox

Userbox names must begin with "User " (for example, Template:User Someuserboxname).

If you wish to offer an idea for a userbox, please do so on the ideas page.

If you have designed a userbox that you would like to make available to others, you can post it in the gallery below.

As an alternative, you may wish to consider having it as a sub-page of your userpage and making it available through Category:Userboxes, using the following syntax:

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

How to Construct the Box

There are a number of box types to select from when deciding to make a userbox. The most commonly used design is the "Standard box". It has one square shaped area on the left ("id") and a rectangular area on the right ("info").

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 color of the userbox. CSS color value (#hex or color name)
bord
id-s The font size of the id box. Size in PostScript points
id-fc The font color of the id box text. CSS color 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 color of info box. CSS color value
info-s The font size of info box. Size in PostScript points
info-fc The font color of info box. CSS color 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

Userbox Types

Code Appearance
Standard box
{{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}}

or {{Userbox |side-box color |main box color |side-box content |main box content}}

ID Content


Reverse box
{{Userbox-r |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}}

or {{Userbox-r |side-box color |main box color |side-box content |main box content}}

Content ID
Double box
{{Userbox-2 |border-c=#000 |border-s=1 |id1-c=#fff |id1-s=12 |id1-fc=#000 |id2-c=#000 |id2-s=12 |id2-fc=#fff |info-c=#039 |info-s=8 |info-fc=#fff |id1=ID 1 |id2=ID 2 |info=Content}}

or {{Userbox-2 |side-box 1 color |main box color |side-box 1 content |message |side-box 2 content |border color |side-box 2 color |main box font-color |box border thickness}}
Note: If omitted, border color and side-box 2 color default to the same color as side-box 1, and font color is black. Default border thickness is 1.

ID 1 Content ID 2
Mini box
{{Userbox-m |border-c=#000 |border-s=1 |id-c=#fff |id-s=12 |id-fc=#000 |id=ID}}

or {{Userbox-m |box color |box content}}

ID


Gallery

BHS This user went to Brentwood.
Go Eagles!
CHS This user went to Clayton.
Go Greyhounds!
CBC This user went to CBC.
Go Cadets!
LHWHS This user went to Ladue.
Go Rams!
SLUH This user went to SLUH.
Go Jr. Billikens!
PWH This user went to Parkway West
Go Longhorns!
PNH This user went to Parkway North.
Go Vikings!
PSH This user went to Parkway South
Go Patriots!
PCH This user went to Parkway Central
Go Colts!
WGHS This user went to Webster Groves
Go Statesmen!



See Also