Permanently protected template

Template:Usbk

From Wikipedia, the free encyclopedia


Template documentation[view] [edit] [history] [purge]

Usage

The {{Usbk}} template is used for showing a userbox and its properties in a table row. The only mandatory parameter is userbox name. Wrap {{usbktop}} and {{usbkbottom}} around uses of this template. You may use {{usbkbreak}} to insert headers/text breaks in lists.

{{Usbk|userbox name}}
Include the full userbox name, i.e. prefix it with User:, Template:, or Wikipedia:.
{{Usbk|userbox name|param1|param2|param3}}
For a userbox that uses up to 3 unnamed parameters. If your userbox accepts more parameters, use {{Usbkext}}.
{{Usbk|userbox name|2=param1=value1|3=param2=value2|4=param3=value3}}
For a userbox set that uses up to 3 named parameters. (This does not always seem to work.)
{{Usbk|userbox name|category=user category}}
If the userbox adds user pages into a user category under Category:Wikipedians. Do not include the Category: prefix.

Note: If a namespace is not included in the name of the userbox, the "Transclusions" link will be missing the namespace and show the transclusions of a nonexistent page in article space.

Category suppression

Some userboxes automatically place the page where it is used into a category. These categories are not appropriate for pages such as lists, so some userboxes support a feature to suppress the automatic category. This template invokes category suppression for those userboxes. There are several methods for category suppression, Usbk supports those that use:

Example

The following code...

{{usbktop}}
{{usbk|Template:User Arizona|category=Wikipedians in Arizona}}
{{usbk|User:UBX/vandalized|n}}
{{usbk|User:Patricknoddy/Userboxes/Lives in}}
{{usbk|User:Patricknoddy/Userboxes/Lives in|Atlanta|Flag of the United States.svg}}
{{usbkbreak}}
{{usbk|User:Patricknoddy/Userboxes/Lives in|Rome, Georgia|Flag of the United States.svg}}
{{usbk|User:Patricknoddy/Userboxes/Lives in|Savannah, Georgia|Flag of the United States.svg}}
{{usbkbottom}}

…displays the following table:

Code Result
{{Template:User Arizona}}
Flag of Arizona.svg
Usage
Category:Wikipedians in Arizona
{{User:UBX/vandalized|n}}
vn-n This user page has been vandalized n times.
Usage
{{User:Patricknoddy/Userboxes/Lives in}}
Rotating earth (large).gif This user lives in The World. Wikipedia-logo.png
Usage
{{User:Patricknoddy/Userboxes/Lives in|Atlanta|Flag of the United States.svg}}
Rotating earth (large).gif This user lives in Atlanta. Flag of the United States.svg
Usage

{{User:Patricknoddy/Userboxes/Lives in|Rome, Georgia|Flag of the United States.svg}}
Rotating earth (large).gif This user lives in Rome, Georgia. Flag of the United States.svg
Usage
{{User:Patricknoddy/Userboxes/Lives in|Savannah, Georgia|Flag of the United States.svg}}
Rotating earth (large).gif This user lives in Savannah, Georgia. Flag of the United States.svg
Usage

See also

  • {{Usbk/light}} a lighter weight version, for pages cataloguing many userboxes.
  • {{Usbkext}} a version which supports more user-box parameters for the odd case when more are needed.

Closely related templates:

Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Usbk&oldid=792247584"
This content was retrieved from Wikipedia : http://en.wikipedia.org/wiki/Template:Usbk
This page is based on the copyrighted Wikipedia article "Template:Usbk"; it is used under the Creative Commons Attribution-ShareAlike 3.0 Unported License (CC-BY-SA). You may redistribute it, verbatim or modified, providing that you comply with the terms of the CC-BY-SA