Bản mẫu:Long ton/doc

Bách khoa toàn thư mở Wikipedia

Cách sử dụng[sửa mã nguồn]

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.

Cú pháp[sửa mã nguồn]

  • {{long ton |tons |cwt |qr |lb }}
  • {{long ton |35   |4   |2  |1  }}
35  tấn Anh 4  tạ 2  qr 1  lb (78.905 lb hoặc 35,791 t)
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 }}
35  tấn Anh 4  tạ 2  qr 1  lb (78.905 lb hoặc 35,791 t)

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 }}
100  tạ dài (11.200 lb hoặc 5.100 kg)
  • {{long ton | |100 |lk=on }}
100  tạ dài (11.200 lb hoặc 5.100 kg)
Tên đơn vị hoặc biểu tượng

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).

Làm tròn[sửa mã nguồn]

Làm tròn phụ thuộc vào đầu vào.

  • 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.

Hiển thị[sửa mã nguồn]

Bên trong dấu ngoặc ngữ pháp, sử dụng disp=or hoặc disp=sqbr:

A replacement ring of ten bells (tenor {{long ton||18|1|2|disp=or}})

đưa cho: "A replacement ring of ten bells (tenor 18 tạ dài 1 qr 2 lb; 2.046 lb hoặc 928 kg)"

A replacement ring of ten bells (tenor {{long ton||18|1|2|disp=sqbr}})

đưa cho: "A replacement ring of ten bells (tenor 18 tạ dài 1 qr 2 lb [2.046 lb hoặc 928 kg])"

Trong bảng[sửa mã nguồn]

Sử dụng disp=table trong bảng.

 {| class="wikitable"
 |-
 ! rowspan=2| Số
 ! rowspan=2| Ngày
 ! rowspan=2| Người sáng tạo
 ! colspan=3| Khối lượng
 |-
 ![[tấn (Anh)|thước đo dài]]
 !lb
 !kg
 |-
 | 1 || 1891 || Mears & Stainbank
 |{{long ton||7|3|12|disp=table}}
 |-
 | 2 || 1891 || Mears & Stainbank
 |{{long ton||9|0|2|disp=table}}
 |-
 | 3 || 1757 || Abel Rudhall
 |{{long ton||10|0|0|disp=table}}
 |}
đưa cho
Số Ngày Người sáng tạo Khối lượng
thước đo dài lb kg
1 1891 Mears & Stainbank 7 tạ dài 3 qr 12 lb 880 399
2 1891 Mears & Stainbank 9 tạ dài 0 qr  2 lb 1.010 458
3 1757 Abel Rudhall 10 tạ dài 0 qr  0 lb 1.120 508

Tham khảo và ghi chú cuối trang[sửa mã nguồn]

Sử dụng ref= để thêm tham khảo hoặc ghi chú cuối trang.

{{long ton|3|18|1|2|ref=<ref>some source</ref>}}

đưa cho: "3 tấn Anh 18 tạ 1 qr 2 lb[1] (8.766 lb hoặc 3,976 t)"
  1. ^ some source

Các ví dụ[sửa mã nguồn]

Cho ví dụ:

  • Locomotive weight: {{long ton|35|4}}.
đưa cho: "Locomotive weight: 35 tấn Anh 4 tạ (78.800 lb hoặc 35,8 t)."
  • Locomotive weight: {{long ton|35|4|2}}.
đưa cho: "Locomotive weight: 35 tấn Anh 4 tạ 2 qr (78.900 lb hoặc 35,79 t)."
  • Locomotive weight: {{long ton|35|4|2|lk=on}}.
đưa cho: "Locomotive weight: 35 tấn Anh 4 tạ 2 qr (78.900 lb hoặc 35,79 t)."
  • Locomotive weight: {{long ton|35|4|2|lk=cwt}}.
đưa cho: "Locomotive weight: 35 tấn Anh 4 tạ 2 qr (78.900 lb hoặc 35,79 t)."
  • Locomotive weight: {{long ton|35|4|2|lk=on}}.
đưa cho: "Locomotive weight: 35 tấn Anh 4 tạ 2 qr (78.900 lb hoặc 35,79 t)."
  • The old tenor weighed {{long ton||21|2|12}}.
đưa cho: "The old tenor weighed 21 tạ dài 2 qr 12 lb (2.420 lb hoặc 1.098 kg)."
  • The recast tenor now weighs {{long ton|0|20|3|7|lk=on}}.
đưa cho: "The recast tenor now weighs 20 tạ dài 3 qr 7 lb (2.331 lb hoặc 1.057 kg)."

Bảng chuyển đổi[sửa mã nguồn]

Bảng đơn vị khối lượng
Đơn vị Giá trị
tương đối
Giá trị
mét
Ghi chú
dram hoặc drachm (dr) 1256 1,772 g 116 oz
ounce (oz) 116 28,35 g 16 dr
pound (lb) 1 ≈ 453,6 g 16 oz
stone (st) 14 ≈ 6,350 kg 12 qr
quarter (qr) 28 ≈ 12,70 kg 2 st
hundredweight (cwt) 112 ≈ 50,80 kg 4 qr
ton (t)
hoặc
long ton (l. tn.)
2,240 ≈ 1.016 kg 20 cwt