1,935
editsMore actions
Changed so "attack roll = yes" and other values returns "Attack roll" instead of "attack roll"
(Added switch to prevent "Yes attack roll") |
(Changed so "attack roll = yes" and other values returns "Attack roll" instead of "attack roll") |
||
Line 1: | Line 1: | ||
<includeonly>{{SmallIcon|Attack Roll Icon.png}}{{# | <includeonly>{{SmallIcon|Attack Roll Icon.png}}<!--Switch so "attack roll = yes" on page templates returns "Attack roll" instead of "Yes attack roll" or "attack roll"-->{{#ifeq:{{lc:{{{1|}}}}}| | ||
| melee weapon = | {{#switch:{{lc:{{{1|}}}}} | ||
| melee spell = | | melee weapon = {{{1|}}} | ||
| melee unarmed = | | melee spell = {{{1|}}} | ||
| melee off-hand weapon = | | melee unarmed = {{{1|}}} | ||
| ranged weapon = | | melee off-hand weapon = {{{1|}}} | ||
| ranged spell = | | ranged weapon = {{{1|}}} | ||
| ranged unarmed = | | ranged spell = {{{1|}}} | ||
| ranged off-hand weapon = | | ranged unarmed = {{{1|}}} | ||
| #default = | | ranged off-hand weapon = {{{1|}}} | ||
}} [[attack roll]]|[[Attack roll]]}} | | #default = no type | ||
}}|{{ucfirst:{{lc:{{{1}}}}}}} [[attack roll]]|[[Attack roll]]}} | |||
</includeonly><noinclude> | </includeonly><noinclude> | ||
Usage: {{code|<nowiki>{{Attack roll|<Type>}}</nowiki>}} | Usage: {{code|<nowiki>{{Attack roll|<Type>}}</nowiki>}} |