ผลต่างระหว่างรุ่นของ "แม่แบบ:หลัก"
ลไม่มีความย่อการแก้ไข |
ลไม่มีความย่อการแก้ไข |
||
บรรทัด 1: | บรรทัด 1: | ||
{{#invoke:main|main}}<noinclude> |
|||
{{hatnote|ดูบทความหลักที่ {{#if:{{{2|}}}}} [[{{{1}}}|{{{l1|{{{1}}}}}}]]{{#if:{{{2| }}} |
|||
{{documentation}} |
|||
|{{#if:{{{3|}}}|, | และ }}[[{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}} |
|||
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> |
|||
|{{#if:{{{4|}}}|, | และ }}[[{{{3}}}|{{{l3|{{{3}}}}}}]]}}{{#if:{{{4|}}} |
|||
|{{#if:{{{5|}}}|, | และ }}[[{{{4}}}|{{{l4|{{{4}}}}}}]]}}{{#if:{{{5|}}} |
|||
|{{#if:{{{6|}}}|, | และ }}[[{{{5}}}|{{{l5|{{{5}}}}}}]]}}{{#if:{{{6|}}} |
|||
|{{#if:{{{7|}}}|, | และ }}[[{{{6}}}|{{{l6|{{{6}}}}}}]]}}{{#if:{{{7|}}} |
|||
|{{#if:{{{8|}}}|, | และ }}[[{{{7}}}|{{{l7|{{{7}}}}}}]]}}{{#if:{{{8|}}} |
|||
|{{#if:{{{9|}}}|, | และ }}[[{{{8}}}|{{{l8|{{{8}}}}}}]]}}{{#if:{{{9|}}} |
|||
|{{#if:{{{10|}}}|, | และ }}[[{{{9}}}|{{{l9|{{{9}}}}}}]]}}{{#if:{{{10|}}} |
|||
| และ [[{{{10}}}|{{{l10|{{{10}}}}}}]]}}{{#if:{{{11| }}}|  (พารามิเตอร์มากเกินไปใน {{[[แม่แบบ:บทความหลัก]]}})}}}}<noinclude> |
|||
{{เอกสารกำกับแม่แบบ}} |
|||
</noinclude> |
</noinclude> |
รุ่นแก้ไขเมื่อ 09:30, 11 พฤษภาคม 2557
ข้อผิดพลาด Lua ใน มอดูล:Main บรรทัดที่ 55: attempt to call field 'formatPageTables' (a nil value)
นี่เป็นแม่แบบที่ถูกป้องกันถาวรเนื่องจากมีความเสี่ยงสูง กรุณาอภิปรายการเปลี่ยนแปลงใด ๆ ทางหน้าคุย คุณอาจส่งคำขอแก้ไขไปยังผู้ดูแลระบบเพื่อให้แก้ไขได้หากเป็นการแก้ไขที่ไม่มีการคัดค้านหรือมีความเห็นพ้องสนับสนุน คุณยังสามารถขอให้เลิกป้องกันหน้าได้ |
มีการใช้แม่แบบนี้9,000+ หน้าและการแก้ไขอาจทำให้เกิดผลกระทบหรือสังเกตเห็นได้ ควรทดสอบการเปลี่ยนแปลงในกระบะทราย หรือหน้าทดสอบ หรือในหน้าย่อยผู้ใช้ของคุณเองนอกจากนี้คุณยังสามารถพูดคุยเกี่ยวกับการแก้ไขแม่แบบได้ที่หน้าอภิปราย ก่อนที่จะนำไปใช้ |
แม่แบบนี้ใช้ลูอา |
แม่แบบนี้ใช้สำหรับระบุชื่อบทความหลักที่เกี่ยวข้องภายในหัวข้อย่อยของบทความ ซึ่งเนื้อหาในหัวข้อนั้นเป็นการสรุปจากบทความปลายทาง หรือใช้เมื่อแยกหัวข้อในบทความเดิมออกไปเป็นบทความใหม่
การใช้งาน
ใส่โค้ดดังนี้ถัดจากชื่อหัวข้อ
{{หลัก|...}}
พารามิเตอร์ต่อท้ายสามารถใส่ได้ถึง 10 ชื่อ โดยใช้ |
เป็นตัวแบ่ง และชื่อแรกจำเป็นต้องใส่
ตัวอย่าง
{{หลัก|ดาราศาสตร์}}
จะให้ผลเป็น ข้อผิดพลาด Lua ใน มอดูล:Main บรรทัดที่ 55: attempt to call field 'formatPageTables' (a nil value)
หรืออีกตัวอย่างหนึ่ง
{{หลัก|วิทยาศาสตร์ดาวเคราะห์|ดาราศาสตร์ดาราจักร|ดาราศาสตร์ดาราจักรนอกระบบ}}
จะให้ผลเป็น ข้อผิดพลาด Lua ใน มอดูล:Main บรรทัดที่ 55: attempt to call field 'formatPageTables' (a nil value)
|
ตัวอย่าง
{{หลัก}}
→ ข้อผิดพลาด Lua ใน มอดูล:Main บรรทัดที่ 55: attempt to call field 'formatPageTables' (a nil value){{หลัก|บทความ}}
→ ข้อผิดพลาด Lua ใน มอดูล:Main บรรทัดที่ 55: attempt to call field 'formatPageTables' (a nil value){{หลัก|บทความ#ส่วน}}
→ ข้อผิดพลาด Lua ใน มอดูล:Main บรรทัดที่ 55: attempt to call field 'formatPageTables' (a nil value){{หลัก|บทความ#ส่วน|l1=ข้อความกำหนดเอง}}
→ ข้อผิดพลาด Lua ใน มอดูล:Main บรรทัดที่ 55: attempt to call field 'formatPageTables' (a nil value){{หลัก|บทความ 1|บทความ 2|บทความ 3}}
→ ข้อผิดพลาด Lua ใน มอดูล:Main บรรทัดที่ 55: attempt to call field 'formatPageTables' (a nil value){{หลัก|บทความ 1|l1=ข้อความกำหนดเอง 1|บทความ 2|l2=ข้อความกำหนดเอง 2}}
→ ข้อผิดพลาด Lua ใน มอดูล:Main บรรทัดที่ 55: attempt to call field 'formatPageTables' (a nil value){{หลัก|(15760) 1992 QB1|l1={{mp|(15760) 1992 QB|1}}}}
→ ข้อผิดพลาด Lua ใน มอดูล:Main บรรทัดที่ 55: attempt to call field 'formatPageTables' (a nil value)
ข้อมูลแม่แบบ
ข้อมูลแม่แบบสำหรับ หลัก (อาจล้าสมัย)
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. | ตรรกะ | เลือกได้ |
ดูเพิ่ม
- {{ดูเพิ่มที่}}
คู่มือการใช้งานที่ปรากฏด้านบนนี้ดึงมาจาก แม่แบบ:หลัก/doc (แก้ | ประวัติ) ผู้เขียนสามารถทำการทดลองได้ที่กระบะทราย (แก้ | ดูความแตกต่าง) และชุดทดสอบ (แก้) ของแม่แบบนี้ โปรดเพิ่มหมวดหมู่ไปที่หน้าย่อย /doc หน้าย่อยของแม่แบบนี้ |