• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Long ton/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Long ton
This is the template sandbox page for Template:Long ton (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]

Contents

  • 1 Usage
    • 1.1 Syntax
    • 1.2 Rounding
    • 1.3 Display
    • 1.4 In tables
    • 1.5 References and footnotes
    • 1.6 Examples
  • 2 Conversion table
  • 3 Template Data
  • 4 See also

Usage

edit

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

edit
  • {{long ton |tons |cwt |qr |lb }}
  • {{long ton |35 |4 |2 |1 }} →
35 long tons 4 cwt 2 qr 1 lb (78,905 lb or 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 long tons 4 cwt 2 qr 1 lb (78,905 lb or 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 long cwt (11,200 lb or 5,100 kg)
  • {{long ton | |100 |lk=on }} →
100 long cwt (11,200 lb or 5,100 kg)
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

edit

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

edit

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 18 long cwt 1 qr 2 lb; 2,046 lb or 928 kg)"

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

gives: "A replacement ring of ten bells (tenor 18 long cwt 1 qr 2 lb [2,046 lb or 928 kg])"

In tables

edit

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 7 long cwt 3 qr 12 lb 880 399
2nd 1891 Mears & Stainbank 9 long cwt 0 qr  2 lb 1,010 458
3rd 1757 Abel Rudhall 10 long cwt 0 qr  0 lb 1,120 508

References and footnotes

edit

Use ref= to add a reference or footnote.

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

gives: "3 long tons 18 cwt 1 qr 2 lb[1] (8,766 lb or 3.976 t)"
  1. ^ some source

Examples

edit

For example:

  • Locomotive weight: {{long ton|35|4}}.
gives: "Locomotive weight: 35 long tons 4 cwt (78,800 lb or 35.8 t)."
  • Locomotive weight: {{long ton|35|4|2}}.
gives: "Locomotive weight: 35 long tons 4 cwt 2 qr (78,900 lb or 35.79 t)."
  • Locomotive weight: {{long ton|35|4|2|lk=on}}.
gives: "Locomotive weight: 35 long tons 4 cwt 2 qr (78,900 lb or 35.79 t)."
  • Locomotive weight: {{long ton|35|4|2|lk=cwt}}.
gives: "Locomotive weight: 35 long tons 4 cwt 2 qr (78,900 lb or 35.79 t)."
  • Locomotive weight: {{long ton|35|4|2|lk=on}}.
gives: "Locomotive weight: 35 long tons 4 cwt 2 qr (78,900 lb or 35.79 t)."
  • The old tenor weighed {{long ton||21|2|12}}.
gives: "The old tenor weighed 21 long cwt 2 qr 12 lb (2,420 lb or 1,098 kg)."
  • The recast tenor now weighs {{long ton|0|20|3|7|lk=on}}.
gives: "The recast tenor now weighs 20 long cwt 3 qr 7 lb (2,331 lb or 1,057 kg)."

Conversion table

edit
Table of mass units
Unit Relative
value
Metric
value
Notes
dram or drachm (dr) 1⁄256 ≈ 1.772 g 1⁄16 oz
ounce (oz) 1⁄16 ≈ 28.35 g 16 dr
pound (lb) 1 ≈ 453.6 g 16 oz
stone (st) 14 ≈ 6.350 kg 1⁄2 qr
quarter (qr) 28 ≈ 12.70 kg 2 st
hundredweight (cwt) 112 ≈ 50.80 kg 4 qr
ton (t)
or
long ton (l. tn.)
2,240 ≈ 1,016 kg 20 cwt

Template Data

edit
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Long ton in articles based on its TemplateData.

TemplateData for Long ton

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
11

no description

Unknownoptional
22

no description

Unknownoptional
33

no description

Unknownoptional
44

no description

Unknownoptional
dispdisp

no description

Unknownoptional
lklk

no description

Unknownoptional
refref

no description

Unknownoptional

See also

edit
  • v
  • t
  • e
Math templates
  • Functions
  • Numeral systems
Functions
  • elementary arithmetic
  • precision
  • val (value formatting)
  • percentage
Numeral systems
  • {{#invoke:BaseConvert|XtoY}}
  • binary
  • decimal2Base
  • hex2dec
  • hexadecimal
  • octal
  • quaternary
  • rn
  • roman
  • ternary
  • vigesimal
Conversions
convert many units (see: list)
cvt abbreviated {{convert}}
convinfobox {{convert}} for infoboxes
bbl to t barrels of oil to tonnes
long ton long hundredweights, quarters and pounds to kilograms;
long tons and hundredweights to pounds and metric tons
miles-chains miles and chains to kilometres linking "chains"
decdeg degrees, minutes, and seconds to decimal degrees
deg2dms decimal degrees to degrees, minutes, and seconds
deg2hms decimal degrees to hour angle (in hours, minutes, and seconds)
hms2deg hour angle (in hours, minutes, and seconds) to decimal degrees
inflation calculate inflation of Consumer Price Index-related prices
pop density population density in an area
track gauge railway track gauges
Notation and formatting
bigmath bigger font to match TeX \displaystyle (standalone formulas only) math short text-based formulas
mathcal [mathematical] calligraphic font; alternative to LaTeX \mathcal{...} tombstone symbol indicating the end of a proof
mvar individual italicized maths variables in normal text val measurement values, uncertainties and units
  • overline
  • underline
a line set above/below a sequence of characters vec various overarrows, underarrows, etc.
abs absolute values (paired vertical lines)
  • langle
  • rangle
  • angbr
  • angular brackets
  • bra-ket
  • braket
  • bra
  • ket
  • bra–ket notation
  • ldelim
  • rdelim
  • multiline delimiters (2–5 lines inclusive)
    ceil, floor calculations :mw:Help:#expr; formatting indicators ⌈3.14⌉, ⌊3.14⌋ (no calculation performed) pars parentheses that can be resized (∑)
    fraction slant fractions 3⁄5 (not for maths/science articles; use standing or upright fractions {{sfrac}} instead) sfrac "standing" or upright fractions ⁠3/5⁠ (use in maths/science articles instead of{{fraction}})
    intmath integral symbols
  • sub
  • sup
  • su
  • subscripts and superscripts
  • overset
  • underset
  • arbitrary characters/diacritics set above/below one another    
    tmath Wrap TeX in <math> tags
  • Boxes
  • Tags
  • Notices
  • BoxesTags
    • arithmetic operations
    • calculus
    • Infobox mathematical function
    • functions
    • metricate
    • undue precision
    • units attention
    • Category
    • Module:Math
    The above documentation is transcluded from Template:Long ton/doc. (edit | history)
    Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
    Add categories to the /doc subpage. Subpages of this template.
    Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Long_ton/sandbox&oldid=1062165306"
    Last edited on 26 December 2021, at 19:00

    Languages

        This page is not available in other languages.

        Wikipedia
        • Wikimedia Foundation
        • Powered by MediaWiki
        • This page was last edited on 26 December 2021, at 19:00 (UTC).
        • Content is available under CC BY-SA 4.0 unless otherwise noted.
        • Privacy policy
        • About Wikipedia
        • Disclaimers
        • Contact Wikipedia
        • Code of Conduct
        • Developers
        • Statistics
        • Cookie statement
        • Terms of Use
        • Desktop