Jump to content

Wikipedia:Userboxes/Using existing

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by LukeShu (talk | contribs) at 01:47, 19 July 2009 (<includeonly>{{main|Wikipedia:Userboxes/Using existing}}</includeonly>). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Using existing userboxes

Userboxes are for the use of users on their own user pages. It may be considered uncivil to place userboxes on other users' pages without their permission. However, userboxes may be placed on non-mainspace talk/discussion pages by anyone. (See also Wikipedia:Talk page.)

Syntax

The standard syntax for adding a userbox to your user page (also known as transclusion) is: {{user name_of_box}}.

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.

Displaying a random userbox

To limit the number of userboxes on display, you may consider using Template:Ubxdisplay/random (or Ubxrand for short) to display a random userbox from a given selection. See the template for full documentation. Example: {{Ubxrand|User en|User fr}} results in:

enThis user is a native speaker of the English language.