This is an old revision of this page, as edited by SieBot(talk | contribs) at 01:02, 1 September 2007(Robot: Automated text replacement (-[eE]uropean[ _]flag.svg +Flag of Europe.svg)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.Revision as of 01:02, 1 September 2007 by SieBot(talk | contribs)(Robot: Automated text replacement (-[eE]uropean[ _]flag.svg +Flag of Europe.svg))
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.
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 userbox is a small rectangular box that looks like this. More examples below.
Userboxes can come in many different styles and colors.
Userboxes can have one or two sideboxes.
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.)
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 {{clear}} template can be placed after the plain userbox if text is added on a new line immediately after it.
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.
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.
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.
Please remember to add nocat = true and wrap the category in includeonlytags (see this example diff) when using the 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.
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.
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.
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.
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 "WikiProject Userboxes uses second-person phrasing").
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 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.
The factual accuracy of parts of this Wikipedia page (those related to {{Userbox sample compact}}) may be compromised due to out-of-date information. Please help update this Wikipedia 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 '''[[WP:UBX|Userbox]]'''.}}
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 '''[[WP:UBX|Userbox]]'''. | float = left }}
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:
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. Wikipedia'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!
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:
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.
For some reason, there are userboxes of most of the 50 states and other US territories, except--Missouri! Though I see (many, many) reasons why there isn't a userbox for the state, we should at least try to have one for the sake of saying that there is one for every state.
Hi everyone, just checking whether anyone has any objection to Cricket-related userboxes that I'm going to be working on in the future. The first I have created is:
20/20
This User believes that Twenty20 is the way to go for cricket.
I'm really new to this and this is realy only my second try at making a userbox. My first attempt was making the air guitar userbox. But anyhoooo.. this is what I propose. ONEder Boy01:32, 14 March 2006 (UTC)
Actually, would you mind changing for me.... I messed up....I meant: This user attends or attended RCSI. Not attending (sorry and thanks) RCSIRCSIRCSI02:28, 8 April 2006 (UTC)RCSIRCSIRCSI
Thanks :) Do you need some sort of special rights to make or edit templates here on WP? Also, do you know how I can modify the hover style in the box? I'd like it to underline the text in white. :) Superdix12:10, 10 April 2006 (UTC)
What you would need to use is a:hover { text-decoration: underline; } but there's no way to do this except to declate it a custom css stylesheet or inside the <head></head> tags of a webpage (in other words, not easily possible). — nathanrdotcom(T • C • W)02:02, 11 April 2006 (UTC)
This user contributes with many different operating systems.
I tend to use a lot of different operating systems for different tasks, and when I look in the computer userboxes lists I see no userboxes for people who contribute with many different operating systems. I did use the template on the userboxes info page to put this together real qucik.
Perhaps someone else could improve it somewhat if there is any interest. "OSXPNIX" refers to "OS X", Windows "XP" and "*NIX" all at the same time. --Zanthra09:02, 16 April 2006 (UTC)
18 April 2006
'
This user is a current or former student of Austin College.
A userbox for students or alumni of Austin College (to go in the education, United States, West South Central, Texas section with the other Texas university userboxes) Frecklegirl21:23, 18 April 2006 (UTC)
Asperger's Syndrome wikipedian's have a infobox. I think classic autistics should have one too. I hope alot of people can decide on a great infobox since i don't about the color bar too well, so here an example. I hope you wikipedians can think of a better infobox then this one. Have fun. --Stco2309:55, 14 May 2006 (UTC)
I agree there should be a userbox for autism as well. And because there is already a category for Wikipedians on the autism spectrum, I think there should be a userbox for that as well. Some people, like me, are on the autism spectrum but do not meet the criteria for either classic autism or Asperger's syndrome. Andrea Parton05:48, 9 June 2006 (UTC)
I didn't find any minor edit userbox, so I wanted to create it. Really I'm novice at this and I don'know very much how it works . what do you think?User:Atenea2614:20, 17 May 1006 (UTC)
I noted that someone already has a box touting 'their opinion about the movie Blade Runner. So, how about one for 2001: A Space odyssey? This film was recently voted best Science Fiction film ever made by the Online Film Critics Assoc. And I'm sure it's VERY popular -- my favourite movie of all time it is. How about this:
style="font-size: 10pt; padding: 4pt; line-height: 1.25em; color:#ffffff" |This user thinks 2001: A Space Odyssey is the best science fiction film ever made.
Except you misspelled Artemis Fowl. ;) But yes. Would love to have that one, as I love those books! Although you may want to change it to "the Artemis Fowl books", to be specific.
You could even have a variation that says "This user does not like lollipops!" (which has an inside joke for AF fans). Runa2702:00, 26 May 2006 (UTC)
I was looking through the specific Artists and Bands section under the Music Userboxes, and I noticed a lot of modern rock bands are missing out. I've got a few that I made myself already on my User Page, and I need to know if anyone else thinks that those groups need a little honor in Userbox form. --DcPimp02:11, 27 May 2006 (UTC)
Well, there you go. Not a whole lot, and not really that good. But, if anyone can make them look really good (e.g. Turn the "B" in the Nickelback one backwards), please do. I'd do it myself, but I am ashamed to admit I can't make anything more complicated than this at the time. --DcPimp23:23, 27 May 2006 (UTC)
I made a Userbox for my User Page a little while ago. Anybody think it should be official?
...
This user is quiet in real life, but you'd never know it here!
So, whaddaya think? Simple, but it gets the point across. Or am I just rambling on about the dumbest thing anyone's ever proposed? --DcPimp02:48, 28 May 2006 (UTC)
Just some ideas here... I can make ones for all 47 prefectures if desired.
The choices of colors comes directly from the colors of the prefectural flower, except in the case of Hiroshima, which does not have an official flower, in which case I used colors of the prefectural bird. I opted to use the names in the left box rather than the prefectural symbols because of the copyright notice on the symbols and the fact that they were taken off the Japanese wikipedia for that reason. Karimarie20:20, 30 May 2006 (UTC)
31 May 2006
This user times his farts with the smell of cow manure..
{{subst:Userbox
|border-c = #f00
|border-s = 1
|id-c = #fff
|id-s = 12
|id-fc = #000
|info-c = #ccc
|info-s = 8
|info-fc = #000
|id = [[Image:Atari_joystick_icon.gif|40px]]
|info = This user was a victim of the [[Video game crash of 1983|video game crash of 1983]]
}}
My first userboxes. The Footy Show (NRL) userbox is my own creation, the PlayStation userbox was adapted from the existing N64 userbox. --Lumina8311:35, 7 June 2006 (UTC)
For all of us who have too many userboxes to fit on the main User:* page, this is a nice way to link to them, especially if you're using the {{User infobox}} template. The only parameter is the link to the page (e.g. {{Template page|User:Koweja/Userboxes}}. If you want to use the code, please use subst: instead of linking to User:Koweja/Userbox, since I may change it at some point. Thanks, Koweja16:06, 11 June 2006 (UTC) (talk page)
I found a problem with your WWE template and fixed it. The WWE logo is copyrighted and can not be used on templates like this. I replaced it with the text WWE. — The King of Kings 01:09 June 25 '06
Understood, and thanks. But how do I change the text color in userboxes? I'm thinking a white "WWE" in a black background would look much nicer.--Bedford02:52, 25 June 2006 (UTC)
P
I eat the flesh of children. Not really, but I do eat pasta, lots of pasta.
UBX
I speak through userboxes. Userboxes are pretty. Join us. Do not be afraid.
28 June 2006
This user is part of WikiProject Disneyland Resort Attraction