模板:Usbk/doc
外觀
此頁面是Template:Usbk的模板文件。 此頁面可能包含了模板的使用說明、分類和其他內容。 |
此條目可參照外語維基百科相應條目來擴充。 (2018年8月25日) |
Usage
[編輯]This 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.
{{Usbk|userbox name}}
- Include the full
userbox name
, i.e. prefix it withUser:
,Template:
, orWikipedia:
.
{{Usbk|userbox name|param1|param2}}
- For a userbox that uses up to 2 unnamed parameters. If your userbox accepts more parameters, make a request on the talk page to expand this template.
{{Usbk|userbox name|2=param1=value1|3=param2=value2}}
- For a userbox set that uses up to 2 named parameters.
{{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.
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 User:Willscrlt/UBX/categories)
Example
[編輯]The following code...
{{usbktop}} {{usbk|Template:User Arizona|category=Wikipedians in Arizona}} {{usbk|Template:User:UBX/vandalized|n}} {{usbk|User:Patricknoddy/Userboxes/Lives in|Atlanta, Georgia|Flag of the United States.svg}} {{usbk|User:Bennelliott/UBX/twin|2=you=A|3=twin=B}} {{usbkbottom}}
...displays the following table:
程式碼 | 顯示 | 連入頁面及分類 | |||
---|---|---|---|---|---|
{{Template:User Arizona
|
|
使用頁面 | |||
{{Template:User:UBX/vandalized
|
Template:User:UBX/vandalized | 使用頁面 | |||
{{Template:User lives in
|
|
使用頁面 | |||
{{User:Bennelliott/UBX/twin
|
User:Bennelliott/UBX/twin | 使用頁面 |
See also
[編輯]- {{Ubxdisplay}} - a single-serving (i.e. non-tabled) version of this template
- {{stublist}} - Similar template set for stubs