Difference between revisions of "Template:CreatureAction"

From Legends of Hyrule
Jump to navigationJump to search
m (typo)
(adding optional standardization for attacks)
Line 1: Line 1:
<includeonly>'''''{{{1|Action Name}}}.''''' {{#if:{{{3|}}}|''{{{3|}}}:''}} {{{2|}}} {{#if:{{{4|}}}| |[[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|}}}|range {{{range|}}} ft.,}} {{#if:{{{attack|}}}|one target. ''Hit:'' }} {{#if:{{{dmg|}}}|{{{dmg|}}}}} {{#if:{{{dmgt|}}}|[[{{{dmgt|}}} damage]]}}{{#if:{{{2dmg|}}}|, plus {{{2dmg|}}} [[{{{2dmgt|}}} damage]]}}{{#if:{{{alt|}}}|, or {{{altdmg|}}} {{{altdmgt|}}} {{{alt|}}}}}{{#if:{{{attack|}}}|.}} {{{2|}}} {{#if:{{{nocat|}}}| |[[Category:Creatures with the {{{1}}} action]]}}</includeonly><noinclude>
 
==Usage==
 
==Usage==
<pre>{{CA|Action Name|Here goes the full description of the action.|If the action is a "Ranged Weapon Attack" or "Melee Spell Attack," etc, that information goes here.}}</pre>
+
For any general action that doesn't follow a standardized attack format, this can be used:
 +
<pre>{{CA
 +
|Action Name
 +
|Description.}}</pre>
  
<pre>{{CA|Action Name|Description.|Optional Type}}</pre>
+
For an action that follows the normal attack format, this can be used:
 +
<pre>{{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}
 +
}}</pre>
  
This template automatically categorizes the creature based on the name of its action.  If this is undesired, add another pipe at the end and insert a fifth area of text.  It doesn't matter what the text is, but so long as that extra section of text is there, the page will not be categorized by this template.
+
A blank version of the above template is provided here for convenience:
 +
{{CA
 +
|
 +
|
 +
|attack=
 +
|hit=
 +
|reach=
 +
|range=
 +
|dmg=
 +
|dmgt=
 +
|2dmg=
 +
|2dmgt=
 +
|altdmg=
 +
|altdmgt=
 +
|alt=
 +
}}
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Revision as of 06:43, 31 May 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
|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:

.

[[Category:Creatures with the 
action]]