ผลต่างระหว่างรุ่นของ "แม่แบบ:หมวดหมู่ของฉบับร่าง/doc"

เนื้อหาที่ลบ เนื้อหาที่เพิ่ม
Patsagorn Y. (คุย | ส่วนร่วม)
หน้าใหม่: {{Documentation subpage}} {{lua|Module:String}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> This template can be used when non-article pages like drafts and user pages have categories meant for articles. The categories will be displayed but the page will not be added to the categories. If the page is moved to mainspace then the categories will automatically work...
(ไม่แตกต่าง)

รุ่นแก้ไขเมื่อ 14:32, 10 กรกฎาคม 2564

This template can be used when non-article pages like drafts and user pages have categories meant for articles. The categories will be displayed but the page will not be added to the categories. If the page is moved to mainspace then the categories will automatically work as normal but the template should be removed.

Usage

Wrap categories in this code:

{{Draft categories|1=
...
}}

Sort keys and leading colons are allowed in the categories. Only use this template around a list of categories and not around a whole page or transclusion. {{Suppress categories}} can be used for that.

Tracking category

The category หมวดหมู่:Articles using draft categories tracks pages that are using the template in the main namespace. This template should be removed from those articles.

Example

{{Draft categories|1=
[[Category:Star Wars characters| ]]
[[Category:Star Wars]]
[[Category:Star Wars lists|Characters]]
[[:Category:Lists of Disney characters]]
[[:Category:Lists of fictional military personnel|Star Wars]]
}}

The output looks similar to the real display of categories on normal pages. The above produces:


TemplateData

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

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

Stores and displays article categories in drafts without adding them to the category

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

This template prefers block formatting of parameters.

พารามิเตอร์คำอธิบายชนิดสถานะ
รายการหมวดหมู่1

ไม่มีคำอธิบาย

ตัวอย่าง
[[หมวดหมู่:Example 1]]
เนื้อหาจำเป็น