Jump to content

Wikipedia:Userboxes

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Bourbons3 (talk | contribs) at 21:18, 13 January 2006 (Interests: added "and newspapers" to media). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

A userbox is a small box that looks like this.
Userboxes can come in many different styles.
Boxes can have one or two sideboxes.File:Crystal ark.png

A userbox is a small coloured box which allow users to add small messages on their user page. It is an extension of the babel boxes used for users' language abilities. The Wikimedia Commons has a large range of icons for use within boxes.

Common uses for boxes include user interests, user skills, technical information, Wikipedia activities, or just for fun. There are four types of userbox templates. A gallery of example boxes is shown below.

You can either create your own userbox using the four templates below, or use the existing userboxes templates.

If you want to create a new template, you should first read How to make a Userbox, below.

Existing Userboxes

Languages

Places

Interests

Beliefs, Orientations and Preferences

Wikipedia Users

Other userboxes

Note to Editors

  • If a userbox does not belong in a category, please note its removal in your edit summary, and re-add the box to its appropiate category.
  • Issues concerning point of view and political correctness in userboxes have yet been resolved, so do not use this as criteria for deletion.
  • If there is a userbox that does not belong here, please list it on Wikipedia:Templates_for_deletion. Do not orphan or speedy delete these boxes until a consensus has been reached. To do so will only cause more controversy.

How to make a Userbox

Before making a userbox

  • Check to make sure the userbox you want to make does not already exist by going through the categories listed above.
  • If you wish to put your userbox in a template (and list it here), evaluate whether there is a need for your userbox.

Naming the userbox

  • All userbox templates should be named using the prefix User.
  • When naming a template, strive not to make the name too ambiguous. Names such as {{User code}} could mean anything. {{User Lost(TV Series)}} would be more fitting.

A note on substitution

  • The subst: prefix must be used to transform template code to wiki markup if you are saving the userbox to a template, i.e. {{subst:userbox|...}}. See avoid using meta templates.
  • This can also be done on your userpage at your discretion.

Content

  • Userboxes are distributed user page content, and as such, are to follow Wikipedia's guidelines concerning user pages.
  • If you choose to put an image in a userbox, make sure the image license is free. Wikipedia policy does not allow templates or user pages to have copyrighted works on them. The use of copyrighted work as fair use is not allowed on templates. See Wikipedia's Fair use policy guidlines for more details.
  • All items in template space are governed by the civility policy.

Designing the userbox

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. See #A note on substitution above.

Template Parameters Meaning Value type
border-c The border color of the userbox CSS color value (#hex or color name)
border-s The border size of the userbox Width in pixels
id-c The background color of the id box CSS color value
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
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
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     = info box content
}}

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

IDinfo box 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     = info box content
}}

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

info box contentID
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     = info box 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 1info box contentID 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

Grouping userboxes

As with the Babel box, there is a box to group userboxes together. Just make a list of userboxes with {{Boxboxtop|box-name}} at the top and {{Boxboxbottom}} at the bottom. For example, the box to the right is created using the following list:

{{Boxboxtop|Example 1}}
{{User wikipedia|administrator}}
{{User wikipedia|welcoming committee}}
{{User browser}}
{{User Rome}}
{{User friendly}}
{{Boxboxbottom}}

You may also change the alignment by using 'right' or 'left' as the 2nd parameter, or explicitly using parameter align. Thus, it is possible to create the same boxbox on the right, but positioned on the left side of the page, by changing the the first line from {{Boxboxtop|Example 1}} to {{Boxboxtop|Example 1|left}}.

The actual Babel grouping system can also be used, e.g. {{Babel-4|sv|no-4|browser|rome}}. However, it only works for user boxes with a "User "-prefix, which must then be dropped for the arguments. Also, boxes that need arguments of their own can not be used with Babel, e.g. {{User wikipedia|administrator}}.)

See also