ผลต่างระหว่างรุ่นของ "แม่แบบ:หมวดหมู่ของฉบับร่าง/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
พารามิเตอร์ | คำอธิบาย | ชนิด | สถานะ | |
---|---|---|---|---|
รายการหมวดหมู่ | 1 | ไม่มีคำอธิบาย
| เนื้อหา | จำเป็น |