Template:Attack roll: Difference between revisions
Jump to navigation
Jump to search
m (Sky moved page Template:Attack Roll to Template:Attack roll) |
(Added support for attack roll type) |
||
Line 1: | Line 1: | ||
{{SmallIcon|Attack Roll Icon.png}} [[Attack roll]] | <includeonly>{{SmallIcon|Attack Roll Icon.png}}{{#if:{{{1|}}}|{{ucfirst:{{lc:{{{1}}}}}}} [[attack roll]]|[[Attack roll]]}} | ||
</includeonly><noinclude> | |||
Usage: {{code|<nowiki>{{Attack roll|<Type>}}</nowiki>}} | |||
Example: {{code|<nowiki>{{Attack roll}}</nowiki>}} | |||
Result: {{Attack roll}} | |||
Example: {{code|<nowiki>{{Attack roll|melee weapon}}</nowiki>}} | |||
Result: {{Attack roll|melee weapon}} | |||
Example: {{code|<nowiki>{{Attack roll|ranged weapon}}</nowiki>}} | |||
Result: {{Attack roll|ranged weapon}} | |||
Example: {{code|<nowiki>{{Attack roll|melee unarmed}}</nowiki>}} | |||
Result: {{Attack roll|melee unarmed}} | |||
Example: {{code|<nowiki>{{Attack roll|ranged spell}}</nowiki>}} | |||
Result: {{Attack roll|ranged spell}} | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "type", | |||
"description": "The type of attack roll.", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"melee weapon", | |||
"melee spell", | |||
"melee unarmed", | |||
"melee off-hand weapon", | |||
"ranged weapon", | |||
"ranged spell", | |||
"ranged unarmed", | |||
"ranged off-hand weapon" | |||
] | |||
} | |||
} | |||
} | |||
</templatedata> | |||
</noinclude> |
Revision as of 14:51, 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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
type | 1 | The type of attack roll.
| String | optional |