Difference between revisions of "Template:Convert"
From LFS Manual
Jump to navigationJump to search (Created page with "<includeonly>{{#expr: {{{1}}} * 0.621371192 round 3}}</includeonly><noinclude>{{documentation}}</noinclude>") |
m |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#expr: {{{1}}} * 0.621371192 round 3}}</includeonly><noinclude>{{documentation}}</noinclude> | + | <includeonly>{{#expr: |
+ | {{{1}}} * | ||
+ | {{#ifeq:{{{2|}}}-{{{3|}}} | km-mi | 0.621371192 }} | ||
+ | {{#ifeq:{{{2|}}}-{{{3|}}} | kmh-mph | 0.621371192 }} | ||
+ | round 3 | ||
+ | }}</includeonly><noinclude>{{documentation}}</noinclude> |
Revision as of 14:58, 9 December 2023
Template documentation
Usage
Markup | Renders as |
---|---|
{{convert|1|km|mi|round=2}} |
0.621 |
Markup | Renders as |
---|---|
{{convert|1|km2|mi2|round=2}} |
Expression error: Unexpected round operator. |
Markup | Renders as |
---|---|
{{convert|1|kmh|mph|round=3}} |
0.621 |
Markup | Renders as |
---|---|
{{convert|1|kmh|mph|round=2}} |
0.621 |
Markup | Renders as |
---|---|
{{convert|200|kw|bhp}} |
Expression error: Unexpected round operator. |
Markup | Renders as |
---|---|
{{convert|400|nm|lbft}} |
Expression error: Unexpected round operator. |