Template:Usbk/doc
Script error: No such module "Message box".
Usage
The Template:Tlx template is used for showing a userbox and its properties in a table row. The only mandatory parameter is userbox name. Wrap Template:Tlx and Template:Tlx around uses of this template. You may use Template:Tlx to insert headers/text breaks in lists.
- Template:Tlx
- Include the full
userbox name, i.e. prefix it withUser:,Template:, orWikipedia:.
- Template:Tlx
- For a userbox that uses up to 3 unnamed parameters. If your userbox accepts more parameters, use Template:Tl.
- Template:Tlx
- For a userbox set that uses up to 3 named parameters. (This does not always seem to work.)
- Template:Tlx
- If the userbox adds user pages into a user category under Category:Wikipedians. Do not include the
Category:prefix.
- Template:Tlx
- Show some other additional text in the third column.
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:
|nocat=true|category=|categories=no(see Wikipedia:Category suppression)
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}}
{{usbk|User en-3|comment=Example of a comment in third column: Third level of English knowledge userbox.}}
{{usbkbottom}}
...displays the following table:
Template:Usbkbreak| Code | Result | |
|---|---|---|
| Template:Tlu | Script error: No such module "userbox".Template:Template other | [{{canonicalurl:Special:WhatLinksHere/Template:Transclude|hidelinks=1&hideredirs=1}} Usage] • Category:Wikipedians in Arizona • |
| Template:Tlu | User:UBX/vandalized | [{{canonicalurl:Special:WhatLinksHere/Template:Transclude|hidelinks=1&hideredirs=1}} Usage] |
| Template:Tlu | User:Patricknoddy/Userboxes/Lives in | [{{canonicalurl:Special:WhatLinksHere/Template:Transclude|hidelinks=1&hideredirs=1}} Usage] |
| Template:Tlu | User:Patricknoddy/Userboxes/Lives in | [{{canonicalurl:Special:WhatLinksHere/Template:Transclude|hidelinks=1&hideredirs=1}} Usage] |
| Template:Tlu | User:Patricknoddy/Userboxes/Lives in | [{{canonicalurl:Special:WhatLinksHere/Template:Transclude|hidelinks=1&hideredirs=1}} Usage] |
| Template:Tlu | User:Patricknoddy/Userboxes/Lives in | [{{canonicalurl:Special:WhatLinksHere/Template:Transclude|hidelinks=1&hideredirs=1}} Usage] |
| Template:Tlu | Template:Userbox-level | [{{canonicalurl:Special:WhatLinksHere/Template:Transclude|hidelinks=1&hideredirs=1}} Usage] Example of a comment in third column: Third level of English knowledge userbox. |
See also
- Template:Tlx a version which supports more user-box parameters for the odd case when more are needed.
Template:Markup templates see also