Template:Distance: Difference between revisions

From bg3.wiki
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 = 1.5{{nbts}}m / 5{{nbts}}ft
| melee | touch = {{Distance/Transform|5}}
| reach = 2.5{{nbts}}m / 8{{nbts}}ft
| reach = {{Distance/Transform|8}}
| ranged = 18{{nbts}}m / 60{{nbts}}ft
| ranged = {{Distance/Transform|60}}
| short ranged = 15{{nbts}}m / 50{{nbts}}ft
| 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