Difference between revisions of "Template:CreatureAction"

From Legends of Hyrule
Jump to navigationJump to search
m (tweak)
(adding more default values)
Line 1: Line 1:
<includeonly>'''''{{{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|}}}|{{{target|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:{{{dmg|}}}|.}} {{{2|}}} {{#if:{{{nocat|}}}| |{{#if:{{{attack|}}}|[[Category:Creatures with a {{{1}}} attack]]|{{#ifeq:{{{1|}}}|Multiattack|[[Category:Creatures with Multiattack]]|[[Category:Creatures with the {{{1}}} action]]}}}}}}</includeonly><noinclude>
+
<includeonly>'''''{{{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|5}}} ft.,}} {{#if:{{{attack|}}}|{{{target|one target}}}.<br>''Hit:'' }} {{#if:{{{dmg|}}}|{{{dmg|}}}}} {{#if:{{{dmgt|}}}|[[{{{dmgt|}}} damage]]}}{{#if:{{{altdmg|}}}|&nbsp;or {{{altdmg|}}} {{{altdmgt|}}} damage {{{alt|if used with two hands to make a melee attack}}}}}{{#if:{{{attack|}}}|}}{{#if:{{{2dmg|}}}|, plus {{{2dmg|}}} [[{{{2dmgt|}}} damage]]}}{{#if:{{{dmg|}}}|.}} {{{2|}}} {{#if:{{{nocat|}}}| |{{#if:{{{attack|}}}|[[Category:Creatures with a {{{1}}} attack]]|{{#ifeq:{{{1|}}}|Multiattack|[[Category:Creatures with Multiattack]]|[[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:
Line 8: Line 8:
 
For an action that follows the normal attack format, this can be used:
 
For an action that follows the normal attack format, this can be used:
 
<pre>{{CA
 
<pre>{{CA
|Action Name, eg. Bite
+
|Action Name, eg. "Bite"
 
|Description, or additional effects beyond damage. Optional.
 
|Description, or additional effects beyond damage. Optional.
 +
 
|attack=Melee Weapon
 
|attack=Melee Weapon
 
|target=Defaults to "one target"
 
|target=Defaults to "one target"
 
|hit=+4
 
|hit=+4
|reach=5
+
|reach=Defaults to "5", as in "5 ft."
 
|range=20/60
 
|range=20/60
 
|dmg=7 (3d4) {primary damage inflicted}
 
|dmg=7 (3d4) {primary damage inflicted}
Line 21: Line 22:
 
|altdmg=
 
|altdmg=
 
|altdmgt=
 
|altdmgt=
|alt=if used with two hands to make a melee attack
+
|alt=Defaults to "if used with two hands to make a melee attack"
 
|nocat= {any text here will prevent the page being categorized by this template}
 
|nocat= {any text here will prevent the page being categorized by this template}
 
}}</pre>
 
}}</pre>

Revision as of 22:10, 3 June 2016

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
|target=Defaults to "one target"
|hit=+4
|reach=Defaults to "5", as in "5 ft."
|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=Defaults to "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=
}}