Misplaced Pages

:Userboxes/Design and construct: 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.
< Misplaced Pages:Userboxes Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 14:05, 12 January 2008 editJc37 (talk | contribs)Administrators49,011 edits Undid revision 183823967 by Jc37 (talk) rv self - resolved.← Previous edit Revision as of 17:57, 12 January 2008 edit undoKendrick7 (talk | contribs)Extended confirmed users22,315 edits Content restrictions: add that this goes both ways; speech inside a rectangle is no different from speech not in a rectangleNext edit →
Line 12: Line 12:
**] an appropriate place for propaganda, advocacy, or recruitment of any kind, commercial, political, religious, or otherwise, opinion pieces on current affairs or politics, self-promotion, or advertising. **] an appropriate place for propaganda, advocacy, or recruitment of any kind, commercial, political, religious, or otherwise, opinion pieces on current affairs or politics, self-promotion, or advertising.


Simply: If content is not appropriate on a ], it is not appropriate within userboxes. Simply: If content is not appropriate on a ], it is not appropriate within userboxes, and vice versa.


=== Content examples === === Content examples ===

Revision as of 17:57, 12 January 2008

Designing a userbox

The following userbox design and creation guidelines apply equally to all user templates (including any userbox or userbox-like markup), regardless of whether they have been transcluded, substituted, or written from scratch. Userboxes that fail to meet these guidelines may be subject to deletion.

Caution about image use

The Wikimedia Commons has a large range of icons for use within boxes. However, if you wish to select a different image to put in a userbox, make certain the image license is free. Misplaced Pages policy does not allow templates (which includes userboxes) or user pages to contain any copyrighted content not under free license; so, for example, "fair use" images are explicitly forbidden. This clause is to be interpreted strictly and without exception, for legal reasons. See Misplaced Pages's fair use policy guidelines for more details.

Content restrictions

  • All userboxes are governed by the civility policy.
    • Userboxes must not include incivility or personal attacks.
    • Userboxes must not be inflammatory or divisive.
    • Misplaced Pages is not an appropriate place for propaganda, advocacy, or recruitment of any kind, commercial, political, religious, or otherwise, opinion pieces on current affairs or politics, self-promotion, or advertising.

Simply: If content is not appropriate on a user page, it is not appropriate within userboxes, and vice versa.

Content examples

Typical userbox content:

Typical verbs (others are possible):

  • drives, eats, edits, enjoys, likes, loves, plays, reads, speaks, understands, uses, and watches.

Some alternate combinations (other combinations are possible):

  • This user is <noun phrase>
  • This user is a member of <noun phrase>
  • This user is a fan of <noun phrase>
  • This user supports <noun phrase>
  • This user contributes to <noun phrase>
  • This user is interested in <noun phrase>
  • This user is fascinated by <noun phrase>
Potentially divisive words

Avoid verbs which may be used to suggest negative comparison, and would thus be potentially divisive, such as:

  • believes, considers, favors, finds, knows, prefers, thinks and 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 like, rather than what you don't like. Express who you are, rather than who you aren't. Express what you do, rather than what you don't.

Category inclusion

  • Userboxes should not automatically include categories by default. Consider how useful the category would be to other editors before adding it to your userbox. The category system is intended as a tool for navigation, by grouping like things together. Wikipedian categories (categories of Wikipedians) are intended for grouping Wikipedians in order to aid in facilitating collaboration on the encyclopedia. Similar to all categories, Wikipedian categories should not be used as a "bottom-of-the-page" notice. If a Wikipedian wishes to have a such a notice, they may edit their user page and add the notice in some other way (such as by adding text or a userbox), rather than inappropriately creating a category grouping.
  • Do not create categories which could potentially include most or all Wikipedians. For example, userboxes such as: "This user is a Wikipedian."; "This user uses the internet"; "This user plays video games"; etc., should not include category markup based on such criteria.
  • Userboxes which include category markup that adds the bearing userpage to a category must only categorise within sub-categories of Category:Wikipedians.

Naming conventions (Wikipedian sub-categories)

  • Names and descriptions of Wikipedian sub-categories are subject to the same rules and restrictions as userbox content.
  • The name of the category should be clear about its scope and purpose, and in general, should follow the naming convention of fellow members of a parent category. See Category:Wikipedians by interest for an example.
  • A Wikipedian sub-category should have an indication it is a Wikipedian category. "Indications" include, but are not limited to: "Wikipedians", "WikiProject", or a name of a Misplaced Pages-specific organization or grouping. For example, Category:Wikipedian mathematicians, not Category:Mathematicians. Babel-specific user categories are an exception to this, and instead should follow that convention by having the same name as the Babel-specific userbox.
  • If in the userbox content, the verb (see above) is one of preference (enjoys, likes, loves, etc.), replace it with a more specific verb when selecting the category name. For example, "This user enjoys Tolkien" could be categorised as Category:Wikipedians who read Tolkien.
  • Avoid creating "not"-based categories. For example: "This user does not like <noun phrase>."

Syntax for including categories

<div style="float:left;border:solid #C0C8FF 1px;margin:1px">
{| cellspacing="0" style="width:238px;background:#F0F8FF"
| style="width:45px;height:45px;background:#C0C8FF;text-align:center;font-size:14pt" 
| ''']-1'''
| style="font-size:8pt;text-align:center;padding:4pt;line-height:1.25em" 
| Ĉi tiu uzanto povas komuniki per 
''']''' nivelo de ''']'''
|}</div>{{#ifeq:{{NAMESPACE}}|User|]}}<noinclude>
]
</noinclude>
  • |}</div> must begin on a new line. <includeonly> (or <noinclude> if not categorising userpages) should be on the same line to prevent extra spacing from appearing when grouping userboxes on userpages.
  • Categories enclosed in <includeonly> tags - This will only categorise pages on which the userbox is transcluded. To show the userbox in that category, use {{User category}} or {{Your userbox name|nocat=}}.
  • Categories enclosed in <noinclude> tags - This will only categorise the userbox. You can make your userbox known through ] and other relevant categories in Category:Wikipedian userboxes. Remember to set the sort key as {{PAGENAME}}.

Constructing a userbox

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") 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.

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
id-p The distance between border and content of id box. CSS padding width value. px, pt
id-lh The distance between text lines of id box. CSS relative line height/length value. em
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
info-p The distance between border and content of info box. CSS padding width value. px, pt
info-lh The distance between text lines of info box. CSS relative line height/length value. em
id This is the content of the id box. Free-form
info This is the content of info box. Free-form

The id and info boxes can include text, links, and images using the usual Misplaced Pages syntax. Generally, the id box will contain a few letters or a 43px image, while the info box will contain a sentence with a link or two.

Userbox types

Code Appearance
Standard box
{{Userbox |border-c=#000 |border-s=1 |id-c=#fff |id-s=12 |id-fc=#000 |info-c=#039 |info-s=8 |info-fc=#fff |id=ID |info=Content}}

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

IDContent
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}}

ContentID
Double box
{{Userbox-2 |border-c=#000 |border-s=1 |id1-c=#fff |id1-s=12 |id1-fc=#000 |id2-c=#000 |id2-s=12 |id2-fc=#fff |info-c=#039 |info-s=8 |info-fc=#fff |id1=ID 1 |id2=ID 2 |info=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}}
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.

ID 1ContentID 2
Mini box
{{Userbox-m |border-c=#000 |border-s=1 |id-c=#fff |id-s=12 |id-fc=#000 |id=ID}}

or {{Userbox-m |box colour |box content}}

ID

Userbox sampling templates

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 }}
UBX 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.