Template:Inchestofeet: Difference between revisions
Jump to navigation
Jump to search
Created page with '{{#vardefine:feet|{{#expr:{{{1}}}/12 round0}}}} {{#vardefine:inch|{{#expr:({{{1}}}/12)-{{#var:feet}}}}}} {{#vardefine:inches|{{#switch:{{#expr:{{{1}}}-{{#expr:{{{1}}} round0}}}} …' |
No edit summary |
||
Line 1: | Line 1: | ||
{{#vardefine:feet|{{#expr:{{{1}}}/12 round0}}}} | {{#vardefine:feet|{{#expr:{{{1}}}/12 round0}}}} | ||
{{#vardefine:inch|{{#expr: | {{#vardefine:inch|{{#expr:{{{1}}}-({{#var:feet}}*12)}}}} | ||
{{#vardefine:inches|{{#switch:{{#expr:{{{1}}}-{{#expr:{{{1}}} round0}}}} | {{#vardefine:inches|{{#switch:{{#expr:{{{1}}}-{{#expr:{{{1}}} round0}}}} | ||
|0.5={{#expr:{{#var:inch}} round0}}½ | |0.5={{#expr:{{#var:inch}} round0}}½ | ||
|0.25={{#expr:{{#var:inch}} round0}}¼ | |0.25={{#expr:{{#var:inch}} round0}}¼ | ||
|{{#var:inch}} | |{{#var:inch}} | ||
}} }}{{#var:feet}} ft {{#var:inches}}"<noinclude>[[Category:Convert templates|Inchestofeet]] | }} }}{{#var:feet}} ft {{#ifexpr:{{#var:inches}}>0|{{#var:inches}}"}}<noinclude>[[Category:Convert templates|Inchestofeet]] |
Latest revision as of 00:05, 5 January 2013
Expression error: Unrecognized punctuation character "{". ft Expression error: Unexpected < operator.