Template:Range: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
m (add support for "self" case)
No edit summary
Line 1: Line 1:
<includeonly>{{SmallIcon|Range Icon.png}} Range: {{#switch:{{{1|}}}
<includeonly>{{SmallIcon|Range Icon.png}} Range: {{#switch:{{{1|}}}
| melee = 1.5{{nbts}}m / 5{{nbts}}ft <!-- #8239 is "non-breaking thin space" which is ideal for style and readability -->
| melee | touch = 1.5{{nbts}}m / 5{{nbts}}ft
| reach = 2.5{{nbts}}m / 8{{nbts}}ft
| reach = 2.5{{nbts}}m / 8{{nbts}}ft
| ranged = 18{{nbts}}m / 60{{nbts}}ft
| ranged = 18{{nbts}}m / 60{{nbts}}ft
| short ranged = 15{{nbts}}m / 50{{nbts}}ft
| short ranged = 15{{nbts}}m / 50{{nbts}}ft
| self
| self | Self = Self
| Self = Self
| #default = {{{m}}}{{nbts}}m / {{{ft}}}{{nbts}}ft
| #default = {{{m}}}{{nbts}}m / {{{ft}}}{{nbts}}ft
}}</includeonly><noinclude>
}}</includeonly><noinclude>

Revision as of 14:55, 13 July 2023

Usage: {{Range|self}}

Result: Range: Self

Usage: {{Range|melee}}

Result: Range: 1.5 m / 5 ft

Usage: {{Range|reach}}

Result: Range: 2.5 m / 8 ft

Usage: {{Range|ranged}}

Result: Range: 18 m / 60 ft

Usage: {{Range|short ranged}}

Result: Range: 15 m / 50 ft

Usage: {{Range|m=X|ft=Y}}

Result: Range: X m / Y ft