นี้เป็นแม่แบบย่อยของ } และไม่ควรนำมาใช้โดยตรง มันถูกเรียกว่าตามแม่แบบต่อไปนี้:
Its purpose is to determine whether those templates call one of the subtemplates that displays metric units first (the default):
or one of the subtemplates that displays imperial units (U.S. units) first:
or the following subtemplates if an area is specified in dunams:
{{Infobox settlement/dunam}}
{{Infobox settlement/dunam/mag}}
The template handles up to three unnamed parameters.
unit_pref
in {{Infobox settlement}}
, then passed as pref
to one of three display subtemplates (/areadisp, /densdisp, /lengthdisp
).subdivision_name
in {{Infobox settlement}}
, then passed as name
to one of three display subtemplates./areadisp
subtemplate, which passes the text area
.The default is to display metric units first, so the template only checks these parameters for values that would indicate the need to display non-metric units first:
Imperial, English, UK, US, U.S., US Customary, U.S. Customary, Standard
United Kingdom, [[United Kingdom]], United States, [[United States]], United States of America, [[United States of America]], [[United States|United States of America]]
/areadisp
subtemplate, then it also checks parameter #1 for dunam
(after converting it to lowercase)Code | Result |
---|---|
{{Infobox settlement/pref | | }} | metric |
{{Infobox settlement/pref | Imperial | }} | impus |
{{Infobox settlement/pref | UK | }} | impus |
{{Infobox settlement/pref | US | }} | impus |
{{Infobox settlement/pref | | United Kingdom}} | impus |
{{Infobox settlement/pref | | United States}} | impus |
{{Infobox settlement/pref|Dunam|Other|area}} | dunam |
{{Infobox settlement/pref|Dunam|Other}} | metric |
{{Infobox settlement/pref|Dunam|United Kingdom|area}} In this example, the template never checks for "Dunam" because it previously found that parameter #2 contained the name of a country using imperial units. | impus |
คู่มือการใช้งานที่ปรากฏด้านบนนี้ดึงมาจาก แม่แบบ:กล่องข้อมูล นิคม/คำนำ/doc (แก้ | ประวัติ) ผู้เขียนสามารถทำการทดลองได้ที่กระบะทราย (สร้าง | คัดลอก) และชุดทดสอบ (สร้าง) ของแม่แบบนี้ โปรดเพิ่มหมวดหมู่ไปที่หน้าย่อย /doc หน้าย่อยของแม่แบบนี้ |