Difference between revisions of "Template:Convert"
From LFS Manual
Jump to navigationJump to searchm |
m |
||
Line 15: | Line 15: | ||
round {{{round|0}}} | round {{{round|0}}} | ||
− | }} {{# | + | }} {{#switch:{{{3|}}} |
− | | mi | + | | mi = mi |
− | | mph | + | | mph = mph |
− | | bhp | + | | bhp = bhp |
− | | lbft | + | | lbft = lbft |
}})</includeonly><noinclude>{{documentation}}</noinclude> | }})</includeonly><noinclude>{{documentation}}</noinclude> |
Revision as of 15:12, 9 December 2023
Template documentation
Usage
Markup | Renders as |
---|---|
{{convert|1|km|mi|round=2}} |
1 km (0.62 mi) |
Markup | Renders as |
---|---|
{{convert|1|km2|mi2|round=2}} |
1 (Expression error: Unexpected round operator. ) |
Markup | Renders as |
---|---|
{{convert|1|kmh|mph|round=3}} |
1 km/h (0.62 mph) |
Markup | Renders as |
---|---|
{{convert|1|kmh|mph|round=2}} |
1 km/h (0.62 mph) |
Markup | Renders as |
---|---|
{{convert|200|kw|bhp}} |
200 kW (268 bhp) |
Markup | Renders as |
---|---|
{{convert|400|nm|lbft}} |
400 Nm (3540 lbft) |