Template:Attack roll: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Added support for attack roll type)
(Added switch to prevent "Yes attack roll")
Line 1: Line 1:
<includeonly>{{SmallIcon|Attack Roll Icon.png}}{{#if:{{{1|}}}|{{ucfirst:{{lc:{{{1}}}}}}} [[attack roll]]|[[Attack roll]]}}
<includeonly>{{SmallIcon|Attack Roll Icon.png}}{{#if:{{{1|}}}|{{#switch:{{lc:{{{1}}}}}
| melee weapon = Melee weapon
| melee spell = Melee spell
| melee unarmed = Melee unarmed
| melee off-hand weapon = Melee off-hand weapon
| ranged weapon = Ranged weapon
| ranged spell = Ranged spell
| ranged unarmed = Ranged unarmed
| ranged off-hand weapon = Ranged off-hand weapon
| #default =
}} [[attack roll]]|[[Attack roll]]}}
</includeonly><noinclude>
</includeonly><noinclude>
Usage: {{code|<nowiki>{{Attack roll|<Type>}}</nowiki>}}
Usage: {{code|<nowiki>{{Attack roll|<Type>}}</nowiki>}}

Revision as of 14:56, 11 January 2024

Usage: {{Attack roll|<Type>}}


Example: {{Attack roll}}

Result: Attack roll


Example: {{Attack roll|melee weapon}}

Result: Melee weapon attack roll


Example: {{Attack roll|ranged weapon}}

Result: Ranged weapon attack roll


Example: {{Attack roll|melee unarmed}}

Result: Melee unarmed attack roll


Example: {{Attack roll|ranged spell}}

Result: Ranged spell attack roll


No description.

Template parameters

ParameterDescriptionTypeStatus
type1

The type of attack roll.

Suggested values
melee weapon melee spell melee unarmed melee off-hand weapon ranged weapon ranged spell ranged unarmed ranged off-hand weapon
Stringoptional