Difference between revisions of "Template:Kg to lb"
From Teampedia
(Created page with "{{convert/{{{d}}}|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|s={{{s|}}}|r={{{r}}} |u=kg |n=キログラム |l=キログラム |o=lb |b=1 |j=0-{{{j|0}}}}}<no...") |
m (Zacharycook505-104668625857976836193 moved page Template:Convert/kg to Template:Kg to lb) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | <noinclude> |
− | | | + | {{pp-template|small=yes}} |
− | | | + | ;Usage: |
− | | | + | :<nowiki>{{kg to lb | num | abbr | spell | precision | wiki}}</nowiki> |
− | | | + | |
− | | | + | ;Examples: |
− | + | :''[[WP:MOSNUM#Units of measurement|Manual of Style]] notation'': <nowiki>{{kg to lb|100}}</nowiki> → {{kg to lb|100}} | |
− | [[Category: | + | :''Short notation'': <nowiki>{{kg to lb|100|abbr=yes}}</nowiki> → {{kg to lb|100|abbr=yes}} |
+ | :''Full notation'': <nowiki>{{kg to lb|num=100|abbr=no|spell=Commonwealth|precision=2|wiki=yes}}</nowiki> → {{kg to lb|num=100|abbr=no|spell=Commonwealth|precision=2|wiki=yes}} | ||
+ | |||
+ | ''Italicized'' parameters are optional: | ||
+ | *'''num''' is a required parameter, which specifies the number of kilograms to be converted to pounds. Please do not format this parameter; i.e., use 1234 instead of 1,234. | ||
+ | *'''''abbr''''' can take values of either ''mos'', ''yes'', or ''no''. ''Mos'' will show the names of the units as specified in the [[WP:MOSNUM#Units of measurement|Manual of Style for dates and numbers]] (kilograms, lb); ''yes'' will show the abbreviated names of the units (kg, lb); and ''no'' will show the full names of the units (kilograms, pounds). The default value is ''mos''. | ||
+ | *'''''spell''''' can take values of ''American'' or ''Commonwealth'' and is only meaningful when ''abbr'' is set to ''no''. ''American'' will use "kilograms", and ''Commonwealth''—"kilogrammes". The default value is ''American''. | ||
+ | *'''''precision''''' is the number of decimal digits in the converted value. The default value is 0. | ||
+ | *'''''wiki''''' specifies whether the names of the units should be wikified or not and can take values of either ''yes'' or ''no''. The default value is ''no''. | ||
+ | |||
+ | Capitalization of the parameters is unimportant.</noinclude><includeonly>{{FORMATNUM:{{#if:{{{num|}}}|{{{num}}}|{{{1}}}}}}} {{#ifexpr:({{#ifeq:{{LC:{{{abbr|mos}}}}}|mos|1|0}} OR {{#ifeq:{{LC:{{{abbr|mos}}}}}|no|1|0}})|{{#ifeq:{{LC:{{{spell|american}}}}}|american|{{#ifeq:{{LC:{{{wiki|no}}}}}|yes|[[kilogram]]s|kilograms}}|{{#ifeq:{{LC:{{{wiki|no}}}}}|yes|[[kilogram]]mes|kilogrammes}}}}|{{#ifeq:{{LC:{{{wiki|no}}}}}|yes|[[kilogram|kg]]|kg}}}} ({{FORMATNUM:{{#expr:{{#if:{{{num|}}}|{{{num}}}|{{{1}}}}}/0.45359237 round {{{precision|0}}}}}}} {{#ifeq:{{LC:{{{abbr|mos}}}}}|no|{{#ifeq:{{LC:{{{wiki|no}}}}}|yes|[[pound (mass)|pounds]]|pounds}}|{{#ifeq:{{LC:{{{wiki|no}}}}}|yes|[[pound (mass)|lb]]|lb}}}})</includeonly><noinclude> | ||
+ | ==See also== | ||
+ | *{{tl|kg to st lb}} | ||
+ | *{{tl|lb to kg}} | ||
+ | *{{tl|lb to st lb}} | ||
+ | *{{tl|st lb to kg}} | ||
+ | |||
+ | [[Category:Conversion templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> |
Latest revision as of 13:44, 11 April 2020
- Usage
- {{kg to lb | num | abbr | spell | precision | wiki}}
- Examples
- Manual of Style notation: {{kg to lb|100}} → 100 kilograms (220 lb)
- Short notation: {{kg to lb|100|abbr=yes}} → 100 kg (220 lb)
- Full notation: {{kg to lb|num=100|abbr=no|spell=Commonwealth|precision=2|wiki=yes}} → 100 kilogrammes (220.46 pounds)
Italicized parameters are optional:
- num is a required parameter, which specifies the number of kilograms to be converted to pounds. Please do not format this parameter; i.e., use 1234 instead of 1,234.
- abbr can take values of either mos, yes, or no. Mos will show the names of the units as specified in the Manual of Style for dates and numbers (kilograms, lb); yes will show the abbreviated names of the units (kg, lb); and no will show the full names of the units (kilograms, pounds). The default value is mos.
- spell can take values of American or Commonwealth and is only meaningful when abbr is set to no. American will use "kilograms", and Commonwealth—"kilogrammes". The default value is American.
- precision is the number of decimal digits in the converted value. The default value is 0.
- wiki specifies whether the names of the units should be wikified or not and can take values of either yes or no. The default value is no.
Capitalization of the parameters is unimportant.
See also
- {{kg to st lb}}
- {{lb to kg}}
- {{lb to st lb}}
- {{st lb to kg}}