Misplaced Pages

:Userboxes: Difference between revisions - Misplaced Pages

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 20:53, 19 April 2006 view sourceObjectivist-C (talk | contribs)634 edits Reverting, do it again and I'll be reporting.← Previous edit Revision as of 22:33, 19 April 2006 view source Pnatt (talk | contribs)993 editsm the use of these pages is strongly discouraged by Jimbo and should be left removed for the greater good of Misplaced PagesNext edit →
Line 42: Line 42:


=== Politics and Beliefs === === Politics and Beliefs ===
*''], for ethical and political beliefs and ideologies.''
*''], for political party userboxes.''
*''], for religious and spiritual views.'' *''], for religious and spiritual views.''
*''], for local and regional political views.'' *''], for local and regional political views.''

Revision as of 22:33, 19 April 2006

Template:WM UB

Shortcut
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 that allows users to add small messages on their user pages. 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.

The primary purpose of user boxes and user categories should be to alert other Wikipedians to ways you might aid them in editing. For instance, if you speak a second language or have professional expertise in a technical field, other users will know they can contact you for assistance. User boxes that are designed to provoke, offend, or reflect a POV rather than show expertise are generally discouraged. Jimbo Wales wrote on the matter:

Userboxes of a political or, more broadly, polemical, nature are bad for the project. They are attractive to the wrong kinds of people, and they give visitors the wrong idea of what it means to be a Wikipedian.

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

Note: Many userboxes may be deleted or moved in the near future. This could result in many user pages with broken template references. If you are particularly attached to your userboxes, you may want to use subst.

Straw Poll

The straw poll at Misplaced Pages:Userbox policy poll has closed; no consensus was reached.

Existing Userboxes

See also: Category:Misplaced Pages userboxes

Languages

Life, Status and Situation

Politics and Beliefs

Interests and Tastes

Misplaced Pages-related

Other userboxes

Usage

Users

  • If you choose to put an image in a userbox, make sure the image license is free. Misplaced Pages policy does not allow templates or user pages to have copyrighted works on them. See Misplaced Pages's fair use policy guidelines for more details.
  • All items in template and user space are governed by the civility policy.

Editors

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
{{subst: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 {{subst:Userbox|side-box colour|main box colour|side-box content|main box content}}

IDinfo box content
Reverse box
{{subst: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 {{subst:Userbox-r|side-box colour|main box colour|side-box content|main box content}}

info box contentID
Double box
{{subst: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 {{subst: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
{{subst:Userbox-m
  |border-c = #000
  |border-s = 1
  |id-c     = #fff
  |id-s     = 12
  |id-fc    = #000
  |id       = ID
}}

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

ID

Grouping userboxes

Example 1
This user is an administrator on the English Misplaced Pages. (verify)
This user is a participant in WikiProject Userboxes.
This user is using a web browser.

Template:User Rome

+This user likes getting friendly notices.

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

{{Userboxtop|Example 1}}
{{User admin|]}}
{{User WP:UB}}
{{User browser}}
{{User Rome}}
{{User friendly}}
{{Userboxbottom}}

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 box on the right, but positioned on the left side of the page, by changing the the first line from {{Userboxtop|Example 1}} to {{Userboxtop|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 the
"User" prefix, which must then be dropped for the arguments. Also, boxes that need arguments of their own cannot be used with Babel,
e.g. {{User wikipedia|administrator}}.)

See also


WikiProject Userboxes
Misplaced Pages
Interests
Languages
Life
Location
Mass media
The arts
TV shows
Time
Other
How to
New
Categories: