Difference between revisions of "Template:CreatureAction"

From Legends of Hyrule
Jump to navigationJump to search
(categorization tweak)
(adding unique Multiattack categorization)
Line 1: Line 1:
'''''{{{1|Action Name}}}.''''' {{#if:{{{attack|}}}|''{{{attack|}}} Attack:''}} {{#if:{{{hit|}}}|{{{hit|}}} to hit,}} {{#if:{{{reach|}}}|reach {{{reach|}}} ft.{{#if:{{{range|}}}|&nbsp;or|,}}}} {{#if:{{{range|}}}|range {{{range|}}} ft.,}} {{#if:{{{attack|}}}|one target.<br>''Hit:'' }} {{#if:{{{dmg|}}}|{{{dmg|}}}}} {{#if:{{{dmgt|}}}|[[{{{dmgt|}}} damage]]}}{{#if:{{{alt|}}}|&nbsp;or {{{altdmg|}}} {{{altdmgt|}}} damage {{{alt|}}}}}{{#if:{{{attack|}}}|}}{{#if:{{{2dmg|}}}|, plus {{{2dmg|}}} [[{{{2dmgt|}}} damage]]}}{{#if:{{{attack|}}}|.}} {{{2|}}} {{#if:{{{nocat|}}}| |{{#if:{{{attack|}}}|[[Category:Creatures with a {{{1}}} attack]]|[[Category:Creatures with the {{{1}}} action]]}}}}</includeonly><noinclude>
+
'''''{{{1|Action Name}}}.''''' {{#if:{{{attack|}}}|''{{{attack|}}} Attack:''}} {{#if:{{{hit|}}}|{{{hit|}}} to hit,}} {{#if:{{{reach|}}}|reach {{{reach|}}} ft.{{#if:{{{range|}}}|&nbsp;or|,}}}} {{#if:{{{range|}}}|range {{{range|}}} ft.,}} {{#if:{{{attack|}}}|one target.<br>''Hit:'' }} {{#if:{{{dmg|}}}|{{{dmg|}}}}} {{#if:{{{dmgt|}}}|[[{{{dmgt|}}} damage]]}}{{#if:{{{alt|}}}|&nbsp;or {{{altdmg|}}} {{{altdmgt|}}} damage {{{alt|}}}}}{{#if:{{{attack|}}}|}}{{#if:{{{2dmg|}}}|, plus {{{2dmg|}}} [[{{{2dmgt|}}} damage]]}}{{#if:{{{attack|}}}|.}} {{{2|}}} {{#if:{{{nocat|}}}| |{{#ifeq:{{{1|}}}|Multiattack|[[Category:Creatures with Multiattack]]}}{{#if:{{{attack|}}}|[[Category:Creatures with a {{{1}}} attack]]|[[Category:Creatures with the {{{1}}} action]]}}}}</includeonly><noinclude>
 
==Usage==
 
==Usage==
 
For any general action that doesn't follow a standardized attack format, this can be used:
 
For any general action that doesn't follow a standardized attack format, this can be used:

Revision as of 07:08, 3 June 2016

Action Name. [[Category:Creatures with the {{{1}}} action]]</includeonly>

Usage

For any general action that doesn't follow a standardized attack format, this can be used:

{{CA
|Action Name
|Description.}}

For an action that follows the normal attack format, this can be used:

{{CA
|Action Name, eg. Bite
|Description, or additional effects beyond damage. Optional.
|attack=Melee Weapon
|hit=+4
|reach=5
|range=20/60
|dmg=7 (3d4) {primary damage inflicted}
|dmgt=piercing {type of damage inflicted}
|2dmg= {secondary damage}
|2dmgt= {secondary damage type}
|altdmg=
|altdmgt=
|alt=if used with two hands to make a melee attack
|nocat= {any text here will prevent the page being categorized by this template}
}}

A blank version of the above template is provided here for convenience:

{{CA
|Attack Name||attack=
|hit=
|reach=
|range=
|dmg=
|dmgt=
|2dmg=
|2dmgt=
|altdmg=
|altdmgt=
|alt=
}}