Template:Distance/Transform: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly>{{{icon|{{SmallIcon|Range Icon.png}}}}}{{nbts}}{{#expr: (({{{1}}} - ({{{1}}} mod 5)) / 5) * 1.5 + {{#switch: {{#expr: {{{1}}} mod 5 }} | 1 | 2 = 0.5 | 3 | 4 = 1 | 0 = 0 }} }}m / {{{1}}}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. Usage: {{code|<nowiki>{{Distance/Transform|3}}</nowiki>}}...") |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{{ | <includeonly>{{#if: {{{icon|}}} | ||
| {{{icon}}}{{nbts}} }}{{#expr: (({{{1}}} - ({{{1}}} mod 5)) / 5) * 1.5 + {{#switch: {{#expr: {{{1}}} mod 5 }} | |||
| 1 | 2 = 0.5 | |||
| 3 | 4 = 1 | |||
}} }}m / {{{1}}}ft</includeonly><noinclude>[[Category:Templates]] | | 0 = 0 }} }}m / {{{1}}}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 15: | ||
Result: {{Distance/Transform|5}} | Result: {{Distance/Transform|5}} | ||
Usage: {{code|<nowiki>{{Distance/Transform| | Usage: {{code|<nowiki>{{Distance/Transform|17|icon={{SmallIcon|Aoe Icon.png}}}}</nowiki>}} | ||
Result: {{Distance/Transform| | Result: {{Distance/Transform|17|icon={{SmallIcon|Aoe Icon.png}}}} | ||
Usage: {{code|<nowiki>{{Distance/Transform| | Usage: {{code|<nowiki>{{Distance/Transform|30}}</nowiki>}} | ||
Result: {{Distance/Transform| | Result: {{Distance/Transform|30}} | ||
Usage: {{code|<nowiki>{{Distance/Transform|60}}</nowiki>}} | Usage: {{code|<nowiki>{{Distance/Transform|60|icon={{SmallIcon|Range Icon.png}}}}</nowiki>}} | ||
Result: {{Distance/Transform|60}} | Result: {{Distance/Transform|60|icon={{SmallIcon|Range Icon.png}}}} | ||
</noinclude> | </noinclude> |
Revision as of 02:26, 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: 1m / 3ft
Usage: {{Distance/Transform|5}}
Result: 1.5m / 5ft
Usage: {{Distance/Transform|17|icon={{SmallIcon|Aoe Icon.png}}}}
Result: 5m / 17ft
Usage: {{Distance/Transform|30}}
Result: 9m / 30ft
Usage: {{Distance/Transform|60|icon={{SmallIcon|Range Icon.png}}}}
Result: 18m / 60ft