Changes

Jump to: navigation, search

Template:Lb to kg

2,194 bytes added, 12:37, 11 April 2020
no edit summary
<noinclude>;Usage::<nowiki>{{lb to kg | num | abbr | spell | precision | wiki}}</nowiki> ;Examples::''[[WP:MOSNUM#Units of measurement|Manual of Style]] notation'':<nowiki>{{convert|100|lb|kg}}</nowiki>&nbsp;&rarr; {{#ifeqconvert|100|lb|kg}}:''Short notation'': <nowiki>{{convert|100|lb|kg|100|abbr=yes}}</nowiki>&nbsp;&rarr; {4{convert|100|lb|kg|100|abbr=yes}}:''Full notation'': <nowiki>{{convert|100|lb|kg|num=100|abbr=no|spell=Commonwealth|precision=2|wiki=yes}}</nowiki>&nbsp;&rarr; {{convert|oz100|lb|kg|num=100|abbr=no|spell=Commonwealth|precision=2|wiki=yes}} ''Italicized'' parameters are optional:*'''num''' is a required parameter, which specifies the number of pounds to be converted to kilograms. 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 andnumbers]] (pounds, kg); ''yes'' will show the abbreviated names of the units (lb, kg); and ''no'' will show the full names of the units (pounds, kilograms). 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''&mdash;"kilogrammes". The default value is ''American''.*'''''precision''''' is the number of decimal digits in the converted value. The default value is&nbsp;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.</oz|noinclude><includeonly>{{FORMATNUM:{d{#if:{{{num|}}}|{{{num}}}|{{{1}}}}}}}&nbsp;{{#ifexpr:({{#ifeq:{{LC:{{{abbr|mos}}}}}|mos|1|0}} OR {{#ifeq:{2{LC:{{{abbr|mos}}}}}|no|1|0}})|{{#ifeq:{3{LC:{{{wiki|no}}}}}|yes|[[pound (mass)|pounds]]|pounds}}|{{#ifeq:{{LC:{{{4wiki|no}}}}}|yes|[[pound (mass)|lb]]|lb}}}} ({{FORMATNUM:{5{#expr:{{#if:{{{num|}}}|{{{6num}}}|{{{1}}}}}*0.45359237 round {{{precision|s=0}}}}}}}&nbsp;{{#ifeq:{s{LC:{{{abbr|mos}}}}}|r=no|{{#ifeq:{r{LC:{{{spell|american}}}}}|d=commonwealth|{{#ifeq:{d{LC:{{{wiki|no}}}}}|u=lbno|n=ポンドkilogrammes|l=ポンド[[kilogram]]mes}}|t=ポンド (質量){{#ifeq:{{LC:{{{wiki|o=kgno}}}}}|b=0.45359237 no|kilograms|[[kilogram]]s}}}}|j=-0.343334259-{{#ifeq:{j{LC:{{{wiki|0no}}}}}|no|kg|[[kilogram|kg]]}}}})</includeonly><noinclude>==See also==*{{tl|convert}} [[Category:Subtemplates of Template ConvertConversion templates|{{PAGENAME}}]]
</noinclude>



Navigation menu