Template:Range: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Unit symbols should be separated for better readability, and inline icons should have a consistent size.)
No edit summary
 
(11 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly>{{SmallIcon|Range Icon.png}} Range: {{#switch:{{{1|}}}
<includeonly>{{#ifeq:{{{1|}}}|melee|{{SmallIcon|Melee Range Icon.png}}&nbsp;Melee:|{{SmallIcon|Range Icon.png}}&nbsp;Range:}} {{#switch:{{{1|}}}
| melee = 1.5&#8239;m / 5&#8239;ft <!-- #8239 is "non-breaking thin space" which is ideal for style and readability -->
| melee | touch = {{{m|1.5}}}&#8239;m / {{{ft | {{m to ft | {{{m|1.5}}} }} }}}&#8239;ft
| reach = 2.5&#8239;m / 8&#8239;ft
| reach = 2.5&#8239;m / 8&#8239;ft
| {{{m}}}&#8239;m / {{{ft}}}&#8239;ft
| ranged = 18&#8239;m / 60&#8239;ft
| short ranged = 15&#8239;m / 50&#8239;ft
| self | Self = Self
| weapon = Normal weapon range
| jump = {{SAI|Jump}} range
| #default = {{{m}}}&#8239;m / {{{ft | {{m to ft | {{{m}}} }} }}}&#8239;ft
}}</includeonly><noinclude>
}}</includeonly><noinclude>
Usage: {{code|<nowiki>{{Range|self}}</nowiki>}}
Result: {{Range|self}}
Usage: {{code|<nowiki>{{Range|weapon}}</nowiki>}}
Result: {{Range|weapon}}
Usage: {{code|<nowiki>{{Range|melee}}</nowiki>}}
Usage: {{code|<nowiki>{{Range|melee}}</nowiki>}}


Result: {{Range|melee}}
Result: {{Range|melee}}
Usage: {{code|<nowiki>{{Range|melee|m=2|ft=7}}</nowiki>}}
Result: {{Range|melee|m=2|ft=7}}


Usage: {{code|<nowiki>{{Range|reach}}</nowiki>}}
Usage: {{code|<nowiki>{{Range|reach}}</nowiki>}}
Line 12: Line 29:
Result: {{Range|reach}}
Result: {{Range|reach}}


Usage: {{code|<nowiki>{{Range|m=15|ft=50}}</nowiki>}}
Usage: {{code|<nowiki>{{Range|ranged}}</nowiki>}}
 
Result: {{Range|ranged}}
 
Usage: {{code|<nowiki>{{Range|short ranged}}</nowiki>}}
 
Result: {{Range|short ranged}}
 
Usage: {{code|<nowiki>{{Range|m=X|ft=Y}}</nowiki>}}
 
Result: {{Range|m=X|ft=Y}}
 
Usage: {{code|<nowiki>{{Range|jump}}</nowiki>}}


Result: {{Range|m=15|ft=50}}
Result: {{Range|jump}}


[[Category:Weapon Property Templates]]
[[Category:Weapon Property templates]]
</noinclude>
</noinclude>

Latest revision as of 15:22, 23 June 2024

Usage: {{Range|self}}

Result:  Range: Self

Usage: {{Range|weapon}}

Result:  Range: Normal weapon range

Usage: {{Range|melee}}

Result:  Melee: 1.5 m / 5  ft

Usage: {{Range|melee|m=2|ft=7}}

Result:  Melee: 2 m / 7 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

Usage: {{Range|jump}}

Result:  Range: Jump Jump range