434
editsAd placeholder
User:Crashaholic/Sandbox: Difference between revisions
Jump to navigation
Jump to search
m
no edit summary
Crashaholic (talk | contribs) (testeengs) |
Crashaholic (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{trim| | <includeonly>{{trim| | ||
{{#if: {{{ | {{#if: {{{damage|}}} | | ||
{{#vardefine: amt|}} | |||
{{#vardefine: typ|}} | |||
{{#vardefine: mod|}} | |||
{{#vardefine: per|}} | |||
{{#vardefine: sav|}} | |||
{{#vardefine: sfx|}} | |||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|amount:}}|| <!--doesnt exist--> | {{#vardefine: amt|{{#rmatch: {{{damage|}}}|amount:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | |||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|type:}}|| <!--doesnt exist--> |{{#vardefine: typ|{{#rmatch: {{{damage|}}}|type:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | |||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|mod:}}|| <!--doesnt exist--> |{{#vardefine: mod|{{#rmatch: {{{damage|}}}|mod:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | |||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|per:}}|| <!--doesnt exist--> |{{#vardefine: dot|{{#rmatch: {{{damage|}}}|per:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | |||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|save:}}|| <!--doesnt exist--> |{{#vardefine: sav|{{#rmatch: {{{damage|}}}|save:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | |||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|save effect:}}|| <!--doesnt exist--> |{{#vardefine: sfx|{{#rmatch: {{{damage|}}}|save effect:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | |||
{{DamageInfo|{{#var: amt}}|{{#var: typ}}|modifier = {{#var:mod}}|per = {{#var: dot}}|save = {{#var: sav}}|save effect = {{#var: sfx}}}} | |||
}}|{{blank}}}}</includeonly><noinclude> | |||
}}</includeonly><noinclude> | |||
{| class="wikitable" style="width: 100%" | {| class="wikitable" style="width: 100%" | ||
|- | |- | ||
! outcome | ! outcome | ||
! | ! input | ||
|- | |- | ||
| {{User:Crashaholic/Sandbox| | | {{User:Crashaholic/Sandbox|damage=}} | ||
| ''there is an empty entry first'' | | ''there is an empty entry first'' | ||
|- | |- | ||
| {{User:Crashaholic/Sandbox| | | {{User:Crashaholic/Sandbox|damage=amount:1d4,type:Fire}} | ||
| | | <pre>damage=amount:1d4,type:Fire</pre> | ||
|- | |- | ||
| {{User:Crashaholic/Sandbox|save | | {{User:Crashaholic/Sandbox|damage = amount:4d4+4, type:Acid, mod:finesse, per:turn, save:DEX, save effect:half}} | ||
| | | <pre>damage = amount:4d4+4, type:Acid, mod:finesse, per:turn, save:DEX, save effect:half</pre> | ||
|- | |- | ||
| {{User:Crashaholic/Sandbox| | | {{User:Crashaholic/Sandbox|damage = amount:4d4+4, type:Fire, mod:melee}} | ||
| <pre>damage = amount:4d4+4, type:Fire, mod:finesse, per:turn, save:DEX, save effect:half</pre> | |||
| | |||
|- | |- | ||
</noinclude> | </noinclude> |