แม่แบบ:Usbktop

จากวิกิพีเดีย สารานุกรมเสรี
ไปยังการนำทาง ไปยังการค้นหา
Documentation icon คู่มือการใช้งานแม่แบบ[ดู] [แก้] [ประวัติ] [ล้างแคช]

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|param4|param5}}
For a userbox that uses up to 5 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|4=param3=value3|5=param4=value4|6=param5=value5}}
For a userbox set that uses up to 5 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.

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:

Numbering of Userboxen[แก้]

The userboxen can be numbered by changing the |number= parameter. When you do this you must manually enter what number the userbox is. Also if you want to display the same userbox another time with altered parameters you can use the |cont.= parameter or the |continued= parameter, which will then display "cont." or "continued" respectively.

Example[แก้]

The following code...

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

...displays the following table:

รหัส กล่องผู้ใช้ที่ปรากฏ
แม่แบบ:Usbkbreak
รหัส กล่องผู้ใช้ที่ปรากฏ
 {{Template:User Arizona}} แม่แบบ:Template:User Arizona หน้าที่นำไปใช้
Category:Wikipedians in Arizona
1. {{User:UBX/vandalized|n}} แม่แบบ:User:UBX/vandalized หน้าที่นำไปใช้
2. {{User:Patricknoddy/Userboxes/Lives in}} แม่แบบ:User:Patricknoddy/Userboxes/Lives in หน้าที่นำไปใช้
2. (ต่อ)  {{User:Patricknoddy/Userboxes/Lives in|Atlanta|Flag of the United States.svg}} แม่แบบ:User:Patricknoddy/Userboxes/Lives in หน้าที่นำไปใช้
3. {{User:Patricknoddy/Userboxes/Lives in|Rome, Georgia|Flag of the United States.svg}} แม่แบบ:User:Patricknoddy/Userboxes/Lives in หน้าที่นำไปใช้
3. มีต่อ  {{User:Patricknoddy/Userboxes/Lives in|Savannah, Georgia|Flag of the United States.svg}} แม่แบบ:User:Patricknoddy/Userboxes/Lives in หน้าที่นำไปใช้

See also[แก้]

แม่แบบ:Markup templates see also
https://th.wikipedia.org/wiki/%E0%B9%81%E0%B8%A1%E0%B9%88%E0%B9%81%E0%B8%9A%E0%B8%9A:Usbktop
th.wikipedia.org
crawl=CC-MAIN-2021-43
55535
application/http; msgtype=response
sha1:KHTR2CJSYP3XUOWPE7CMUW4NPOWK5EQ2
<urn:uuid:bef74b0d-bc75-4fba-adda-47df4bf28ec7>
2021-10-23T00:07:53Z
208.80.154.224
text/html
sha1:YJB7X4YBZOYMI7SM3Z3Q4D6UDVJ7GPQC
<urn:uuid:0c241e91-90fb-4c75-ad60-9936de71c3a4>
https://th.wikipedia.org/wiki/%E0%B9%81%E0%B8%A1%E0%B9%88%E0%B9%81%E0%B8%9A%E0%B8%9A:Usbktop
response
<urn:uuid:8b9ecb8b-9a27-4aaf-8548-5a70ed419f50>
isPartOf: CC-MAIN-2021-43
publisher: Common Crawl
description: Wide crawl of the web for October 2021
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-190
software: Apache Nutch 1.18 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.2-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/