Preview:

This template is used to show that templates have been converted to use TemplateStyles. It is placed at the top of the template's /doc page. It automatically adds the template to Category:Templates using TemplateStyles, or to one of its subcategories.

The syntax for actually doing a TemplateStyles is, of course: <templatestyles src="" /> (with the page name in the quotation marks).

Basic
{{Uses TemplateStyles|TemplateStyles page name}}
All parameters
{{Uses TemplateStyles|TemplateStyles page 1|TemplateStyles page 2|TemplateStyles page 3|...|category=custom category|nocat=true}}

The first TemplateStyles page name is required.

TemplateStyles sandboxes

แก้

Note that if a sandbox version of the TemplateStyle exists, it will also be linked. This is only for sandbox versions. The subpage name of the sandbox version should be the same, but as a subpage of the templates sandbox. For example, if the TemplateStyles page name is Template:Foo/styles.css, then the sandbox version should be Template:Foo/sandbox/styles.css

ตัวอย่าง

แก้

หน้าสไตล์หนึ่ง

แก้

{{Uses TemplateStyles|แม่แบบ:Arrowlist/styles.css}}

หน้าหลายสไตล์

แก้

{{Uses TemplateStyles|แม่แบบ:Arrowlist/styles.css|แม่แบบ:Routemap/styles.css}}

มีหน้าสไตล์เวอร์ชั่นกะบะทรายแล้ว

แก้

{{Uses TemplateStyles|แม่แบบ:Uses TemplateStyles/example.css}}

ไม่มีการระบุหน้าสไตล์

แก้

{{Uses TemplateStyles}}

Categories

แก้

Template category

แก้

This template adds pages to Category:Templates using TemplateStyles if the page is in the template namespace, and it is not on any of the subpages /doc, /sandbox, /sandbox2 or /testcases. You can specify a different category with the |category= parameter, e.g. |category=Uses list TemplateStyles.

Error category

แก้

If no modules are specified, the transcluded page will be added to Category:Uses TemplateStyles templates with errors.

Protection level category

แก้

TemplateStyles should have the same protection level as the template they are used on. If a difference is detected, the transcluded page will be added to Category:Templates using TemplateStyles with a different protection level.

Category suppression

แก้

To suppress all categories, use |nocat=true. (As well as "true", the values "yes", "y", and "1" will also work.)

ข้อมูลแม่แบบ

แก้
ด้านล่างนี้คือข้อมูลแม่แบบ เอกสารกำกับสำหรับแม่แบบนี้ซึ่งถูกใช้งานโดยเครื่องมือแก้ไขแบบเห็นภาพและเครื่องมืออื่น ๆ

ข้อมูลแม่แบบสำหรับ Uses TemplateStyles (ยังไม่มีการตรวจสอบ)

Used to show that templates have been converted to use TemplateStyles.

พารามิเตอร์แม่แบบ

พารามิเตอร์คำอธิบายชนิดสถานะ
Stylesheet 11

Name of the main stylesheet used in the template or module. Use multiple parameters to specify multiple stylesheets.

ชื่อหน้าจำเป็น
Stylesheet 22

Name of the second stylesheet.

ชื่อหน้าเลือกได้
Stylesheet 33

Name of the third stylesheet.

ชื่อหน้าเลือกได้
Stylesheet 44

Name of the fourth stylesheet.

ชื่อหน้าเลือกได้
Stylesheet 55

Name of the fifth stylesheet.

ชื่อหน้าเลือกได้
Stylesheet 66

Name of the sixth stylesheet.

ชื่อหน้าเลือกได้
Stylesheet 77

Name of the seventh stylesheet.

ชื่อหน้าเลือกได้
Stylesheet 88

Name of the eighth stylesheet.

ชื่อหน้าเลือกได้
Stylesheet 99

Name of the ninth stylesheet.

ชื่อหน้าเลือกได้
Stylesheet 1010

Name of the tenth stylesheet.

ชื่อหน้าเลือกได้
No Category?nocat

Whether to disable categorization.

ค่าปริยาย
0
ค่าอัตโนมัติ
1
ตรรกะเลือกได้
No Protection Category?noprotcat

Whether to disable checking that the stylesheet page(s) have same protection level as the template.

ค่าปริยาย
0
ค่าอัตโนมัติ
1
ตรรกะเลือกได้
Custom Categorycategory

Main category to put on pages using this template, without namespace prefix.

ค่าปริยาย
Templates using TemplateStyles
สตริงเลือกได้

Edit parameter translations

See also

แก้