Jump to content

Template:Dist: Difference between revisions

mentioned "po" and special ft+in conversion in docs
m (linked to Temp, the other conversion template)
(mentioned "po" and special ft+in conversion in docs)
Line 10: Line 10:
| {{#expr:{{#ifeq:{{{2|}}}|in|1|0}} and {{#ifeq:{{{3|}}}|ft|1|0}} }} = {{#ifeq:{{{po|}}}|yes||{{{1|}}} in (}}{{#expr:trunc ({{{1|}}} / 12.000) }} ft {{#expr:{{{1|}}} mod 12}} in{{#ifeq:{{{po|}}}|yes||)}}
| {{#expr:{{#ifeq:{{{2|}}}|in|1|0}} and {{#ifeq:{{{3|}}}|ft|1|0}} }} = {{#ifeq:{{{po|}}}|yes||{{{1|}}} in (}}{{#expr:trunc ({{{1|}}} / 12.000) }} ft {{#expr:{{{1|}}} mod 12}} in{{#ifeq:{{{po|}}}|yes||)}}
| #default = '''<span style="color:red">(error from Template:Dist: unsupported conversion)</span>'''
| #default = '''<span style="color:red">(error from Template:Dist: unsupported conversion)</span>'''
}}</includeonly><noinclude>Call this template to convert between metric and imperial units of length. Both the original and converted length will be displayed, with the unit you supplied coming first. See [[Template:Temp]] for a temperature conversion template.
}}</includeonly>
<noinclude>Call this template to convert between metric and imperial units of length. Both the original and converted length will be displayed, with the unit you supplied coming first, or only the converted length if you use the "po" parameter (see {{SectionLink||Display}}). The template can also convert a figure in inches to feet and inches.
 
See [[Template:Temp]] for a temperature conversion template.


==Supported conversions==
==Supported conversions==