แม่แบบ:หลัก
![]() | นี่เป็นแม่แบบที่ถูกป้องกันถาวรเนื่องจากมีความเสี่ยงสูง กรุณาอภิปรายการเปลี่ยนแปลงใด ๆ ทางหน้าคุย คุณอาจส่งคำขอแก้ไขไปยังผู้ดูแลระบบเพื่อให้แก้ไขได้หากเป็นการแก้ไขที่ไม่มีการคัดค้านหรือมีความเห็นพ้องสนับสนุน คุณยังสามารถขอให้เลิกป้องกันหน้าได้ |
การใช้งาน
- การใช้งานพื้นฐาน:
{{หลัก|page}}
- พารามิเตอร์ทั้งหมด:
{{หลัก|page1|page2|page3| ... |l1 = label1|l2 = label2|l3 = label3| ... |selfref = yes}}
ข้อมูลแม่แบบ
ข้อมูลแม่แบบสำหรับ หลัก (อาจล้าสมัย)
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. | ตรรกะ | เลือกได้ |
ตัวอย่าง
{{หลัก}}
→ดูบทความหลักที่: หลัก{{หลัก|บทความ}}
→ดูบทความหลักที่: บทความ{{หลัก|บทความ#ส่วน}}
→ดูบทความหลักที่: บทความ § ส่วน{{หลัก|บทความ#ส่วน|l1=ข้อความกำหนดเอง}}
→ดูบทความหลักที่: ข้อความกำหนดเอง{{หลัก|บทความ 1|บทความ 2|บทความ 3}}
→{{หลัก|บทความ 1|l1=ข้อความกำหนดเอง 1|บทความ 2|l2=ข้อความกำหนดเอง 2}}
→ดูบทความหลักที่: ข้อความกำหนดเอง 1 และ ข้อความกำหนดเอง 2{{หลัก|(15760) 1992 QB1|l1={{mp|(15760) 1992 QB|1}}}}
→ดูบทความหลักที่: (15760) 1992 QB1
คู่มือการใช้งานที่ปรากฏด้านบนนี้ดึงมาจาก แม่แบบ:หลัก/doc (แก้ | ประวัติ) ผู้เขียนสามารถทำการทดลองได้ที่กระบะทราย (สร้าง | คัดลอก) และชุดทดสอบ (สร้าง) ของแม่แบบนี้ โปรดเพิ่มหมวดหมู่ไปที่หน้าย่อย /doc หน้าย่อยของแม่แบบนี้ |