Revision as of 19:45, 19 April 2006 view sourceNongBot~enwiki (talk | contribs)2,012 editsm robot Adding: an, th Modifying: ca← Previous edit | Latest revision as of 04:19, 18 December 2024 view source Marchjuly (talk | contribs)Autopatrolled, Extended confirmed users111,606 edits →Caution about image use: Boldly updating per Misplaced Pages talk:Userboxes#Update wording of "Cautions about image use" | ||
Line 1: | Line 1: | ||
{{pp-protected|reason=] and no plausible reason for unregistered edits.|small=yes}} | |||
{{WM UB}} | |||
{{Short description|Templates that editors may use for self-description}} | |||
{{shortcut|WP:BOX}} | |||
{{about||the WikiProject collaboration on userboxes|Misplaced Pages:WikiProject Userboxes}} | |||
<div style="float:right"> | |||
{{Misplaced Pages:Userboxes/Header}} | |||
{| | |||
{| style="float:right; background:none;" | |||
|{{userbox|orange|yellow|]|A userbox is a small box that looks like this.}} | |||
|- | |- | ||
|{{userbox |
| {{userbox|#c8a2c8|yellow|]|A userbox is a small rectangular box that looks like this. More examples below.}} | ||
|- | |- | ||
|{{userbox- |
| {{userbox-r|green|lightgreen|]|Userboxes can come in many different styles and colors.}} | ||
|- | |||
| {{userbox-2|#66f|#ADD8E6|]|Userboxes can have one or two sideboxes.|]}} | |||
|} | |} | ||
</div> | |||
A '''userbox''' (commonly abbreviated as '''UBX''') is a small colored box (see examples to the right) designed to appear only on a Wikipedian's ] as a communicative notice about the user, in order to directly or indirectly help Wikipedians collaborate more effectively on articles. | |||
A '''userbox''' is a small coloured box that allows users to add small messages on their user pages. It is an extension of the ] boxes used for users' language abilities. The Wikimedia Commons has a ] for use within boxes. | |||
The first userboxes were introduced to support the ] inter-language effort by indicating the skills of users in other languages. | |||
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. ] ]: | |||
<blockquote>''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.''</blockquote> | |||
Be mindful that, like anything else you add to Misplaced Pages, userboxes you add will likely be public forever, even if you later have your user page deleted. (Like other Misplaced Pages pages, your user page will be regularly archived in the database dumps and may be archived by third parties, such as the ].) | |||
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. | |||
{{infobox|image=<inputbox> | |||
type=fulltext | |||
width=25 | |||
prefix=Misplaced Pages:Userboxes/ | |||
searchbuttonlabel=Search for userbox topic | |||
break=no | |||
</inputbox>}} | |||
__TOC__ | |||
==Using existing userboxes== | |||
'''Note:''' Many userboxes ''may'' be deleted or moved in the near future. This could result in many user pages with broken ] references. If you are particularly attached to your userboxes, you may want to use ]. | |||
Userboxes belong on their users' pages. In some cases, it may be considered ] to place userboxes on other users' pages without their permission (''especially'' in a mean-spirited way—such as accusing a user of ], ], ], ], etc.). However, userboxes may be placed on non-] talk pages by anyone. (See also ].) | |||
The {{tlx|clear}} template can be placed after the plain userbox if text is added on a new line immediately after it. | |||
==Straw Poll== | |||
The straw poll at ] has closed; no consensus was reached. | |||
A gallery of existing userboxes can be found at ]. | |||
== Existing Userboxes == | |||
{{seealso|:Category:Misplaced Pages userboxes}} | |||
=== |
===Syntax=== | ||
The standard syntax for adding a userbox to your user page (also known as ]) is: <code><nowiki>{{user </nowiki>''name_of_box''<nowiki>}}</nowiki></code>. | |||
*''], for multilingual communication.'' | |||
*''], for preferences on grammatical and dialect-related controversies.'' | |||
*''], for non-ISO languages.'' | |||
*''], for programming languages.'' | |||
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 <code><nowiki>{{Userboxtop |}}</nowiki></code>, add the transclusion(s) for the userbox(es) you wish to include, and add <code><nowiki>{{userboxbottom}}</nowiki></code> just after the last userbox transclusion. Please see the ] section for other ways of grouping and placing userboxes. | |||
=== Life, Status and Situation=== | |||
*''], for educational qualifications, schools, colleges and universities, by region'' | |||
*''], for physical and mental health.'' | |||
*''], for age, ancestry, family and profession.'' | |||
*''], for country and state of origin, and regional organizations.'' | |||
*''], for personalities according to "personality type" systems/tests.'' | |||
*''], for time zone and other temporal userboxes.'' | |||
*''], for zodiac symbol userboxes.'' | |||
===Optional substitution=== | |||
=== Politics and Beliefs === | |||
You may decide to ] the template code onto your user page using the syntax <code><nowiki>{{subst:</nowiki>user ''name_of_box''<nowiki>}}</nowiki></code>. 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. | |||
*''], for religious and spiritual views.'' | |||
*''], for sexual orientation, gender, status and sexual issues.'' | |||
==Creating a new userbox== | |||
=== Interests and Tastes === | |||
{{shortcut|WP:CREATEUBX|WP:CREATEUSERBOX|WP:UBXCREATE|WP:USERBOXCREATE}} | |||
:''If you wish to offer an idea for a userbox, do so on the ].'' | |||
If you have designed a userbox that you would like to make available to others, you may wish to first display it on the ] for community comment. | |||
*''], for automotive interests.'' | |||
*''], for favorite books and graphic novels.'' | |||
*''], for favourite colours.'' | |||
*''], for computing, such as blogs, websites, browsers and hardware.'' | |||
*''], for favorite foods, beverages, and eating habits.'' | |||
*''], for favorite board, card, and video games. | |||
*''], for universal human interests and hobbies.'' | |||
*''], for statistics, measurement systems, and other areas in mathematics.'' | |||
*''], for favorite radio, television, movies and newspapers.'' | |||
*''], for musical taste and interests.'' | |||
*''], for pets.'' | |||
*''], for favorite sports.'' | |||
=== |
=== {{anchor|namespace}} Namespace === | ||
{{shortcut|WP:UBXNS}}<!-- make sure shortcut still links here if renaming the section --> | |||
*''], for user category, association, editing philosophy and preferences.'' | |||
{{See also|Misplaced Pages:Userbox migration}} | |||
*''], for userboxes related to WikiProjects.'' | |||
The ] you place your userbox in matters. Userboxes may ''only'' be created or displayed in the ], ] (Misplaced Pages), or ] namespaces. | |||
*''], for userboxes about userboxes and userbox policy.'' | |||
So which prefix is best for your userbox: <code>User:</code>, <code>Misplaced Pages:</code>, or <code>Template:</code>? | |||
=== Other userboxes === | |||
*''], for userboxes related to the automotive industry.'' | |||
*''], for userboxes representing a current mood.'' | |||
*''], for humorous or silly userboxes that don't fit elsewhere.'' | |||
*''], for seasonal userboxes.'' | |||
Since content in <code>User:</code>space represents individual editors more than the community, they are traditionally given more leeway than in other namespaces. Thus, userboxes in <code>User:</code>space may not be as directly collaborative in nature as those in <code>Template:</code>or <code>Misplaced Pages:</code>namespaces, which are expected to adhere more tightly with certain ], especially ] and ]. This should also be considered before ] a userbox from userspace to any other namespace. | |||
== 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 ] for more details. | |||
* All items in template and user space are governed by the ] policy. | |||
;<code>User:</code>: To host a userbox in the user namespace, create a ] of your own user page or ]. | |||
===Editors=== | |||
;<code>Misplaced Pages:</code>: Userboxes in the project namespace are generally for ] or ] usage. Simply create it as a ] of the WikiProject (e.g. <code>]</code>). | |||
*Userboxes are '''not''' encyclopedic content; they are not to be used in articles. | |||
;<code>Template:</code>: In the template namespace, userbox names must begin with "<code>User </code>" (e.g. <code>]</code> or <code>]</code>). | |||
*Userboxes are intended to make statements about a user's skills, attributes, views and affiliations on user pages, but they are public resources residing in user space. | |||
:{{caution sign|Please remember to add <code>nocat = true</code> and wrap the category in <code>includeonly</code> ] (see ]) when using the {{code|Template}} namespace. Otherwise, your userbox will automatically be categorized, causing inconvenience to ].}} | |||
*Userboxes '''must not''' include ] and ]. | |||
*], and userboxes created or used for this purpose may be deleted. | |||
If you are uncertain if your userbox is in the correct namespace, consider presenting the userbox at the ] for community comment. | |||
== 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''"). | |||
=== <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 === | |||
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 ]. See ] above. | |||
{{shortcut|WP:USERBOXCAT}} | |||
{{main|Misplaced Pages:User categories}} | |||
{{see also|Misplaced Pages:Overcategorization/User categories|Misplaced Pages:User categories#Syntax for including a user category in a userbox}} | |||
A userbox can be coded to autocategorise any user pages which ] the userbox into one or more ]. 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 ], 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 ] tool from the userbox template. Networking between editors with similar interests or views is best done using a ] 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 ] of ]. | |||
* Names and descriptions of user categories are subject to the same rules and restrictions as ]. | |||
{{anchor|Color|Colour|color|colour|colors|colours|Colors|Colours}} | |||
== Userbox content == | |||
=== Content restrictions === | |||
{{shortcut|WP:UBCR}} | |||
*All userboxes are governed by the ] policy. | |||
**Userboxes '''must not''' include ] or ]. | |||
**Userboxes '''must not''' be inflammatory or substantially divisive. | |||
*] 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 ], it is not appropriate within userboxes. | |||
=== Caution about image use === | |||
Wikimedia Commons has a ] 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, "]" images are explicitly forbidden per ] of ]. This is interpreted strictly and without exception. See ] for more details. | |||
=== Caution about colours === | |||
Please be mindful of the ] guidelines at ] – 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 <]> <]>. | |||
* This user <]> <]> <]>. | |||
Typical ]s: | |||
* 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 ] verb ]: | |||
* 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 ]. 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 "<code><nowiki>{{</nowiki>#titleparts: <nowiki>{{</nowiki>PAGENAME}} | 1 | 1 }}</code>" (without the quotes) to insert the name of the user that includes it on their page (e.g. "<code><nowiki>{{</nowiki>#titleparts: <nowiki>{{</nowiki>PAGENAME}} | 1 | 1 }} uses second-person phrasing</code>" produces "{{#titleparts: {{PAGENAME}} | 1 | 1 }} uses second-person phrasing"). | |||
==== Potentially divisive words ==== | |||
{{shortcut|WP:UBDIVISIVE}} | |||
Avoid verbs (often followed by the word "]") 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" | {| class="wikitable" | ||
!Parameter | |||
!Template Parameters | |||
!Applies to | |||
!Meaning | |||
!Syntax and Comments on Value Types | |||
!Value type | |||
|- | |- | ||
|border-c | |border-c | ||
|<span style="border: |
|<span style="border:1.5px solid #d00; text-align:center; padding:2px 2px 2px 4px; margin:3px 1px 8px 16px;">Border '''color''' for the overall userbox.</span> | ||
|] |
|] as in ] or a CSS named color. (E.g. '''#f00''' or '''red''' or '''#ff0000'''). | ||
|- | |- | ||
|border-s | |border-s | ||
|<span style="border: |
|<span style="border:6px solid #3c8;text-align:center; padding:2px 1px 2px 2px; margin: 6px 1px 12px 1px;">Border '''line thickness''' for the overall userbox.</span> | ||
|Unit-less numerical value for border size/width, ''equivalent'' to pixels, <br>but do not append 'px' to the number. E.g. '''border-s = 3''' . | |||
|Width in pixels | |||
|- | |- | ||
|id-c | |id-c | ||
|< |
|<div style="background:#a94; color:#fff; margin: -3px -6px; padding: 3px 6px">Background '''color''' for the '''id''' label area of the userbox.</div> | ||
|CSS color |
|CSS color string (hex or name) | ||
|- | |- | ||
|id-s | |id-s | ||
| |
|Text <span style="font-size:135%">'''size'''</span> for the '''id''' label area. | ||
|Unit-less numerical value for font-size ''(do not append 'px')'' | |||
|Size in ] | |||
|- | |- | ||
|id-fc | |id-fc | ||
| |
|Text <span style="color:#390; font-size:108%;">'''color'''</span> for the '''id''' label. | ||
|CSS color |
|CSS color string (hex or name) | ||
|- | |||
|id-p | |||
|<span style="background:#eefff6; float:left; border:3px solid #62d; border-radius:6px; text-align: center; margin: 4px 8px 4px 4px; padding: 8px 14px 9px;">'''Space/padding'''</span> Between the '''id''' content <br>and the userbox border. | |||
|This cell padding uses a CSS length value. Unlike the other unit-less values, <br>this '''''must''''' have a '''CSS length unit''' such as ] or ]. (E.g. '''id-p = 8px''' ). | |||
|- | |||
|id-lh | |||
|Vertical distance between '''id''' text lines (line-height). | |||
|It is recommended to use unit-less numerical values for line-height. <br>Optionally, CSS length units ''can'' be used for this parameter. | |||
|- | |- | ||
|info-c | |info-c | ||
|< |
|<div style="background:#fea; margin:-2px -6px ; padding:2px 6px">Background color for the '''info''' area of the userbox.</div> | ||
|CSS color |
|CSS color string (hex or name) | ||
|- | |- | ||
|info-s | |info-s | ||
| |
|Text <span style="font-size:135%">'''size'''</span> for the '''info''' area. | ||
|Unit-less numerical value for font-size ''(do not append 'px')''. | |||
|Size in PostScript points | |||
|- | |- | ||
|info-fc | |info-fc | ||
| |
|Text <span style="color:#390; font-size:108%;">'''color'''</span> for the '''info''' area. | ||
|CSS color |
|CSS color string (hex or name) | ||
|- | |||
|info-a | |||
|<div style="text-align:center">'''⇦''' Horizontal text alignment for info area only. '''⇨'''</div> | |||
|A text string of, one of: '''left''', '''right''', or '''center'''. <br>''Do not'' enclose the key word in quotes. (E.g. '''info-a = center''' ). | |||
|- | |||
|info-lh | |||
|Vertical distance between '''info''' text lines (line-height). | |||
|It is recommended to use unit-less numerical values for line-height. Optionally, <br>CSS length units ''can'' be used for this parameter. | |||
|- | |- | ||
|id | |id | ||
| |
|Specify '''content''' for the the id label. | ||
|Free-form text (E.g. '''id = Co''' ) | |||
|Text | |||
|- | |- | ||
|info | |info | ||
| |
|Specify '''content''' for the info area. | ||
|Free-form text (E.g. '''info = Cobalt is Very Blue''' ) | |||
|Text | |||
|} | |} | ||
The '''id''' label and '''info''' content area can include text, links, and/or images, using the usual Misplaced Pages 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 === | |||
===== Userbox types ===== | |||
{| cellspacing="1" cellpadding="2" style="background: #99f; color: #000;" | |||
{| class="collapsible collapsed" style="background: #99f; color: #000; width: 100%; border-spacing: 1px; padding: 2px;" | |||
!style="background: #fff;"|Code | |||
!style="background: # |
! 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 | |||
|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 | |||
}}</pre></tt> | |||
''or'' <tt><nowiki>{{subst:Userbox|side-box colour|main box colour|side-box content|main box content}}</nowiki></tt> | |||
|style="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=info box content}} | |||
|- | |- | ||
| style="background: #FFF;"|<kbd><nowiki>{{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}}</nowiki></kbd> | |||
!colspan="2" style="background: #fff; text-align: left; padding: 0 1em;"|Reverse box | |||
''or'' <kbd><nowiki>{{Userbox |side-box colour |main box colour |side-box content |main box content}}</nowiki></kbd> | |||
| 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 | |||
|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 | |||
}}</pre> | |||
''or'' <tt><nowiki>{{subst:Userbox-r|side-box colour|main box colour|side-box content|main box content}}</nowiki></tt> | |||
|style="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=info box content}} | |||
|- | |- | ||
| style="background: #FFF;"|<kbd><nowiki>{{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}}</nowiki></kbd> | |||
!colspan="2" style="background: #fff; text-align: left; padding: 0 1em;"|Double box | |||
''or'' <kbd><nowiki>{{Userbox-r |side-box colour |main box colour |side-box content |main box content}}</nowiki></kbd> | |||
| 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 | |||
|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 | |||
}}</pre> | |||
''or'' <tt><nowiki>{{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}}</nowiki></tt> | |||
<br/>'''''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.'' | |||
|style="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=info box content}} | |||
|- | |- | ||
| style="background: #FFF;"|<kbd><nowiki>{{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}}</nowiki></kbd> | |||
!colspan="2" style="background: #fff; text-align: left; padding: 0 1em;"|Mini box | |||
''or'' <kbd><nowiki>{{Userbox-2 |side-box 1 colour |main box colour |side-box 1 content |message |side-box 2 content |border colour |side-box 2 colour |main box font-colour |box border thickness}}</nowiki></kbd> | |||
<br/>'''''Note''': If omitted, border colour and side-box 2 colour default to the same colour as side-box 1, and font colour is black. Default border thickness is 1.'' | |||
| 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 | |||
|- | |||
|border-c = #000 | |||
| style="background: #FFF;"|<kbd><nowiki>{{Userbox-m |border-c=#000 |border-s=1 |id-c=#FFF |id-s=12 |id-fc=#000 |id=ID}}</nowiki></kbd> | |||
|border-s = 1 | |||
''or'' <kbd><nowiki>{{Userbox-m |box colour |box content}}</nowiki></kbd> | |||
|id-c = #fff | |||
| style="width:243px; background: #FFF;"|{{Userbox-m |border-c=#000 |border-s=1 |id-c=#FFF |id-s=12 |id-fc=#000 |id=ID}} | |||
|id-s = 12 | |||
|id-fc = #000 | |||
|id = ID | |||
}}</pre> | |||
''or'' <tt><nowiki>{{subst:Userbox-m|box color|box content}}</nowiki></tt> | |||
|style="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: | |||
:<nowiki>{{subst:Userbox sample compact|id=UBX|id-c=red|info=This is a ''']'''.}}</nowiki> | |||
Produces: | |||
{| style="padding: 2px; border-spacing: 0px;" border="1" | |||
|- | |||
| style="width: 350px; text-align: left; font-size: 8pt; color: black; 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}}} = <nowiki>{{{logo}}}</nowiki> | |||
|{{{3}}} = <nowiki>{{{3}}}</nowiki> | |||
|UBX = <nowiki>UBX</nowiki> | |||
|id}} | info = {{#switch:This is a ''']'''. | |||
|This is a ''']'''. = <nowiki>This is a ''']'''.</nowiki> | |||
|{{{4}}} = <nowiki>{{{4}}}</nowiki> | |||
|<nowiki>''info''</nowiki>}} | float = left }} | |||
| <div style="float: left; border: 1px solid red; margin: 1px;"> | |||
{| 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 ''']'''. | |||
|}</div> | |||
|} | |||
There are not yet any similar templates available for userboxes created by the templates ''Userbox-r'', ''Userbox-2'' and ''Userbox-m''. | |||
== Grouping userboxes == | == Grouping userboxes == | ||
=== Using the Userboxtop template === | |||
{{Userboxtop|Example 1}} | {{Userboxtop|Example 1}} | ||
{{User |
{{User WikiProject Userboxes}} | ||
{{User |
{{User:UBX/Rome}} | ||
{{User |
{{User:Nihiltres/Userboxes/Friendly}} | ||
{{User Rome}} | |||
{{User friendly}} | |||
{{Userboxbottom}} | {{Userboxbottom}} | ||
As with the Babel box, there is a box to group userboxes together. Just make a list of userboxes with <nowiki>{{Userboxtop|box-name}} at the top and {{Userboxbottom}}</nowiki> at the bottom. For example, the box to the right is created using the following list: | |||
<nowiki>{{Userboxtop|Example 1}}</nowiki> | |||
<nowiki>{{User admin|]}}</nowiki> | |||
<nowiki>{{User WP:UB}}</nowiki> | |||
<nowiki>{{User browser}}</nowiki> | |||
<nowiki>{{User Rome}}</nowiki> | |||
<nowiki>{{User friendly}}</nowiki> | |||
<nowiki>{{Userboxbottom}}</nowiki> | |||
As with the ] box, there is a box to group userboxes together. Just make a list of userboxes with {{]|box-name}} at the top, followed by your list of userboxes, and {{Tl|Userboxbottom}} at the bottom. For example, the box to the right is created using the following list: | |||
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 <nowiki>{{Userboxtop|Example 1}}</nowiki> to <nowiki>{{Userboxtop|Example 1|left}}</nowiki>. | |||
{{Tl|Userboxtop|Example 1}} | |||
The actual Babel grouping system can also be used, e.g. <nowiki>{{Babel-4|sv|no-4|browser|rome}}</nowiki>. However, it only works for user boxes with the<br>"User" prefix, which must then be dropped for the arguments. Also, boxes that need arguments of their own cannot be used with Babel,<br>e.g. <nowiki>{{User wikipedia|administrator}}</nowiki>.) | |||
{{Tl|User WikiProject Userboxes}} | |||
{{Tlu|User:UBX/Rome}} | |||
{{Tlu|User:Nihiltres/Userboxes/Friendly}} | |||
{{Tl|Userboxbottom}} | |||
==== Using collapsible tables ==== | |||
==See also== | |||
{{Userboxtop|Example 2}} | |||
*] | |||
<!--Begin of first userboxes group--> | |||
<table class="collapsible autocollapse" style="width: 100%; background: transparent; color: inherit; border-spacing: 0px;"> | |||
* | |||
<tr><th style="background:yellow;">My yellow userboxes</th></tr> | |||
*Request new userboxes and/or submit your userbox ideas ] | |||
<tr><td> | |||
{{Userbox|orange|yellow|]|Sample userbox #1.}} | |||
{{Userbox|orange|yellow|]|Sample userbox #2.}} | |||
{{Userbox|orange|yellow|]|Sample userbox #3.}} | |||
</td></tr> | |||
</table> | |||
<!--Begin of second userboxes group--> | |||
<table class="collapsible autocollapse" style="width: 100%; background: transparent; color: inherit; border-spacing: 0px;"> | |||
<tr><th style="background:purple;color:white;">My purple userboxes</th></tr> | |||
<tr><td> | |||
{{Userbox|info-c=purple |info-fc=white |id=]|info=Sample userbox #4.}} | |||
{{Userbox|info-c=purple |info-fc=white |id=]|info=Sample userbox #5.}} | |||
{{Userbox|info-c=purple |info-fc=white |id=]|info=Sample userbox #6.}} | |||
</td></tr> | |||
</table> | |||
{{Userboxbottom}} | |||
If you wish to group your userboxes into expandable lists in the {{Tlx|Userboxtop}} template, one way of doing this is by using collapsible tables with certain classes. Misplaced Pages's Mediawiki configuration attempts to make this happen through a combination of ] and ]. This method is accessible to users with ECMAScript (jScript/JavaScript) disabled, and should work in most modern browsers (it is the method used by {{Tlx|Navbox}}). | |||
:Using the codes in ] works much better and simpler using normal wiki table markup! | |||
<syntaxhighlight lang="html"> | |||
{{WP:UBS}} | |||
{{Userboxtop|Example 2}} | |||
<table class="collapsible collapsed" style="width: 100%; background: transparent; color: inherit;"> | |||
<tr><th style="background:lavender;">(Caption)</th></tr> | |||
<tr><td> | |||
(Place your userboxes here...) | |||
</td></tr> | |||
</table> | |||
{{Userboxbottom}} | |||
</syntaxhighlight> | |||
Include '<code>collapsed</code>' if you want the box to start closed, omit it if you want the box to start open. You can also use multiple tables to get separate collapsible parts like in the example to the right. | |||
] | |||
] | |||
You can now use {{tlx|Userboxgroup}} to create this kind of box. | |||
] | |||
] | |||
=== Using the Babel grouping system === | |||
] | |||
The Babel grouping system can also be used, e.g. {{Tlx|Babel|sv|no-4|in Rome}}, which generates: | |||
] | |||
] | |||
{{Babel|sv|no-4|in 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 (such as {{Tlu|User:UBX/Monty Python}} or {{Tlx|User Translator}}) are difficult to use with the Babel system. They can be used by including parameters with magic word replacing the vertical bars and equals signs, e.g. {{Tlx|Babel|fr-5|ja-2|Translator{{((}}!{{))}}fr{{((}}!{{))}}project{{((}}{{=}}{{))}}no}} (result below), but this behavior is not officially supported by the template, and may not work in all contexts and break at some point in the future. | |||
] | |||
] | |||
{{Babel|fr-4|ja-2|Translator{{!}}fr{{!}}project{{=}}no}} | |||
] | |||
] | |||
=== Using tables === | |||
] | |||
Another alternative would be to ] your userboxes: | |||
] | |||
] | |||
<pre> | |||
] | |||
{| style="margin: 1em auto;" | |||
] | |||
|+ example 6 | |||
|- | |||
| {{User:AusTerrapin/Box:Jazz Fusion}} {{User_USAFo5}} | |||
|- | |||
| {{User helper}} {{User:The Raven's Apprentice/Userboxes/User Warm}} | |||
|} | |||
</pre> | |||
would produce the following: | |||
{| style="margin: 1em auto;" | |||
|+ example 6 | |||
|- | |||
| {{User:AusTerrapin/Box:Jazz Fusion}} {{User_USAFo5}} | |||
|- | |||
| {{User helper}} {{User:The Raven's Apprentice/Userboxes/User Warm}} | |||
|} | |||
To center one userbox use this coding: | |||
<pre> | |||
{| style="margin: 1em auto;" | |||
|+ example 7 | |||
|- | |||
| {{User:Saoshyant/Userboxes/User oops}} | |||
|} | |||
</pre> | |||
which produces: | |||
{| style="margin: 1em auto;" | |||
|+ example 7 | |||
|- | |||
| {{User:Saoshyant/Userboxes/User oops}} | |||
|} | |||
== See also == | |||
* ] | |||
* ] | |||
* ] | |||
* ] | |||
* ] | |||
* ] | |||
* ] | |||
* ] | |||
{{WP:UBS}} | |||
<noinclude> | |||
] | |||
] | |||
</noinclude> |
Latest revision as of 04:19, 18 December 2024
Templates that editors may use for self-description For the WikiProject collaboration on userboxes, see Misplaced Pages:WikiProject Userboxes.
This page documents an English Misplaced Pages project content guideline. Editors should generally follow it, though exceptions may apply. Substantive edits to this page should reflect consensus. When in doubt, discuss first on this guideline's talk page. | Shortcuts |
The following guidelines apply equally to all user templates (including any userbox or userbox-like markup), regardless of where the code resides; and regardless of whether they have been transcluded, substituted, or written from scratch. Such templates which fail to meet these guidelines may be subject to deletion. |
A guide to the userbox galleries |
An alphabetical list of all userbox galleries |
| |||
| |||
|
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 Misplaced Pages, userboxes you add will likely be public forever, even if you later have your user page deleted. (Like other Misplaced Pages pages, your user page will be regularly archived in the database dumps and may be archived by third parties, such as the Internet Archive.)
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 Misplaced Pages:Talk page.)
The {{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 Misplaced Pages:Userboxes/Galleries.
Syntax
The standard syntax for adding a userbox to your user page (also known as transclusion) is: {{user name_of_box}}
.
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 {{Userboxtop |}}
, add the transclusion(s) for the userbox(es) you wish to include, and add {{userboxbottom}}
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 {{subst:user name_of_box}}
. 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
Shortcuts- 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.
Namespace
Shortcut See also: Misplaced Pages:Userbox migrationThe namespace you place your userbox in matters. Userboxes may only be created or displayed in the User, Project (Misplaced Pages), or Template namespaces.
So which prefix is best for your userbox: User:
, Misplaced Pages:
, 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 Misplaced Pages:
namespaces, which are expected to adhere more tightly with certain policies and guidelines, especially Neutral point of view and What Misplaced Pages 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.
Misplaced Pages:
- Userboxes in the project namespace are generally for WikiProject or task force usage. Simply create it as a subpage of the WikiProject (e.g.
Misplaced Pages:WikiProject Spaceflight/Userbox
). Template:
- In the template namespace, userbox names must begin with "
User
" (e.g.Template:User Brazil
orTemplate:User en
). - Please remember to add
nocat = true
and wrap the category inincludeonly
tags (see this example diff) when using theTemplate
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.
Userboxes and category use
Shortcut Main page: Misplaced Pages:User categories See also: Misplaced Pages:Overcategorization/User categories and Misplaced Pages:User categories § Syntax for including a user category in a userboxA 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 Misplaced Pages, 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.
Userbox content
Content restrictions
Shortcut- All userboxes are governed by the civility policy.
- Userboxes must not include incivility or personal attacks.
- Userboxes must not be inflammatory or substantially divisive.
- Misplaced Pages 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 Misplaced Pages's non-free content use policy. This is interpreted strictly and without exception. See Misplaced Pages'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.
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 "{{#titleparts: {{PAGENAME}} | 1 | 1 }}
" (without the quotes) to insert the name of the user that includes it on their page (e.g. "{{#titleparts: {{PAGENAME}} | 1 | 1 }} uses second-person phrasing
" produces "Userboxes uses second-person phrasing").
Potentially divisive words
ShortcutAvoid 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
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.
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, but do not append 'px' to the number. E.g. border-s = 3 . |
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 and the userbox border. |
This cell padding uses a CSS length value. Unlike the other unit-less values, this must have a CSS length unit such as px or pt. (E.g. id-p = 8px ). |
id-lh | Vertical distance between id text lines (line-height). | It is recommended to use unit-less numerical values for line-height. Optionally, CSS length units can be used for this parameter. |
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. Do not enclose the key word in quotes. (E.g. info-a = center ). |
info-lh | Vertical distance between info text lines (line-height). | It is recommended to use unit-less numerical values for line-height. Optionally, CSS length units can be used for this parameter. |
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 Misplaced Pages 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
Types of Userboxes | ||||
---|---|---|---|---|
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 colour |main box colour |side-box content |main 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=Content}}
or {{Userbox-r |side-box colour |main box colour |side-box content |main box content}} |
| |||
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 colour |main box colour |side-box 1 content |message |side-box 2 content |border colour |side-box 2 colour |main box font-colour |box border thickness}}
|
| |||
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 colour |box content}} |
|
Userbox sampling templates
The factual accuracy of parts of this Misplaced Pages page (those related to {{Userbox sample compact}} ) may be compromised due to out-of-date information. Please help update this Misplaced Pages page to reflect recent events or newly available information. Relevant discussion may be found on the talk page. |
To make it easier to quote the generation code for a userbox in a uniform format, a template {{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 {{Userbox}} template. You must use subst:, or the template will not work properly. An example is shown below:
- {{subst:Userbox sample compact|id=UBX|id-c=red|info=This is a ''']'''.}}
Produces:
{{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 = UBX | info = This is a ''']'''. | float = left }} |
|
There are not yet any similar templates available for userboxes created by the templates Userbox-r, Userbox-2 and Userbox-m.
Grouping userboxes
Using the Userboxtop template
Example 1
|
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, followed by your list of userboxes, and {{Userboxbottom}} at the bottom. For example, the box to the right is created using the following list:
{{Userboxtop}} {{User WikiProject Userboxes}} {{User:UBX/Rome}} {{User:Nihiltres/Userboxes/Friendly}} {{Userboxbottom}}
Using collapsible tables
Example 2
|
If you wish to group your userboxes into expandable lists in the {{Userboxtop}}
template, one way of doing this is by using collapsible tables with certain classes. Misplaced Pages's Mediawiki configuration attempts to make this happen through a combination of ECMAScript and CSS. This method is accessible to users with ECMAScript (jScript/JavaScript) disabled, and should work in most modern browsers (it is the method used by {{Navbox}}
).
- Using the codes in Help:Collapsing works much better and simpler using normal wiki table markup!
{{Userboxtop|Example 2}} <table class="collapsible collapsed" style="width: 100%; background: transparent; color: inherit;"> <tr><th style="background:lavender;">(Caption)</th></tr> <tr><td> (Place your userboxes here...) </td></tr> </table> {{Userboxbottom}}
Include 'collapsed
' if you want the box to start closed, omit it if you want the box to start open. You can also use multiple tables to get separate collapsible parts like in the example to the right.
You can now use {{Userboxgroup}}
to create this kind of box.
Using the Babel grouping system
The Babel grouping system can also be used, e.g. {{Babel|sv|no-4|in Rome}}
, which generates:
Misplaced Pages:Babel | ||||||
---|---|---|---|---|---|---|
| ||||||
Search user languages |
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 (such as {{User:UBX/Monty Python}} or {{User Translator}}
) are difficult to use with the Babel system. They can be used by including parameters with magic word replacing the vertical bars and equals signs, e.g. {{Babel|fr-5|ja-2|Translator{{!}}fr{{!}}project{{=}}no}}
(result below), but this behavior is not officially supported by the template, and may not work in all contexts and break at some point in the future.
Misplaced Pages:Babel | ||||||
---|---|---|---|---|---|---|
| ||||||
Search user languages |
Using tables
Another alternative would be to table your userboxes:
{| style="margin: 1em auto;" |+ example 6 |- | {{User:AusTerrapin/Box:Jazz Fusion}} {{User_USAFo5}} |- | {{User helper}} {{User:The Raven's Apprentice/Userboxes/User Warm}} |}
would produce the following:
| ||||
|
To center one userbox use this coding:
{| style="margin: 1em auto;" |+ example 7 |- | {{User:Saoshyant/Userboxes/User oops}} |}
which produces:
|
See also
- Misplaced Pages:Jimbo on Userboxes
- Misplaced Pages:List of userbox deletion nominations
- Misplaced Pages:User page design center
- Misplaced Pages:Userbox Maker
- Misplaced Pages:Userbox migration
- Misplaced Pages:Userboxes/Galleries
- Misplaced Pages:Userboxes/Galleries/alphabetical
- Misplaced Pages:WikiProject Userboxes
WikiProject Userboxes | |
---|---|
Misplaced Pages | |
Interests | |
Languages | |
Life | |
Location | |
Mass media | |
The arts | |
TV shows | |
Time | |
Other | |
How to | |
New | |