แม่แบบ:Country data Siam
Rather than redirecting {{Country data Siam}} to {{Country data Thailand}}, the former template transcludes the latter and passes through all parameters. The linked article will always be "Thailand", but the displayed name is either "Siam" or "Thailand" based on which of the two templates is used, even in templates that usually have a fixed default display name (such as {{flagcountry}} and {{fb}}). This allows for "Siam" to be used in historical contexts without having to also set |name=
. The variants from {{Country data Thailand}} can be used with both templates.
Examples[แก้]
Template | Thailand output |
Siam output
|
---|---|---|
{{flag|THA}} |
ไทย | ไทย |
{{flag|THA}} |
ไทย | ไทย |
{{flagcountry|THA}} |
ไทย | ไทย |
{{flagicon|THA}} |
||
{{bb|THA}} |
ไทย | สยาม |
{{fb|THA}} |
ไทย | สยาม |
Redirects to Template:Country data Thailand[แก้]
Redirects to Template:Country data Siam[แก้]
คู่มือการใช้งานที่ปรากฏด้านบนนี้ดึงมาจาก แม่แบบ:Country data Siam/doc (แก้ | ประวัติ) ผู้เขียนสามารถทำการทดลองได้ที่กระบะทราย (สร้าง | คัดลอก) และชุดทดสอบ (สร้าง) ของแม่แบบนี้ โปรดเพิ่มหมวดหมู่ไปที่หน้าย่อย /doc หน้าย่อยของแม่แบบนี้ |