Template:Distance: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{SmallIcon|Range Icon.png}} {{#switch:{{{1|}}} | <includeonly>{{SmallIcon|Range Icon.png}} {{#switch:{{{1|}}} | ||
| melee | touch = | | melee | touch = {{Distance/Transform|5}} | ||
| reach = | | reach = {{Distance/Transform|8}} | ||
| ranged = | | ranged = {{Distance/Transform|60}} | ||
| short ranged = | | short ranged = {{Distance/Transform|50}} | ||
| #default = {{{m}}}{{nbts}}m / {{{ft}}}{{nbts}}ft | | #default = {{#if: {{{m|}}} | {{{m}}}{{nbts}}m / {{{ft}}}{{nbts}}ft <!-- Keeping for backward compatibility --> | ||
| {{Distance/Transform|{{{ft}}}}} }} | |||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
Usage: {{code|<nowiki>{{Distance|melee}}</nowiki>}} | Usage: {{code|<nowiki>{{Distance|melee}}</nowiki>}} | ||
Line 25: | Line 26: | ||
Result: {{Distance|m=X|ft=Y}} | Result: {{Distance|m=X|ft=Y}} | ||
Usage: {{code|<nowiki>{{Distance|ft=50}}</nowiki>}} | |||
Result: {{Distance|ft=50}} | |||
</noinclude> | </noinclude> |
Revision as of 02:45, 15 July 2023
Usage: {{Distance|melee}}
Result: 1.5 m / 5 ft
Usage: {{Distance|reach}}
Result: 2.5 m / 8 ft
Usage: {{Distance|ranged}}
Result: 18 m / 60 ft
Usage: {{Distance|short ranged}}
Result: 15 m / 50 ft
Usage: {{Distance|m=X|ft=Y}}
Result: X m / Y ft
Usage: {{Distance|ft=50}}
Result: 15 m / 50 ft