Template:Distance/Transform: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#expr: (({{{1}}} - ({{{1}}} mod 5)) / 5) * 1.5 + {{#switch: {{#expr: {{{1}}} mod 5 }} | ||
| 1 | 2 = 0.5 | | 1 | 2 = 0.5 | ||
| 3 | 4 = 1 | | 3 | 4 = 1 | ||
| 0 = 0 }} }}m / {{{1}}}ft</includeonly><noinclude>[[Category:Templates]] | | 0 = 0 }} }}{{nbts}}m / {{{1}}}{{nbts}}ft</includeonly><noinclude>[[Category:Templates]] | ||
Converts imperial distance to metric/imperial pair. Since 5E RaW is based on imperial system, conversion made from imperial to metric and not the other way around. | Converts imperial distance to metric/imperial pair. Since 5E RaW is based on imperial system, conversion made from imperial to metric and not the other way around. | ||
Line 15: | Line 14: | ||
Result: {{Distance/Transform|5}} | Result: {{Distance/Transform|5}} | ||
Usage: {{code|<nowiki>{{Distance/Transform| | Usage: {{code|<nowiki>{{Distance/Transform|8}}</nowiki>}} | ||
Result: {{Distance/Transform| | Result: {{Distance/Transform|8}} | ||
Usage: {{code|<nowiki>{{Distance/Transform|30}}</nowiki>}} | Usage: {{code|<nowiki>{{Distance/Transform|30}}</nowiki>}} | ||
Result: {{Distance/Transform|30}} | Result: {{Distance/Transform|30}} | ||
</noinclude> | </noinclude> |
Latest revision as of 02:34, 15 July 2023
Converts imperial distance to metric/imperial pair. Since 5E RaW is based on imperial system, conversion made from imperial to metric and not the other way around.
Usage: {{Distance/Transform|3}}
Result: 1 m / 3 ft
Usage: {{Distance/Transform|5}}
Result: 1.5 m / 5 ft
Usage: {{Distance/Transform|8}}
Result: 2.5 m / 8 ft
Usage: {{Distance/Transform|30}}
Result: 9 m / 30 ft