แม่แบบ:หลัก
| มีการใช้แม่แบบนี้ใน 11,000+ หน้าและการแก้ไขอาจทำให้เกิดผลกระทบหรือสังเกตเห็นได้ ควรทดสอบการเปลี่ยนแปลงในกระบะทราย หรือหน้าทดสอบ หรือในหน้าย่อยผู้ใช้ของคุณเอง อนึ่ง อภิปรายเกี่ยวกับการแก้ไขแม่แบบได้ที่หน้าอภิปรายก่อนที่จะนำไปใช้ |
| แม่แบบนี้ใช้ลูอา |
แม่แบบนี้ใช้สำหรับระบุชื่อบทความหลักที่เกี่ยวข้องภายในหัวข้อย่อยของบทความ ซึ่งเนื้อหาในหัวข้อนั้นเป็นการสรุปจากบทความปลายทาง หรือใช้เมื่อแยกหัวข้อในบทความเดิมออกไปเป็นบทความใหม่
การใช้งาน
ใส่โค้ดดังนี้ถัดจากชื่อหัวข้อ
{{หลัก|...}}
พารามิเตอร์ต่อท้ายสามารถใส่ได้ถึง 10 ชื่อ โดยใช้ | เป็นตัวแบ่ง และชื่อแรกจำเป็นต้องใส่
ตัวอย่าง
{{หลัก|ดาราศาสตร์}}
จะให้ผลเป็น
หรืออีกตัวอย่างหนึ่ง
{{หลัก|วิทยาศาสตร์ดาวเคราะห์|ดาราศาสตร์ดาราจักร|ดาราศาสตร์ดาราจักรนอกระบบ}}
จะให้ผลเป็น
|
ตัวอย่าง
{{หลัก}}→ ข้อผิดพลาด: ไม่ได้ระบุชื่อหน้า (ช่วยเหลือ){{หลัก|บทความ}}→{{หลัก|บทความ#ส่วน}}→{{หลัก|บทความ#ส่วน|l1=ข้อความกำหนดเอง}}→{{หลัก|บทความ 1|บทความ 2|บทความ 3}}→{{หลัก|บทความ 1|l1=ข้อความกำหนดเอง 1|บทความ 2|l2=ข้อความกำหนดเอง 2}}→{{หลัก|(15760) 1992 QB1|l1={{mp|(15760) 1992 QB|1}}}}→
ข้อมูลแม่แบบ
ข้อมูลแม่แบบสำหรับ หลัก
This template is used after the heading of a section, to link to a sub-article (or sub-articles) that is entirely about the topic of the section. The template will display, in italics, "Main article: Article 1, Article 2 and Article 3"
| พารามิเตอร์ | คำอธิบาย | ชนิด | สถานะ | |
|---|---|---|---|---|
| Page 1 | 1 | The name of the first page that you want to link to. If this is not specified, the current page name (with no namespace prefix) is used instead. | ชื่อหน้า | แนะนำ |
| Page 2 | 2 | The name of the second page that you want to link to. | ชื่อหน้า | ไม่บังคับ |
| Page 3 | 3 | The name of the third page that you want to link to. More pages can be added using the parameters "4", "5", etc. | ชื่อหน้า | ไม่บังคับ |
| Label 1 | l1 label 1 | What the first linked page is to be displayed as. | สตริง | ไม่บังคับ |
| Label 2 | l2 label 2 | What the second linked page is to be displayed as. | สตริง | ไม่บังคับ |
| Label 3 | l3 label 3 | What the third linked page is to be displayed as. Other labels can be added by using increasing numbers (starting with "l4" for page 4) as parameter names. | สตริง | ไม่บังคับ |
| Self reference | selfref | Set to "yes" if the template is a self-reference to Wikipedia that would not make sense on mirrors or forks of the Wikipedia site. | ตรรกะ | ไม่บังคับ |
ดูเพิ่ม
- {{ดูเพิ่มที่}}