Documentation icon คู่มือการใช้งานแม่แบบ[ดู] [แก้] [ประวัติ] [ล้างแคช]

การใช้งาน แก้

ตัวอย่าง แก้

โค้ด ผลลัพธ์
m
{{height|m=1.77}} 1.77 เมตร (5 ฟุต 9 12 นิ้ว)
{{height|metres=1.77}} 1.77 เมตร (5 ฟุต 9 12 นิ้ว)
{{height|meters=1.77|abbr=no}} 1.77 เมตร (5 ฟุต 9 12 นิ้ว)
{{height|m=1.77|abbr=mos}} 1.77 เมตร (5 ฟุต 9 12 นิ้ว)
{{height|m=1.77|frac=16}} 1.77 เมตร (5 ฟุต 9 1116 นิ้ว)
{{height|m=1.77|precision=0}} 1.77 เมตร (5 ฟุต 10 นิ้ว)*
cm
{{height|cm=177}} 177 เซนติเมตร (5 ฟุต 9 12 นิ้ว)
{{height|centimetres=177}} 177 เซนติเมตร (5 ฟุต 9 12 นิ้ว)
{{height|centimeter=177|abbr=no}} 177 เซนติเมตร (5 ฟุต 9 12 นิ้ว)
{{height|cm=177|abbr=mos}} 177 เซนติเมตร (5 ฟุต 9 12 นิ้ว)
{{height|cm=177|frac=16}} 177 เซนติเมตร (5 ฟุต 9 1116 นิ้ว)
{{height|cm=177|precision=0}} 177 เซนติเมตร (5 ฟุต 10 นิ้ว)*
ft และ in
{{height|ft=6|in=1}} 6 ฟุต 1 นิ้ว (1.85 เมตร)
{{height|ft=6|in=1|out=cm}} 6 ฟุต 1 นิ้ว (185 เซนติเมตร)
{{height|ft=6|in=1|precision=1}} 6 ฟุต 1 นิ้ว (1.9 เมตร)
{{height|ft=6|in=1|precision=-1|out=cm}} 6 ฟุต 1 นิ้ว (190 เซนติเมตร)
{{height|feet=6|inches=1}} 6 ฟุต 1 นิ้ว (1.85 เมตร)
{{height|feet=6|inches=1|out=cm}} 6 ฟุต 1 นิ้ว (185 เซนติเมตร)
{{height|ft=6|in=1|abbr=no}} 6 ฟุต 1 นิ้ว (1.85 เมตร)
{{height|ft=6|in=1|abbr=no|out=cm}} 6 ฟุต 1 นิ้ว (185 เซนติเมตร)
{{height|ft=6|in=1|abbr=mos}} 6 ฟุต 1 นิ้ว (1.85 เมตร)
{{height|ft=6|in=1|abbr=mos|out=cm}} 6 ฟุต 1 นิ้ว (185 เซนติเมตร)
{{height|ft=5|in=7+1/2}} 5 ฟุต 7 12 นิ้ว (1.71 เมตร)
{{height|ft=5|in=7+1/2|out=cm}} 5 ฟุต 7 12 นิ้ว (171 เซนติเมตร)
{{height|ft=5|in=7+1/2|precision=1}} 5 ฟุต 7 12 นิ้ว (1.7 เมตร)
{{height|ft=5|in=7+1/2|precision=1|out=cm}} 5 ฟุต 7 12 นิ้ว (171.5 เซนติเมตร)
{{height|ft=5|in=7+1/2|precision=-1|out=cm}} 5 ฟุต 7 12 นิ้ว (170 เซนติเมตร)
{{height|ft=5|in=7+1/2|precision=3}} 5 ฟุต 7 12 นิ้ว (1.715 เมตร)
ft
{{height|ft=6}} 6 ฟุต 0 นิ้ว (1.83 เมตร)
{{height|ft=6|out=cm}} 6 ฟุต 0 นิ้ว (183 เซนติเมตร)
{{height|ft=6.5}} 6.5 ฟุต 0 นิ้ว (1.98 เมตร)
{{height|ft=6.5|out=cm}} 6.5 ฟุต 0 นิ้ว (198 เซนติเมตร)
{{height|ft=6+1/2}} 6 12 ฟุต 0 นิ้ว (1.98 เมตร)
{{height|ft=6+1/2|out=cm}} 6 12 ฟุต 0 นิ้ว (198 เซนติเมตร)
in
{{height|in=10}} 0 ฟุต 10 นิ้ว (0.25 เมตร)
{{height|in=10|out=cm}} 0 ฟุต 10 นิ้ว (25 เซนติเมตร)
{{height|in=10.5}} 0 ฟุต 10.5 นิ้ว (0.27 เมตร)
{{height|in=10.5|out=cm}} 0 ฟุต 10.5 นิ้ว (27 เซนติเมตร)
{{height|in=10+1/2}} 0 ฟุต 10 12 นิ้ว (0.27 เมตร)
{{height|in=10+1/2|out=cm}} 0 ฟุต 10 12 นิ้ว (27 เซนติเมตร)
errors
{{height|cm=200|in=2|precision=0}} Error: please specify height using only one type of units
{{height|cm=177|frac=0}} 177 เซนติเมตร (5 ฟุต 9.7 นิ้ว)*
{{height|ft=5|in={{frac|7|1|2}}}} [convert: %s]%s
{{height|ft=5|in={{frac|7|1|2}}}} [convert: %s]%s
{{height|ft=5|in=7 1/2}} [convert: %s]%s
{{height|ft=5|in=7_1/2}} [convert: %s]%s
{{height|ft=5|in=7-1/2}} [convert: %s]%s
{{height|ft=5|in=7½}} [convert: %s]%s
หน่วยที่ไม่รองรับ
{{height|mm=2000}}
{{height|dm=20}}
{{height|'=6|"=1}}
{{height|′=6|″=1}}
{{height|hand=20}}
{{height|yard=2}}
  • m สำหรับ เมตร
  • cm สำหรับ เซนติเมตร
  • ft สำหรับ ฟุต
  • in สำหรับ นิ้ว

ข้อมูลแม่แบบ แก้

แม่แบบนี้มีไว้สำหรับการแปลงความสูงที่ระบุเป็นเมตรหรือฟุตและนิ้ว

พารามิเตอร์แม่แบบ[แก้ไขข้อมูลแม่แบบ]

พารามิเตอร์คำอธิบายชนิดสถานะ
Metresm metre metres meter meters

The height in metres. Do not use if feet and inches are specified.

จำนวนเลือกได้
Centimetrescm centimetre centimetres centimeter centimeters

The height in centimetres. Do not use if feet and inches are specified.

จำนวนเลือกได้
Feetft foot feet

The feet part of the height in feet and inches. Do not use if centimetres are specified.

จำนวนเลือกได้
Inchesin inch inches

The inches part of the height in feet and inches (optional). Do not use if centimetres are specified. Fractions are supported in the form u+n/d.

จำนวนเลือกได้
Precision of converted valueprecision

The amount of decimal places to display the converted value to. Defaults to 2 for feet and inches to metres and to 1 for metres/centimetres to feet and inches.

จำนวนเลือกได้
Fraction denominatorfrac

Shows result as a fraction. The number in this parameter is the denominator of the fraction. Used only for metres/centimetres to feet and inches. Set to "10" for decimals. Defaults to 2 (halves).

จำนวนเลือกได้
Abbreviation styleabbr

Changes abbreviation style. Set to "yes" for all units to be abbreviated (default), "no" for all to be spelled out, or "mos" for the units being converted to be spelled out and the converted units to be abbreviated.

สตริงเลือกได้
Unit linkingwiki

Changes whether units are linked. Set to "no" to not link units (default) or "yes" to link units.

สตริงเลือกได้
Output formatout

Changes output format of conversion. Set to "cm" with input values in feet and inches to output the conversion as centimetres. No other options currently exist and the template ignores anything other than "cm".

สตริงเลือกได้

หมวดหมู่ติดตาม แก้

ดูเพิ่ม แก้

  • {{convert}}
    • {{convert|1.82|m|ftin|frac=4}} → 1.82 เมตร (5 ฟุต 11 34 นิ้ว)
    • {{convert|182|cm|ftin|frac=4}} → 182 เซนติเมตร (5 ฟุต 11 34 นิ้ว)
    • {{convert|5|ft|11+3/4|in|m|2}} → 5 ฟุต 11 34 นิ้ว (1.82 เมตร)
    • {{convert|5|ft|11+3/4|in|cm|0|abbr=on}} → 5 ft 11 34 in (182 ซm)