แม่แบบ:Long ton
การใช้งาน[แก้]
This template is intended to allow entry of imperial weights (Avoirdupois), measured in tons, hundredweights, quarters and/or pounds (ton, cwt, qr and/or lb) and provide a conversion into pounds and into tonnes (metric tons) or kilograms (if the first parameter is blank or zero).
This format is traditional for the specification of locomotive and bells cast manufactured or used in the UK and some other Commonwealth countries. See Dove's Bellringers' Guide.
Syntax[แก้]
{{long ton |tons |cwt |qr |lb }}
{{long ton |35 |4 |2 |1 }}
→
- To link the "long" unit to article Long ton use
|lk=on
:
{{long ton |tons |cwt |qr |lb |lk=on }}
{{long ton |35 |4 |2 |1 |lk=on }}
→
Only the second parameter, the number of cwt, is required; all the others are optional. Note that the first parameter must be empty then.
{{long ton | |cwt }}
{{long ton | |100 }}
→
{{long ton | |100 |lk=on }}
→
- Unit names or symbols
There is no option to write full names of the units. The units are written: long ton[s], [long] cwt, qr, lb
. (Where {{convert}} has |abbr=off/on
).
Rounding[แก้]
Rounding depends on input.
- If pounds are specified in input, the output value for pounds will be given to the nearest pound and the metric conversion will be to the nearest kilogram.
- If pounds are not specified in input but quarters are, the output value for pounds will be given to the nearest 10 pounds and the metric conversion will be to the nearest 10 kilograms.
- If neither pounds nor quarters are specified in input, the output value for pounds will be given to the nearest 100 pounds and the metric conversion will be to the nearest 100 kilograms.
Display[แก้]
Inside grammatical brackets, use disp=or
or disp=sqbr
:
A replacement ring of ten bells (tenor {{long ton||18|1|2|disp=or}})
- gives: "A replacement ring of ten bells (tenor แม่แบบ:Long ton/kg or)"
A replacement ring of ten bells (tenor {{long ton||18|1|2|disp=sqbr}})
- gives: "A replacement ring of ten bells (tenor แม่แบบ:Long ton/kg sqbr)"
In tables[แก้]
Use disp=table
in tables.
{| class="wikitable" |- ! rowspan=2| Number ! rowspan=2| Date ! rowspan=2| Maker ! colspan=3| Mass |- ![[long ton|long measure]] !lb !kg |- | 1st || 1891 || Mears & Stainbank |{{long ton||7|3|12|disp=table}} |- | 2nd || 1891 || Mears & Stainbank |{{long ton||9|0|2|disp=table}} |- |3rd || 1757 || Abel Rudhall |{{long ton||10|0|0|disp=table}} |}
- gives
Number | Date | Maker | Mass | ||
---|---|---|---|---|---|
long measure | lb | kg | |||
1st | 1891 | Mears & Stainbank | แม่แบบ:Long ton/kg table | ||
2nd | 1891 | Mears & Stainbank | แม่แบบ:Long ton/kg table | ||
3rd | 1757 | Abel Rudhall | แม่แบบ:Long ton/kg table |
References and footnotes[แก้]
Use ref=
to add a reference or footnote.
{{long ton|3|18|1|2|ref=<ref>some source</ref>}}
- gives: "แม่แบบ:Long ton/t b"
Examples[แก้]
For example:
Locomotive weight: {{long ton|35|4}}.
- gives: "Locomotive weight: แม่แบบ:Long ton/t b."
Locomotive weight: {{long ton|35|4|2}}.
- gives: "Locomotive weight: แม่แบบ:Long ton/t b."
Locomotive weight: {{long ton|35|4|2|lk=on}}.
- gives: "Locomotive weight: แม่แบบ:Long ton/t b."
Locomotive weight: {{long ton|35|4|2|lk=cwt}}.
- gives: "Locomotive weight: แม่แบบ:Long ton/t b."
Locomotive weight: {{long ton|35|4|2|lk=on}}.
- gives: "Locomotive weight: แม่แบบ:Long ton/t b."
The old tenor weighed {{long ton||21|2|12}}.
- gives: "The old tenor weighed แม่แบบ:Long ton/kg b."
The recast tenor now weighs {{long ton|0|20|3|7|lk=on}}.
- gives: "The recast tenor now weighs แม่แบบ:Long ton/kg b."
Conversion table[แก้]
Unit | Relative value |
Metric value |
Notes |
---|---|---|---|
dram or drachm (dr) | 1256 | ≈ 1.772 กรัม | 116 oz |
ounce (oz) | 116 | ≈ 28.35 กรัม | 16 dr |
pound (lb) | 1 | ≈ 453.6 กรัม | 16 oz |
stone (st) | 14 | ≈ 6.350 กิโลกรัม | 12 qr |
quarter (qr) | 28 | ≈ 12.70 กิโลกรัม | 2 st |
hundredweight (cwt) | 112 | ≈ 50.80 กิโลกรัม | 4 qr |
ton (t) or long ton (l. tn.) |
2,240 | ≈ 1,016 กิโลกรัม | 20 cwt |
Template Data[แก้]
ข้อมูลแม่แบบสำหรับ Long ton (ยังไม่มีการตรวจสอบ)
ไม่มีคำอธิบาย
พารามิเตอร์ | คำอธิบาย | ชนิด | สถานะ | |
---|---|---|---|---|
1 | 1 | ไม่มีคำอธิบาย | ไม่ทราบชนิด | เลือกได้ |
2 | 2 | ไม่มีคำอธิบาย | ไม่ทราบชนิด | เลือกได้ |
3 | 3 | ไม่มีคำอธิบาย | ไม่ทราบชนิด | เลือกได้ |
4 | 4 | ไม่มีคำอธิบาย | ไม่ทราบชนิด | เลือกได้ |
disp | disp | ไม่มีคำอธิบาย | ไม่ทราบชนิด | เลือกได้ |
lk | lk | ไม่มีคำอธิบาย | ไม่ทราบชนิด | เลือกได้ |
ref | ref | ไม่มีคำอธิบาย | ไม่ทราบชนิด | เลือกได้ |
ดูเพิ่ม[แก้]
คู่มือการใช้งานที่ปรากฏด้านบนนี้ดึงมาจาก แม่แบบ:Long ton/doc (แก้ | ประวัติ) ผู้เขียนสามารถทำการทดลองได้ที่กระบะทราย (สร้าง | คัดลอก) และชุดทดสอบ (สร้าง) ของแม่แบบนี้ โปรดเพิ่มหมวดหมู่ไปที่หน้าย่อย /doc หน้าย่อยของแม่แบบนี้ |