wp:userboxes
{{pp-protected|reason=Vandalism and no plausible reason for unregistered edits.|small=yes}}
{{Short description|Templates that editors may use for self-description}}
{{about||the WikiProject collaboration on userboxes|Wikipedia:WikiProject Userboxes}}
{{Wikipedia:Userboxes/Header}}
style="float:right; background:none;" |
{{userbox|#c8a2c8|yellow|40px|A userbox is a small rectangular box that looks like this. More examples below.}} |
{{userbox-r|green|lightgreen|40px|Userboxes can come in many different styles and colors.}} |
{{userbox-2|#66f|#ADD8E6|40px|Userboxes can have one or two sideboxes.|40px}} |
A userbox (commonly abbreviated as UBX) is a small colored box (see examples to the right) designed to appear only on a Wikipedian's user page as a communicative notice about the user, in order to directly or indirectly help Wikipedians collaborate more effectively on articles.
The first userboxes were introduced to support the Babel inter-language effort by indicating the skills of users in other languages.
Be mindful that, like anything else you add to Wikipedia, userboxes you add will likely be public forever, even if you later have your user page deleted. (Like other Wikipedia pages, your user page will be regularly archived in the database dumps and may be archived by third parties, such as the Internet Archive.)
{{infobox|image=
type=fulltext
width=25
prefix=Wikipedia:Userboxes/
searchbuttonlabel=Search for userbox topic
break=no
}}
__TOC__
Using existing userboxes
Userboxes belong on their users' pages. In some cases, it may be considered uncivil to place userboxes on other users' pages without their permission (especially in a mean-spirited way—such as accusing a user of racism, sexism, homophobia, transphobia, etc.). However, userboxes may be placed on non-mainspace talk pages by anyone. (See also Wikipedia:Talk page.)
The {{tlx|clear}} template can be placed after the plain userbox if text is added on a new line immediately after it.
A gallery of existing userboxes can be found at Wikipedia:Userboxes/Galleries.
=Syntax=
The standard syntax for adding a userbox to your user page (also known as transclusion) is:
.
If you do not have any userboxes on your user page yet, you want to begin using them, and you want to add them down the right side of your user page starting at the top, then edit your user page and, at or near the top of the source for your user page, add
, add the transclusion(s) for the userbox(es) you wish to include, and add
just after the last userbox transclusion. Please see the #Grouping_userboxes section for other ways of grouping and placing userboxes.
=Optional substitution=
You may decide to substitute the template code onto your user page using the syntax
. The use of "subst:" will ensure that the template is always displayed in its form when you add it to your user page (i.e. it will not reflect subsequent edits to the template). This method will lead to large amounts of code on your user page.
Creating a new userbox
{{shortcut|WP:CREATEUBX|WP:CREATEUSERBOX|WP:UBXCREATE|WP:USERBOXCREATE}}
:If you wish to offer an idea for a userbox, do so on the ideas page.
If you have designed a userbox that you would like to make available to others, you may wish to first display it on the New Userboxes talk page for community comment.
= {{anchor|namespace}} Namespace =
{{shortcut|WP:UBXNS}}
The namespace you place your userbox in matters. Userboxes may only be created or displayed in the User, Project (Wikipedia), or Template namespaces.
So which prefix is best for your userbox: User:
, Wikipedia:
, or Template:
?
Since content in User:
space represents individual editors more than the community, they are traditionally given more leeway than in other namespaces. Thus, userboxes in User:
space may not be as directly collaborative in nature as those in Template:
or Wikipedia:
namespaces, which are expected to adhere more tightly with certain policies and guidelines, especially Neutral point of view and What Wikipedia is not. This should also be considered before moving a userbox from userspace to any other namespace.
;User:
: To host a userbox in the user namespace, create a subpage of your own user page or User:UBX.
;Wikipedia:
: Userboxes in the project namespace are generally for WikiProject or task force usage. Simply create it as a subpage of the WikiProject (e.g. Wikipedia:WikiProject Spaceflight/Userbox
).
;Template:
: In the template namespace, userbox names must begin with "User
" (e.g. Template:User Brazil
or Template:User en
).
:{{caution sign|Please remember to add nocat = true
and wrap the category in includeonly
tags (see this example diff) when using the {{code|Template}} namespace. Otherwise, your userbox will automatically be categorized, causing inconvenience to WikiElves.}}
If you are uncertain if your userbox is in the correct namespace, consider presenting the userbox at the New Userboxes talk page for community comment.
= <span id="Caution about category use"></span><span id="Category"></span><span id="Categories"></span><span id="User category"></span><span id="User categories"></span> Userboxes and category use =
{{shortcut|WP:USERBOXCAT}}
{{main|Wikipedia:User categories}}
{{see also|Wikipedia:Overcategorization/User categories|Wikipedia:User categories#Syntax for including a user category in a userbox}}
A userbox can be coded to autocategorise any user pages which transclude the userbox into one or more user categories. However, do not use autocategorisation without good reason.
- Most userboxes refer to a single isolated characteristic of the user; unless the characteristic directly relates to the user's ability or willingness to collaborate on certain areas of or topics within Wikipedia, a user category should not exist for it and the userbox should not be used for categorisation.
- Users of the userbox can be located using the Special:WhatLinksHere tool from the userbox template. Networking between editors with similar interests or views is best done using a projectspace essay with a signup section for editors interested in networking.
- If there is a good reason for the user category, first create the category pages and include a description that explains its purpose and scope.
- User categories must be sub-categories of :Category:Wikipedians.
- Names and descriptions of user categories are subject to the same rules and restrictions as userbox content.
{{anchor|Color|Colour|color|colour|colors|colours|Colors|Colours}}
Userbox content
= Content restrictions =
{{shortcut|WP:UBCR}}
- All userboxes are governed by the civility policy.
- Userboxes must not include incivility or personal attacks.
- Userboxes must not be inflammatory or substantially divisive.
- Wikipedia is not an appropriate place for:
- Propaganda, advocacy, or recruitment of any kind (commercial, political, religious, or otherwise)
- Opinion pieces, particularly on current affairs or politics
- Self-promotion or advertising
Simply: If content is not appropriate on other parts of a user page, it is not appropriate within userboxes.
= Caution about image use =
Wikimedia Commons has a large range of icons for use within boxes. However, if you select an image from somewhere else, make certain the image has a free license. Templates (which includes userboxes and topicons) on user pages may not contain any copyrighted content not under free license; so, for example, "non-free" images are explicitly forbidden per non-free content use criterion #9 of Wikipedia's non-free content use policy. This is interpreted strictly and without exception. See Wikipedia's non-free use policy guidelines for more details.
= Caution about colours =
Please be mindful of the colour contrast guidelines at WP:COLOUR – low-contrast colours present accessibility barriers to people with colour-blindness or other visual disabilities.
{{clear}}
= Content examples =
:The following section is not to be considered all-inclusive. As such, other word combinations (both appropriate and inappropriate) are obviously possible.
Typical userbox content:
- This user <verb phrase> <noun phrase>.
- This user <verb phrase> <noun phrase> <prepositional phrase>.
Typical verbs:
- verbs of action: contributes (to), drives, eats, edits, plays, uses, watches
- verbs of comprehension: reads, speaks, understands
- verbs of preference: enjoys, likes, loves
Additional examples, using the linking verb is:
- This user is <noun phrase>.
- This user is a fan of <noun phrase>.
- This user is a member of <noun phrase>.
- This user is interested in <noun phrase>.
Another option is to allow changing the verb phrase using a template parameter. This is especially useful in location userboxes:
- This user {{(((}}1{{!}}lives in{{)))}} <location>.
To avoid the awkward third-person phrasing ("This user"), you can use "
" (without the quotes) to insert the name of the user that includes it on their page (e.g. "
" produces "{{#titleparts: {{PAGENAME}} | 1 | 1 }} uses second-person phrasing").
== Potentially divisive words ==
{{shortcut|WP:UBDIVISIVE}}
Avoid verbs (often followed by the word "that") which may be used to suggest negative comparison and would thus be potentially divisive, such as:
- believes, considers, finds, knows, prefers, thinks, wishes
Avoid negative verb phrases which can be potentially divisive, such as:
- dislikes, despises, hates, loathes
Also avoid compound sentences which are positive and negative, such as:
- This user likes <noun phrase>, but does not like <another noun phrase>.
Essentially: Express what you do like, rather than what you don't like. Express what you comprehend, rather than what you don't comprehend. Express what you do, rather than what you don't. Express who you are, rather than who you aren't.
= Design: How to construct the box =
{{anchor|Constructing a userbox|reason=Help:Userbox_Maker refers links to this title; others might also.}}
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 label") and a larger rectangular space on the right ("info area").
For ease of use, userboxes are typically made using maker-templates that have a number of parameters.
class="wikitable"
!Parameter !Applies to !Syntax and Comments on Value Types |
border-c
|Border color for the overall userbox. |CSS color string as in #hex or a CSS named color. (E.g. #f00 or red or #ff0000). |
border-s
|Border line thickness for the overall userbox. |Unit-less numerical value for border size/width, equivalent to pixels, |
id-c
| Background color for the id label area of the userbox.
|CSS color string (hex or name) |
id-s
|Text size for the id label area. |Unit-less numerical value for font-size (do not append 'px') |
id-fc
|Text color for the id label. |CSS color string (hex or name) |
id-p
|Space/padding Between the id content |This cell padding uses a CSS length value. Unlike the other unit-less values, |
id-lh
|Vertical distance between id text lines (line-height). |It is recommended to use unit-less numerical values for line-height. |
info-c
| Background color for the info area of the userbox.
|CSS color string (hex or name) |
info-s
|Text size for the info area. |Unit-less numerical value for font-size (do not append 'px'). |
info-fc
|Text color for the info area. |CSS color string (hex or name) |
info-a
| ⇦ Horizontal text alignment for info area only. ⇨
|A text string of, one of: left, right, or center. |
info-lh
|Vertical distance between info text lines (line-height). |It is recommended to use unit-less numerical values for line-height. Optionally, |
id
|Specify content for the the id label. |Free-form text (E.g. id = Co ) |
info
|Specify content for the info area. |Free-form text (E.g. info = Cobalt is Very Blue ) |
The id label and info content area can include text, links, and/or images, using the usual Wikipedia syntax. Typically, the info box will contain a sentence with a link or two, while the id box will contain a few letters, a symbol, or a 43px image.
=== Userbox types ===
class="collapsible collapsed" style="background: #99f; color: #000; width: 100%; border-spacing: 1px; padding: 2px;"
! colspan="2" style="background: #FFF;"|Types of Userboxes |
style="background: #FFF;"|Code
! style="background: #FFF;"|Appearance |
---|
colspan="2" style="background: #FFF; text-align: left; padding: 0em 1em;"|Standard box |
style="background: #FFF;"| or | style="width:243px; background: #FFF;"|{{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}} |
colspan="2" style="background: #FFF; text-align: left; padding: 0em 1em;"|Reverse box |
style="background: #FFF;"| or | style="width:243px; background: #FFF;"|{{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}} |
colspan="2" style="background: #FFF; text-align: left; padding: 0em 1em;"|Double box |
style="background: #FFF;"| or
| style="width:243px; background: #FFF;"|{{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}} |
colspan="2" style="background: #FFF; text-align: left; padding: 0em 1em;"|Mini box |
style="background: #FFF;"| or | style="width:243px; background: #FFF;"|{{Userbox-m |border-c=#000 |border-s=1 |id-c=#FFF |id-s=12 |id-fc=#000 |id=ID}} |
=== Userbox sampling templates ===
{{update|{{tlx|Userbox sample compact}}|inaccurate=yes}}
To make it easier to quote the generation code for a userbox in a uniform format, a template {{tl|Userbox sample compact}} has been made available, which produces a picture of the userbox along with the code necessary to create it. To use it, just give it exactly the same parameters you would give the {{tl|Userbox}} template. You must use subst:, or the template will not work properly. An example is shown below:
:
Produces:
style="padding: 2px; border-spacing: 0px;" border="1" |
style="width: 350px; text-align: left; font-size: 8pt; font-family: Arial; " | {{Userbox | border-c = #999 | border-s = 1 | id-c = red | id-s = 14 | id-fc = black | info-c = #EEE | info-s = 8 | info-fc = black | id = {{#switch:UBX
|{{{logo}}} = |{{{3}}} = |UBX = |id}} | info = {{#switch:This is a Userbox. |This is a Userbox. = |{{{4}}} = | | {| style="width: 238px; background: #EEE;" | style="width: 45px; height: 45px; background: red; text-align: center; font-size: 14pt; color: #000;" | UBX | style="font-size: 8pt; padding: 4pt; line-height: 1.25em; color: #000;" | This is a Userbox. |
|}
There are not yet any similar templates available for userboxes created by the templates Userbox-r, Userbox-2 and Userbox-m.