แม่แบบ:หลัก/testcases
นี่คือหน้าชุดทดสอบแม่แบบของกระบะทรายของ แม่แบบ:หลัก ล้างแคชหน้านี้เพื่อปรับปรุงตัวอย่าง หากแม่แบบซับซ้อนมีตัวอย่างจำนวนมาก อาจทำให้หน้าแสดงผลผิดพลาดได้เนื่องจากข้อจำกัดของมีเดียวิกิ โปรดดูคอมเมนต์ของ HTML ส่วน "NewPP limit report" คุณสามารถใช้ Special:ExpandTemplates ในการดูตรวจดูผลลัพธ์จากการใช้แม่แบบได้เช่นเดียวกัน คุณสามารถทดสอบดูว่าแม่แบบนี้แสดงผลแตกต่างกันในแต่ละสกินอย่างไรโดยเข้าลิงก์เหล่านี้: |
The first output example in each pair is the main template, and second is the sandbox.
Parameter category[แก้]
{{หลัก|category=false}}
→ ข้อผิดพลาด: ไม่ได้ระบุชื่อหน้า (ช่วยเหลือ){{หลัก/sandbox|category=false}}
→ ข้อผิดพลาด: ไม่ได้ระบุชื่อหน้า (ช่วยเหลือ)
Positional parameters[แก้]
{{หลัก|John}}
→{{หลัก/sandbox|John}}
→
{{หลัก|John|George}}
→{{หลัก/sandbox|John|George}}
→
{{หลัก|John|George|Ringo}}
→{{หลัก/sandbox|John|George|Ringo}}
→
Other namespaces links[แก้]
{{หลัก|:Category:John}}
→{{หลัก/sandbox|:Category:John}}
→
{{หลัก|Template:John|George}}
→{{หลัก/sandbox|Template:John|George}}
→
{{หลัก|Talk:John|George|Ringo}}
→{{หลัก/sandbox|Talk:John|George|Ringo}}
→
With anchor links[แก้]
{{หลัก|Lion#Etymology}}
→{{หลัก/sandbox|Lion#Etymology}}
→
Missing positional parameter[แก้]
{{หลัก|John|}}
→{{หลัก/sandbox|John|}}
→
Parameter l2[แก้]
{{หลัก|History of the United States|RMS Titanic|WindSeeker|l2=RMS ''Titanic''}}
→{{หลัก/sandbox|History of the United States|RMS Titanic|WindSeeker|l2=RMS ''Titanic''}}
→