Difference between revisions of "Template:Spell"

The official GemStone IV encyclopedia.
Jump to: navigation, search
Line 1: Line 1:
 
{| align="right" style="width: 23em; margin: 0 0 1em 1em; clear:both; background: inherit;"
 
{| align="right" style="width: 23em; margin: 0 0 1em 1em; clear:both; background: inherit;"
  |-
 
  |
 
  {| style="width: 100%; font-size: 95%; text-align: left;  background: #{{#ifeq:{{{type}}}|Defensive|FCFFF8|{{#ifeq:{{{type}}}|Offensive|FFFFF8|{{#ifeq:{{{type}}}|Attack|FFF8F8|{{#ifeq:{{{type}}}|Utility|F8FCFF|F9F9F9}}}}}}}}; margin: 0 0 0 0; border: 1px #aaa solid;"
 
    ! colspan=2 style="background:#{{ #ifeq: {{{type}}} | Defensive |CF9| {{ #ifeq: {{{type}}} | Offensive |FF9|{{ #ifeq: {{{type}}} | Attack |F99|{{ #ifeq: {{{type}}} | Utility |9CF|DDD}}}}}} }}; font-size: larger; text-align: center;" | '''{{PAGENAME}}'''
 
    |-
 
    ! Mnemonic
 
    | valign="top" style="white-space: nowrap; text-align: right;" | [{{{mnemonic}}}]
 
    |-
 
    {{ #if: {{{duration|}}} | ! Duration
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{duration}}}
 
    {{!}}-
 
    |
 
    {{{custdur|
 
    ! Base Duration
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{base_dur}}}
 
    {{!}}-
 
    ! Added Duration
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{add_dur}}}
 
    {{!}}-
 
    ! Span
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{span}}}
 
    {{!}}-}}} }}
 
    {{ #ifeq: {{{type}}} | Attack    | |
 
    {{ #ifeq: {{{type}}} | Defensive | |
 
    {{ #ifeq: {{{type}}} | Offensive | |
 
    {{ #ifeq: {{{type}}} | Utility  | | ! Type
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{type}}} }}}}}}}}
 
    |-
 
    {{ #ifeq: {{{type|}}} | Attack | !colspan=2 align=center style="background:#F99;"{{!}}Attack Magic{{ #ifeq: {{{dtype|None}}}| None | | - Damage}}{{ #ifeq: {{{status|None}}} | None | | - Disabling}} | {{ #ifeq: {{{type|}}} | Offensive | !colspan=2 align=center style="background:#FF9;"{{!}}Offensive Magic{{ #ifeq: {{{weapon|None}}} | None | | - Weapon Enhancement | }}{{ #ifeq: {{{enhancement|None}}} | None | | - Enhancement | }} |  {{ #ifeq: {{{type|}}} | Defensive | !colspan=2 align=center style="background:#CF9;"{{!}}Defensive Magic | {{ #ifeq: {{{type|}}} | Utility | !colspan=2 align=center style="background:#9CF;"{{!}}Utility Magic{{ #ifeq: {{{skill|None}}} | None | | - Skill Enhancement | }} | }}}}}}}} <!-- If it is an attack spell, then -->{{ #ifeq: {{{type}}} | Attack | {{ #ifeq: {{{subtype}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Subtype
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{subtype}}}
 
    }}{{ #ifeq: {{{target}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Target(s)
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{target}}}
 
    }}{{ #ifeq: {{{interval}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Interval
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{interval}}}
 
    }}{{ #ifeq: {{{dtype}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Damage Type
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{dtype}}}
 
    }}{{ #ifeq: {{{status}}} | None | | &nbsp;
 
    {{!}}-
 
    ! [[Status|State]](s) Inflicted
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{status}}}
 
    }}{{ #ifeq: {{{dtype}}} | None | | {{ #ifeq: {{{ctype}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Critical Type
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{ctype}}}&nbsp;}} }}
 
    | <!-- If it is a defensive spell, then --> {{ #ifeq: {{{type}}} | Defensive | {{ #ifeq: {{{subtype}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Subtype
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{subtype}}}
 
    }}{{ #ifeq: {{{ds}}} | None | | &nbsp;
 
    {{!}}-
 
    ! [[Defensive strength|Defensive Strength]]
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{ds}}}
 
    }}{{ #ifeq: {{{td}}} | None | | &nbsp;
 
    {{!}}-
 
    ! [[Target defense|Target Defense]]
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{td}}}
 
    }}{{ #ifeq: {{{enhancement}}} | None | | &nbsp;
 
    {{!}}-
 
    ! [[Enhancement]]
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{enhancement}}}
 
    }}{{ #ifeq: {{{availiability}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Availability
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{availability}}}&nbsp;}}
 
    | <!-- If it is an offensive spell, then --> {{ #ifeq: {{{type}}} | Offensive | {{ #ifeq: {{{subtype}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Subtype
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{subtype}}}
 
    }}{{ #ifeq: {{{weapon}}}      | None | | &nbsp;
 
    {{!}}-
 
    ! Weapon Enhancement
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{weapon}}}
 
    }}{{ #ifeq: {{{enhancement}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Enhancement
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{enhancement}}}
 
    }}{{ #ifeq: {{{weapon}}}      | None | | &nbsp;
 
    {{!}}-
 
    ! Weapon Requirements
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{requirements}}}
 
    }}{{ #ifeq: {{{enhancement}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Availability
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{availability}}}&nbsp;}}
 
    | <!-- If it is a utility spell, then --> {{ #ifeq: {{{type}}} | Utility | {{ #ifeq: {{{subtype}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Subtype
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{subtype}}}
 
    }}{{ #ifeq: {{{skill}}} | None | | &nbsp;
 
    {{!}}-
 
    ! [[Skill]] Enhancement
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{skill}}}
 
    }}{{ #ifeq: {{{components}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Components
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{components}}}
 
    }}{{ #ifeq: {{{availability}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Availability
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{availability}}}&nbsp;}}
 
    | }}}}}}}}
 
  |}
 
  |- align=center
 
  |
 
  {{{navigation|}}}
 
|}<includeonly>
 
    {{ #ifeq: {{{type}}} | Attack    | [[Category:Attack Spells]]    |
 
    {{ #ifeq: {{{type}}} | Defensive | [[Category:Defensive Spells]] |
 
    {{ #ifeq: {{{type}}} | Offensive | [[Category:Offensive Spells]] |
 
    {{ #ifeq: {{{type}}} | Utility  | [[Category:Utility Spells]]  | [[Category:Spells Needing Updating]]
 
    }}}}}}}}[[Category:Spells]]
 
</includeonly><noinclude>
 
The article changes colors based on the definition of the {{{type}}} parameter.  The colors are according to the following table:
 
{| {{prettytable}}
 
|style="background:#FF9"|Offensive is FF9||style="background:#CF9"|Defensive is CF9||style="background:#9CF"|Utility is 9CF||style="background:#F99"|Attack is F99||style="background:#DDD"|Undefined is DDD
 
|-
 
|style="background:#FFFFF8"|Offensive is FFFFF8||style="background:#FCFFF8"|Defensive is FCFFF8||style="background:#F8FCFF"|Utility is F8FCFF||style="background:#FFF8F8"|Attack is FFF8F8||style="background:#F9F9F9"|Undefined is F9F9F9
 
|}
 
The example to the right is an undefined table.
 
== Duration ==
 
The duration fields are easily replaced.  If the variable (((duration}}} is defined, it automatically replaces the shown duration fields.  This is to ensure backwards compatibility with the old spell template.  Additionally, if the variable {{{custdur}}} is defined, it also replaces the shown fields and allows one to use the custom duration templates from the spellbox series of templates.  These are [[Template:Spellbox instant]], [[Template:Spellbox block]], and [[Template:Spellbox duration]], although the Spellbox duration template would be exactly the same as the default.
 
 
== Types ==
 
The template changes drastically based on what type is chosen for the template.  The preview, to the right, is what the template will look like with no type defined.  Undefined, the template will be gray.  However, the colors and parameters change when defined, and the type line will vanish so long as it meets one of four types: Attack, Defensive, Offensive, and Utility.  It is case sensitive.  Any unwanted line can be removed by defining the associated parameter as "None".  This is case sensitive.
 
 
=== Attack ===
 
This type changes the template to have a pale red background in addition to adding lines for '''Subtype''', '''Target(s)''', '''Interval''', '''Damage Type''', '''Critical Type''', and '''State(s) Inflicted'''.
 
*Subtype defines if the attack is a warding, maneuver, or bolt attack, or a combination thereof.
 
*Target(s) is used to define who is targeted by the attack.  Some spells affect everyone (room), everyone not in the group (ungrouped), all critters (creatures), or only a single individual.  Some spells are limited in number and will chose targets randomly from an above list.  If such is the case, put the list that the spell choses from, and go into more detail in the spell description within the article itself.
 
*Interval indicates if the spell is one-shot or damage over time.  There may be more parameters.
 
*Damage Type is what sort of damage is inflicted.  Usually, this'll be hitpoint damage, but it could be mana damage as well, or others.
 
**Critical Type line will show if the parameter {{{dtype}}} is defined.  This'll list the sort of damage done, if it is elemental, or if it follows some other sort of critical chart, such as the Unbalance critical chart.
 
*State(s) Inflicted displays the type of status ailment inflicted on the target.
 
 
=== Defensive ===
 
This type changes the template to have a pale green background in addition to adding lines for '''Subtype''', '''Defensive Strength''', '''Target Defense''', '''Enhancement''', and '''Availability'''.
 
*Subtypes for defensive spells would define which sort of defensive capabilities the spell offers, such as increases to DS, TD, and skills.
 
*Defensive Strength should be listed as the type of DS it provides, such as [[melee]] or [[bolt]].
 
*Target Defense should be labelled by the type of TD it provides, like DS.  Options are: Spiritual, Elemental, Mental, and Generic (or All).
 
*Enhancement would be used for spells such as [[Mass Blur]] which increase defensive capabilities by granting phantom ranks in the skill, [[Dodge]]; though, some spells increase ranks in Stalking and Hiding in addition to increasing defensive capabilities; such would go here.
 
*Availability defines who the spell can be cast on, such as [[self-cast]], group (like [[Mass Blur]]), and all (such as [[Elemental Defense I]]).
 
 
=== Offensive ===
 
This type changes the template to have a light yellow background in addition to adding lines for '''Subtype''', '''Weapon Enhancement''', '''Enhancement''', and '''Availability''' or '''Weapon Requirements'''.
 
*"Subtype" defines what sort of enhancement that this spell provides.  Generally, weapon enhancements, attack strength enhancements, or more.
 
*"Enhancement" is split into two categories, defined by which variable is used -- {{{weapon}}} or {{{enhancement}}}.
 
**{{{weapon}}} - defines the template as a weapon enhancement, and this field is used to define what sort of enhancement the spell provides to the weapon.  There are currently three weapon enhancement spells, [[Holy Blade]], [[Minor Elemental Edging]], and [[Elemental Blade]].  Holy Blade grants a weapon the Blessed status, and thus would be simply labeled, "Bless".  Minor Elemental Edging and Elemental Blade both grant enchantment bonuses (labeled, "Enchantment"), though, Elemental Blade also adds flares (and thus would be labeled "Enchantment, Flares").  Using this variable replaces Availability with Requirements.  Note that the spell, [[Enchant Item]], is not considered an offensive spell due to the ability to enchant shields and armor, in addition to weaponry.
 
**{{{enhancement}}} - defines the template as a general enhancement spell.  This would be used where the spell provides an enhancement to an offensive skill, such as [[Patron's Blessing]], which increases ranks in the skill, [[Combat Maneuvers]].  Also, if the spell provides an increase to Attack Strength, it would be listed here.
 
*"Availability" is similar to the use with defensive spells as above, although, if this spell is labeled as a weapon enhancement by using the {{{weapon}}} variable, this line is replaced by the Requirements line.
 
*"Weapon Requirements" is used with weapon enhancements, and this line defines the requirements that are placed on the weapon to cast this spell.  For example, to cast Holy Blade on a weapon, it cannot have flares or weighting.  Additionally, to cast Minor Elemental Edging or Elemental Blade on a weapon, it cannot be magical in any way whatsoever.  This includes weighting and flares.
 
 
=== Utility ===
 
This type changes the template to have a light blue background in addition to adding lines for '''Subtype''', '''Skill Enhancement''', '''Components''', and '''Availability'''.
 
*"Subtype" is often defined as either being Combat, Enhancement, or None, although other subtypes may be defined.
 
*"Skill Enhancement" is used to list whatever skills might be enhanced by this spell.  Increases to skills that are not directly offensive or defensive in nature, such as [[Stalking and Hiding]], [[Skinning]], and [[Foraging]], will be listed as utility.  If the spell does not enhance a skill, enter "None".
 
*"Components" lists the various components the spell may require.  Listing the components as "None" will remove this line.
 
*"Availability" is used for enhancement utility spells, such as [[Sneaking]] or [[Whispering Willow]].  It is defined much like the Availability line in defensive spells.
 
== Navigation ==
 
The parameter {{{navigation}}} allows the use of any of the navigational templates available from the Spellbox series of templates.  All of the navigational templates are listed below.
 
*[[Template:Minor spiritual navigation]]
 
*[[Template:Major spiritual navigation]]
 
*[[Template:Cleric base navigation]]
 
*[[Template:Minor elemental navigation]]
 
*[[Template:Major elemental navigation]]
 
*[[Template:Ranger base navigation]]
 
*[[Template:Sorcerer base navigation]]
 
*[[Template:Wizard base navigation]]
 
*[[Template:Bard base navigation]]
 
*[[Template:Empath base navigation]]
 
*[[Template:Paladin base navigation]]
 
== Other Examples ==
 
Current examples of this template in use include [[401]], [[601]], [[603]], [[606]], and [[619]].
 
 
== Notes ==
 
This template makes extensive use of the ParserFunctions extension.  Many of these functions are severely nested and nested again and I admit the coding was rather confusing.  I expect there to be bugs due to my inexperience with ParserFunctions and the complex structure of the template.
 
 
This article is still subject to change.
 
 
[[Category:Spell Templates|{{PAGENAME}}]]
 
</noinclude>{| align="right" style="width: 23em; margin: 0 0 1em 1em; clear:both; background: inherit;"
 
  |-
 
  |
 
  {| style="width: 100%; font-size: 95%; text-align: left;  background: #{{#ifeq:{{{type}}}|Defensive|FCFFF8|{{#ifeq:{{{type}}}|Offensive|FFFFF8|{{#ifeq:{{{type}}}|Attack|FFF8F8|{{#ifeq:{{{type}}}|Utility|F8FCFF|F9F9F9}}}}}}}}; margin: 0 0 0 0; border: 1px #aaa solid;"
 
    ! colspan=2 style="background:#{{ #ifeq: {{{type}}} | Defensive |CF9| {{ #ifeq: {{{type}}} | Offensive |FF9|{{ #ifeq: {{{type}}} | Attack |F99|{{ #ifeq: {{{type}}} | Utility |9CF|DDD}}}}}} }}; font-size: larger; text-align: center;" | '''{{PAGENAME}}'''
 
    |-
 
    ! Mnemonic
 
    | valign="top" style="white-space: nowrap; text-align: right;" | [{{{mnemonic}}}]
 
    |-
 
    {{ #if: {{{duration|}}} | ! Duration
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{duration}}}
 
    {{!}}-
 
    |
 
    {{{custdur|
 
    ! Base Duration
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{base_dur}}}
 
    {{!}}-
 
    ! Added Duration
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{add_dur}}}
 
    {{!}}-
 
    ! Span
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{span}}}
 
    {{!}}-}}} }}
 
    {{ #ifeq: {{{type}}} | Attack    | |
 
    {{ #ifeq: {{{type}}} | Defensive | |
 
    {{ #ifeq: {{{type}}} | Offensive | |
 
    {{ #ifeq: {{{type}}} | Utility  | | ! Type
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{type}}} }}}}}}}}
 
    |-
 
    {{ #ifeq: {{{type|}}} | Attack | !colspan=2 align=center style="background:#F99;"{{!}}Attack Magic{{ #ifeq: {{{dtype|None}}}| None | | - Damage}}{{ #ifeq: {{{status|None}}} | None | | - Disabling}} | {{ #ifeq: {{{type|}}} | Offensive | !colspan=2 align=center style="background:#FF9;"{{!}}Offensive Magic{{ #ifeq: {{{weapon|None}}} | None | | - Weapon Enhancement | }}{{ #ifeq: {{{enhancement|None}}} | None | | - Enhancement | }} |  {{ #ifeq: {{{type|}}} | Defensive | !colspan=2 align=center style="background:#CF9;"{{!}}Defensive Magic | {{ #ifeq: {{{type|}}} | Utility | !colspan=2 align=center style="background:#9CF;"{{!}}Utility Magic{{ #ifeq: {{{skill|None}}} | None | | - Skill Enhancement | }} | }}}}}}}} <!-- If it is an attack spell, then -->{{ #ifeq: {{{type}}} | Attack | {{ #ifeq: {{{subtype}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Subtype
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{subtype}}}
 
    }}{{ #ifeq: {{{target}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Target(s)
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{target}}}
 
    }}{{ #ifeq: {{{interval}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Interval
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{interval}}}
 
    }}{{ #ifeq: {{{dtype}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Damage Type
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{dtype}}}
 
    }}{{ #ifeq: {{{status}}} | None | | &nbsp;
 
    {{!}}-
 
    ! [[Status|State]](s) Inflicted
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{status}}}
 
    }}{{ #ifeq: {{{dtype}}} | None | | {{ #ifeq: {{{ctype}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Critical Type
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{ctype}}}&nbsp;}} }}
 
    | <!-- If it is a defensive spell, then --> {{ #ifeq: {{{type}}} | Defensive | {{ #ifeq: {{{subtype}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Subtype
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{subtype}}}
 
    }}{{ #ifeq: {{{ds}}} | None | | &nbsp;
 
    {{!}}-
 
    ! [[Defensive strength|Defensive Strength]]
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{ds}}}
 
    }}{{ #ifeq: {{{td}}} | None | | &nbsp;
 
    {{!}}-
 
    ! [[Target defense|Target Defense]]
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{td}}}
 
    }}{{ #ifeq: {{{enhancement}}} | None | | &nbsp;
 
    {{!}}-
 
    ! [[Enhancement]]
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{enhancement}}}
 
    }}{{ #ifeq: {{{availiability}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Availability
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{availability}}}&nbsp;}}
 
    | <!-- If it is an offensive spell, then --> {{ #ifeq: {{{type}}} | Offensive | {{ #ifeq: {{{subtype}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Subtype
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{subtype}}}
 
    }}{{ #ifeq: {{{weapon}}}      | None | | &nbsp;
 
    {{!}}-
 
    ! Weapon Enhancement
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{weapon}}}
 
    }}{{ #ifeq: {{{enhancement}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Enhancement
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{enhancement}}}
 
    }}{{ #ifeq: {{{weapon}}}      | None | | &nbsp;
 
    {{!}}-
 
    ! Weapon Requirements
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{requirements}}}
 
    }}{{ #ifeq: {{{enhancement}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Availability
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{availability}}}&nbsp;}}
 
    | <!-- If it is a utility spell, then --> {{ #ifeq: {{{type}}} | Utility | {{ #ifeq: {{{subtype}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Subtype
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{subtype}}}
 
    }}{{ #ifeq: {{{skill}}} | None | | &nbsp;
 
    {{!}}-
 
    ! [[Skill]] Enhancement
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{skill}}}
 
    }}{{ #ifeq: {{{components}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Components
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{components}}}
 
    }}{{ #ifeq: {{{availability}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Availability
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{availability}}}&nbsp;}}
 
    | }}}}}}}}
 
  |}
 
  |- align=center
 
  |
 
  {{{navigation|}}}
 
|}<includeonly>
 
    {{ #ifeq: {{{type}}} | Attack    | [[Category:Attack Spells]]    |
 
    {{ #ifeq: {{{type}}} | Defensive | [[Category:Defensive Spells]] |
 
    {{ #ifeq: {{{type}}} | Offensive | [[Category:Offensive Spells]] |
 
    {{ #ifeq: {{{type}}} | Utility  | [[Category:Utility Spells]]  | [[Category:Spells Needing Updating]]
 
    }}}}}}}}[[Category:Spells]]
 
</includeonly><noinclude>
 
The article changes colors based on the definition of the {{{type}}} parameter.  The colors are according to the following table:
 
{| {{prettytable}}
 
|style="background:#FF9"|Offensive is FF9||style="background:#CF9"|Defensive is CF9||style="background:#9CF"|Utility is 9CF||style="background:#F99"|Attack is F99||style="background:#DDD"|Undefined is DDD
 
|-
 
|style="background:#FFFFF8"|Offensive is FFFFF8||style="background:#FCFFF8"|Defensive is FCFFF8||style="background:#F8FCFF"|Utility is F8FCFF||style="background:#FFF8F8"|Attack is FFF8F8||style="background:#F9F9F9"|Undefined is F9F9F9
 
|}
 
The example to the right is an undefined table.
 
== Duration ==
 
The duration fields are easily replaced.  If the variable (((duration}}} is defined, it automatically replaces the shown duration fields.  This is to ensure backwards compatibility with the old spell template.  Additionally, if the variable {{{custdur}}} is defined, it also replaces the shown fields and allows one to use the custom duration templates from the spellbox series of templates.  These are [[Template:Spellbox instant]], [[Template:Spellbox block]], and [[Template:Spellbox duration]], although the Spellbox duration template would be exactly the same as the default.
 
 
== Types ==
 
The template changes drastically based on what type is chosen for the template.  The preview, to the right, is what the template will look like with no type defined.  Undefined, the template will be gray.  However, the colors and parameters change when defined, and the type line will vanish so long as it meets one of four types: Attack, Defensive, Offensive, and Utility.  It is case sensitive.  Any unwanted line can be removed by defining the associated parameter as "None".  This is case sensitive.
 
 
=== Attack ===
 
This type changes the template to have a pale red background in addition to adding lines for '''Subtype''', '''Target(s)''', '''Interval''', '''Damage Type''', '''Critical Type''', and '''State(s) Inflicted'''.
 
*Subtype defines if the attack is a warding, maneuver, or bolt attack, or a combination thereof.
 
*Target(s) is used to define who is targeted by the attack.  Some spells affect everyone (room), everyone not in the group (ungrouped), all critters (creatures), or only a single individual.  Some spells are limited in number and will chose targets randomly from an above list.  If such is the case, put the list that the spell choses from, and go into more detail in the spell description within the article itself.
 
*Interval indicates if the spell is one-shot or damage over time.  There may be more parameters.
 
*Damage Type is what sort of damage is inflicted.  Usually, this'll be hitpoint damage, but it could be mana damage as well, or others.
 
**Critical Type line will show if the parameter {{{dtype}}} is defined.  This'll list the sort of damage done, if it is elemental, or if it follows some other sort of critical chart, such as the Unbalance critical chart.
 
*State(s) Inflicted displays the type of status ailment inflicted on the target.
 
 
=== Defensive ===
 
This type changes the template to have a pale green background in addition to adding lines for '''Subtype''', '''Defensive Strength''', '''Target Defense''', '''Enhancement''', and '''Availability'''.
 
*Subtypes for defensive spells would define which sort of defensive capabilities the spell offers, such as increases to DS, TD, and skills.
 
*Defensive Strength should be listed as the type of DS it provides, such as [[melee]] or [[bolt]].
 
*Target Defense should be labelled by the type of TD it provides, like DS.  Options are: Spiritual, Elemental, Mental, and Generic (or All).
 
*Enhancement would be used for spells such as [[Mass Blur]] which increase defensive capabilities by granting phantom ranks in the skill, [[Dodge]]; though, some spells increase ranks in Stalking and Hiding in addition to increasing defensive capabilities; such would go here.
 
*Availability defines who the spell can be cast on, such as [[self-cast]], group (like [[Mass Blur]]), and all (such as [[Elemental Defense I]]).
 
 
=== Offensive ===
 
This type changes the template to have a light yellow background in addition to adding lines for '''Subtype''', '''Weapon Enhancement''', '''Enhancement''', and '''Availability''' or '''Weapon Requirements'''.
 
*"Subtype" defines what sort of enhancement that this spell provides.  Generally, weapon enhancements, attack strength enhancements, or more.
 
*"Enhancement" is split into two categories, defined by which variable is used -- {{{weapon}}} or {{{enhancement}}}.
 
**{{{weapon}}} - defines the template as a weapon enhancement, and this field is used to define what sort of enhancement the spell provides to the weapon.  There are currently three weapon enhancement spells, [[Holy Blade]], [[Minor Elemental Edging]], and [[Elemental Blade]].  Holy Blade grants a weapon the Blessed status, and thus would be simply labeled, "Bless".  Minor Elemental Edging and Elemental Blade both grant enchantment bonuses (labeled, "Enchantment"), though, Elemental Blade also adds flares (and thus would be labeled "Enchantment, Flares").  Using this variable replaces Availability with Requirements.  Note that the spell, [[Enchant Item]], is not considered an offensive spell due to the ability to enchant shields and armor, in addition to weaponry.
 
**{{{enhancement}}} - defines the template as a general enhancement spell.  This would be used where the spell provides an enhancement to an offensive skill, such as [[Patron's Blessing]], which increases ranks in the skill, [[Combat Maneuvers]].  Also, if the spell provides an increase to Attack Strength, it would be listed here.
 
*"Availability" is similar to the use with defensive spells as above, although, if this spell is labeled as a weapon enhancement by using the {{{weapon}}} variable, this line is replaced by the Requirements line.
 
*"Weapon Requirements" is used with weapon enhancements, and this line defines the requirements that are placed on the weapon to cast this spell.  For example, to cast Holy Blade on a weapon, it cannot have flares or weighting.  Additionally, to cast Minor Elemental Edging or Elemental Blade on a weapon, it cannot be magical in any way whatsoever.  This includes weighting and flares.
 
 
=== Utility ===
 
This type changes the template to have a light blue background in addition to adding lines for '''Subtype''', '''Skill Enhancement''', '''Components''', and '''Availability'''.
 
*"Subtype" is often defined as either being Combat, Enhancement, or None, although other subtypes may be defined.
 
*"Skill Enhancement" is used to list whatever skills might be enhanced by this spell.  Increases to skills that are not directly offensive or defensive in nature, such as [[Stalking and Hiding]], [[Skinning]], and [[Foraging]], will be listed as utility.  If the spell does not enhance a skill, enter "None".
 
*"Components" lists the various components the spell may require.  Listing the components as "None" will remove this line.
 
*"Availability" is used for enhancement utility spells, such as [[Sneaking]] or [[Whispering Willow]].  It is defined much like the Availability line in defensive spells.
 
== Navigation ==
 
The parameter {{{navigation}}} allows the use of any of the navigational templates available from the Spellbox series of templates.  All of the navigational templates are listed below.
 
*[[Template:Minor spiritual navigation]]
 
*[[Template:Major spiritual navigation]]
 
*[[Template:Cleric base navigation]]
 
*[[Template:Minor elemental navigation]]
 
*[[Template:Major elemental navigation]]
 
*[[Template:Ranger base navigation]]
 
*[[Template:Sorcerer base navigation]]
 
*[[Template:Wizard base navigation]]
 
*[[Template:Bard base navigation]]
 
*[[Template:Empath base navigation]]
 
*[[Template:Paladin base navigation]]
 
== Other Examples ==
 
Current examples of this template in use include [[401]], [[601]], [[603]], [[606]], and [[619]].
 
 
== Notes ==
 
This template makes extensive use of the ParserFunctions extension.  Many of these functions are severely nested and nested again and I admit the coding was rather confusing.  I expect there to be bugs due to my inexperience with ParserFunctions and the complex structure of the template.
 
 
This article is still subject to change.
 
 
[[Category:Spell Templates|{{PAGENAME}}]]
 
</noinclude>{| align="right" style="width: 23em; margin: 0 0 1em 1em; clear:both; background: inherit;"
 
  |-
 
  |
 
  {| style="width: 100%; font-size: 95%; text-align: left;  background: #{{#ifeq:{{{type}}}|Defensive|FCFFF8|{{#ifeq:{{{type}}}|Offensive|FFFFF8|{{#ifeq:{{{type}}}|Attack|FFF8F8|{{#ifeq:{{{type}}}|Utility|F8FCFF|F9F9F9}}}}}}}}; margin: 0 0 0 0; border: 1px #aaa solid;"
 
    ! colspan=2 style="background:#{{ #ifeq: {{{type}}} | Defensive |CF9| {{ #ifeq: {{{type}}} | Offensive |FF9|{{ #ifeq: {{{type}}} | Attack |F99|{{ #ifeq: {{{type}}} | Utility |9CF|DDD}}}}}} }}; font-size: larger; text-align: center;" | '''{{PAGENAME}}'''
 
    |-
 
    ! Mnemonic
 
    | valign="top" style="white-space: nowrap; text-align: right;" | [{{{mnemonic}}}]
 
    |-
 
    {{ #if: {{{duration|}}} | ! Duration
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{duration}}}
 
    {{!}}-
 
    |
 
    {{{custdur|
 
    ! Base Duration
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{base_dur}}}
 
    {{!}}-
 
    ! Added Duration
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{add_dur}}}
 
    {{!}}-
 
    ! Span
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{span}}}
 
    {{!}}-}}} }}
 
    {{ #ifeq: {{{type}}} | Attack    | |
 
    {{ #ifeq: {{{type}}} | Defensive | |
 
    {{ #ifeq: {{{type}}} | Offensive | |
 
    {{ #ifeq: {{{type}}} | Utility  | | ! Type
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{type}}} }}}}}}}}
 
    |-
 
    {{ #ifeq: {{{type|}}} | Attack | !colspan=2 align=center style="background:#F99;"{{!}}Attack Magic{{ #ifeq: {{{dtype|None}}}| None | | - Damage}}{{ #ifeq: {{{status|None}}} | None | | - Disabling}} | {{ #ifeq: {{{type|}}} | Offensive | !colspan=2 align=center style="background:#FF9;"{{!}}Offensive Magic{{ #ifeq: {{{weapon|None}}} | None | | - Weapon Enhancement | }}{{ #ifeq: {{{enhancement|None}}} | None | | - Enhancement | }} |  {{ #ifeq: {{{type|}}} | Defensive | !colspan=2 align=center style="background:#CF9;"{{!}}Defensive Magic | {{ #ifeq: {{{type|}}} | Utility | !colspan=2 align=center style="background:#9CF;"{{!}}Utility Magic{{ #ifeq: {{{skill|None}}} | None | | - Skill Enhancement | }} | }}}}}}}} <!-- If it is an attack spell, then -->{{ #ifeq: {{{type}}} | Attack | {{ #ifeq: {{{subtype}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Subtype
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{subtype}}}
 
    }}{{ #ifeq: {{{target}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Target(s)
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{target}}}
 
    }}{{ #ifeq: {{{interval}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Interval
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{interval}}}
 
    }}{{ #ifeq: {{{dtype}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Damage Type
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{dtype}}}
 
    }}{{ #ifeq: {{{status}}} | None | | &nbsp;
 
    {{!}}-
 
    ! [[Status|State]](s) Inflicted
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{status}}}
 
    }}{{ #ifeq: {{{dtype}}} | None | | {{ #ifeq: {{{ctype}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Critical Type
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{ctype}}}&nbsp;}} }}
 
    | <!-- If it is a defensive spell, then --> {{ #ifeq: {{{type}}} | Defensive | {{ #ifeq: {{{subtype}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Subtype
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{subtype}}}
 
    }}{{ #ifeq: {{{ds}}} | None | | &nbsp;
 
    {{!}}-
 
    ! [[Defensive strength|Defensive Strength]]
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{ds}}}
 
    }}{{ #ifeq: {{{td}}} | None | | &nbsp;
 
    {{!}}-
 
    ! [[Target defense|Target Defense]]
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{td}}}
 
    }}{{ #ifeq: {{{enhancement}}} | None | | &nbsp;
 
    {{!}}-
 
    ! [[Enhancement]]
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{enhancement}}}
 
    }}{{ #ifeq: {{{availiability}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Availability
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{availability}}}&nbsp;}}
 
    | <!-- If it is an offensive spell, then --> {{ #ifeq: {{{type}}} | Offensive | {{ #ifeq: {{{subtype}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Subtype
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{subtype}}}
 
    }}{{ #ifeq: {{{weapon}}}      | None | | &nbsp;
 
    {{!}}-
 
    ! Weapon Enhancement
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{weapon}}}
 
    }}{{ #ifeq: {{{enhancement}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Enhancement
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{enhancement}}}
 
    }}{{ #ifeq: {{{weapon}}}      | None | | &nbsp;
 
    {{!}}-
 
    ! Weapon Requirements
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{requirements}}}
 
    }}{{ #ifeq: {{{enhancement}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Availability
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{availability}}}&nbsp;}}
 
    | <!-- If it is a utility spell, then --> {{ #ifeq: {{{type}}} | Utility | {{ #ifeq: {{{subtype}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Subtype
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{subtype}}}
 
    }}{{ #ifeq: {{{skill}}} | None | | &nbsp;
 
    {{!}}-
 
    ! [[Skill]] Enhancement
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{skill}}}
 
    }}{{ #ifeq: {{{components}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Components
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{components}}}
 
    }}{{ #ifeq: {{{availability}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Availability
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{availability}}}&nbsp;}}
 
    | }}}}}}}}
 
  |}
 
  |- align=center
 
  |
 
  {{{navigation|}}}
 
|}<includeonly>
 
    {{ #ifeq: {{{type}}} | Attack    | [[Category:Attack Spells]]    |
 
    {{ #ifeq: {{{type}}} | Defensive | [[Category:Defensive Spells]] |
 
    {{ #ifeq: {{{type}}} | Offensive | [[Category:Offensive Spells]] |
 
    {{ #ifeq: {{{type}}} | Utility  | [[Category:Utility Spells]]  | [[Category:Spells Needing Updating]]
 
    }}}}}}}}[[Category:Spells]]
 
</includeonly><noinclude>
 
The article changes colors based on the definition of the {{{type}}} parameter.  The colors are according to the following table:
 
{| {{prettytable}}
 
|style="background:#FF9"|Offensive is FF9||style="background:#CF9"|Defensive is CF9||style="background:#9CF"|Utility is 9CF||style="background:#F99"|Attack is F99||style="background:#DDD"|Undefined is DDD
 
|-
 
|style="background:#FFFFF8"|Offensive is FFFFF8||style="background:#FCFFF8"|Defensive is FCFFF8||style="background:#F8FCFF"|Utility is F8FCFF||style="background:#FFF8F8"|Attack is FFF8F8||style="background:#F9F9F9"|Undefined is F9F9F9
 
|}
 
The example to the right is an undefined table.
 
== Duration ==
 
The duration fields are easily replaced.  If the variable (((duration}}} is defined, it automatically replaces the shown duration fields.  This is to ensure backwards compatibility with the old spell template.  Additionally, if the variable {{{custdur}}} is defined, it also replaces the shown fields and allows one to use the custom duration templates from the spellbox series of templates.  These are [[Template:Spellbox instant]], [[Template:Spellbox block]], and [[Template:Spellbox duration]], although the Spellbox duration template would be exactly the same as the default.
 
 
== Types ==
 
The template changes drastically based on what type is chosen for the template.  The preview, to the right, is what the template will look like with no type defined.  Undefined, the template will be gray.  However, the colors and parameters change when defined, and the type line will vanish so long as it meets one of four types: Attack, Defensive, Offensive, and Utility.  It is case sensitive.  Any unwanted line can be removed by defining the associated parameter as "None".  This is case sensitive.
 
 
=== Attack ===
 
This type changes the template to have a pale red background in addition to adding lines for '''Subtype''', '''Target(s)''', '''Interval''', '''Damage Type''', '''Critical Type''', and '''State(s) Inflicted'''.
 
*Subtype defines if the attack is a warding, maneuver, or bolt attack, or a combination thereof.
 
*Target(s) is used to define who is targeted by the attack.  Some spells affect everyone (room), everyone not in the group (ungrouped), all critters (creatures), or only a single individual.  Some spells are limited in number and will chose targets randomly from an above list.  If such is the case, put the list that the spell choses from, and go into more detail in the spell description within the article itself.
 
*Interval indicates if the spell is one-shot or damage over time.  There may be more parameters.
 
*Damage Type is what sort of damage is inflicted.  Usually, this'll be hitpoint damage, but it could be mana damage as well, or others.
 
**Critical Type line will show if the parameter {{{dtype}}} is defined.  This'll list the sort of damage done, if it is elemental, or if it follows some other sort of critical chart, such as the Unbalance critical chart.
 
*State(s) Inflicted displays the type of status ailment inflicted on the target.
 
 
=== Defensive ===
 
This type changes the template to have a pale green background in addition to adding lines for '''Subtype''', '''Defensive Strength''', '''Target Defense''', '''Enhancement''', and '''Availability'''.
 
*Subtypes for defensive spells would define which sort of defensive capabilities the spell offers, such as increases to DS, TD, and skills.
 
*Defensive Strength should be listed as the type of DS it provides, such as [[melee]] or [[bolt]].
 
*Target Defense should be labelled by the type of TD it provides, like DS.  Options are: Spiritual, Elemental, Mental, and Generic (or All).
 
*Enhancement would be used for spells such as [[Mass Blur]] which increase defensive capabilities by granting phantom ranks in the skill, [[Dodge]]; though, some spells increase ranks in Stalking and Hiding in addition to increasing defensive capabilities; such would go here.
 
*Availability defines who the spell can be cast on, such as [[self-cast]], group (like [[Mass Blur]]), and all (such as [[Elemental Defense I]]).
 
 
=== Offensive ===
 
This type changes the template to have a light yellow background in addition to adding lines for '''Subtype''', '''Weapon Enhancement''', '''Enhancement''', and '''Availability''' or '''Weapon Requirements'''.
 
*"Subtype" defines what sort of enhancement that this spell provides.  Generally, weapon enhancements, attack strength enhancements, or more.
 
*"Enhancement" is split into two categories, defined by which variable is used -- {{{weapon}}} or {{{enhancement}}}.
 
**{{{weapon}}} - defines the template as a weapon enhancement, and this field is used to define what sort of enhancement the spell provides to the weapon.  There are currently three weapon enhancement spells, [[Holy Blade]], [[Minor Elemental Edging]], and [[Elemental Blade]].  Holy Blade grants a weapon the Blessed status, and thus would be simply labeled, "Bless".  Minor Elemental Edging and Elemental Blade both grant enchantment bonuses (labeled, "Enchantment"), though, Elemental Blade also adds flares (and thus would be labeled "Enchantment, Flares").  Using this variable replaces Availability with Requirements.  Note that the spell, [[Enchant Item]], is not considered an offensive spell due to the ability to enchant shields and armor, in addition to weaponry.
 
**{{{enhancement}}} - defines the template as a general enhancement spell.  This would be used where the spell provides an enhancement to an offensive skill, such as [[Patron's Blessing]], which increases ranks in the skill, [[Combat Maneuvers]].  Also, if the spell provides an increase to Attack Strength, it would be listed here.
 
*"Availability" is similar to the use with defensive spells as above, although, if this spell is labeled as a weapon enhancement by using the {{{weapon}}} variable, this line is replaced by the Requirements line.
 
*"Weapon Requirements" is used with weapon enhancements, and this line defines the requirements that are placed on the weapon to cast this spell.  For example, to cast Holy Blade on a weapon, it cannot have flares or weighting.  Additionally, to cast Minor Elemental Edging or Elemental Blade on a weapon, it cannot be magical in any way whatsoever.  This includes weighting and flares.
 
 
=== Utility ===
 
This type changes the template to have a light blue background in addition to adding lines for '''Subtype''', '''Skill Enhancement''', '''Components''', and '''Availability'''.
 
*"Subtype" is often defined as either being Combat, Enhancement, or None, although other subtypes may be defined.
 
*"Skill Enhancement" is used to list whatever skills might be enhanced by this spell.  Increases to skills that are not directly offensive or defensive in nature, such as [[Stalking and Hiding]], [[Skinning]], and [[Foraging]], will be listed as utility.  If the spell does not enhance a skill, enter "None".
 
*"Components" lists the various components the spell may require.  Listing the components as "None" will remove this line.
 
*"Availability" is used for enhancement utility spells, such as [[Sneaking]] or [[Whispering Willow]].  It is defined much like the Availability line in defensive spells.
 
== Navigation ==
 
The parameter {{{navigation}}} allows the use of any of the navigational templates available from the Spellbox series of templates.  All of the navigational templates are listed below.
 
*[[Template:Minor spiritual navigation]]
 
*[[Template:Major spiritual navigation]]
 
*[[Template:Cleric base navigation]]
 
*[[Template:Minor elemental navigation]]
 
*[[Template:Major elemental navigation]]
 
*[[Template:Ranger base navigation]]
 
*[[Template:Sorcerer base navigation]]
 
*[[Template:Wizard base navigation]]
 
*[[Template:Bard base navigation]]
 
*[[Template:Empath base navigation]]
 
*[[Template:Paladin base navigation]]
 
== Other Examples ==
 
Current examples of this template in use include [[401]], [[601]], [[603]], [[606]], and [[619]].
 
 
== Notes ==
 
This template makes extensive use of the ParserFunctions extension.  Many of these functions are severely nested and nested again and I admit the coding was rather confusing.  I expect there to be bugs due to my inexperience with ParserFunctions and the complex structure of the template.
 
 
This article is still subject to change.
 
 
[[Category:Spell Templates|{{PAGENAME}}]]
 
</noinclude>{| align="right" style="width: 23em; margin: 0 0 1em 1em; clear:both; background: inherit;"
 
  |-
 
  |
 
  {| style="width: 100%; font-size: 95%; text-align: left;  background: #{{#ifeq:{{{type}}}|Defensive|FCFFF8|{{#ifeq:{{{type}}}|Offensive|FFFFF8|{{#ifeq:{{{type}}}|Attack|FFF8F8|{{#ifeq:{{{type}}}|Utility|F8FCFF|F9F9F9}}}}}}}}; margin: 0 0 0 0; border: 1px #aaa solid;"
 
    ! colspan=2 style="background:#{{ #ifeq: {{{type}}} | Defensive |CF9| {{ #ifeq: {{{type}}} | Offensive |FF9|{{ #ifeq: {{{type}}} | Attack |F99|{{ #ifeq: {{{type}}} | Utility |9CF|DDD}}}}}} }}; font-size: larger; text-align: center;" | '''{{PAGENAME}}'''
 
    |-
 
    ! Mnemonic
 
    | valign="top" style="white-space: nowrap; text-align: right;" | [{{{mnemonic}}}]
 
    |-
 
    {{ #if: {{{duration|}}} | ! Duration
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{duration}}}
 
    {{!}}-
 
    |
 
    {{{custdur|
 
    ! Base Duration
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{base_dur}}}
 
    {{!}}-
 
    ! Added Duration
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{add_dur}}}
 
    {{!}}-
 
    ! Span
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{span}}}
 
    {{!}}-}}} }}
 
    {{ #ifeq: {{{type}}} | Attack    | |
 
    {{ #ifeq: {{{type}}} | Defensive | |
 
    {{ #ifeq: {{{type}}} | Offensive | |
 
    {{ #ifeq: {{{type}}} | Utility  | | ! Type
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{type}}} }}}}}}}}
 
    |-
 
    {{ #ifeq: {{{type|}}} | Attack | !colspan=2 align=center style="background:#F99;"{{!}}Attack Magic{{ #ifeq: {{{dtype|None}}}| None | | - Damage}}{{ #ifeq: {{{status|None}}} | None | | - Disabling}} | {{ #ifeq: {{{type|}}} | Offensive | !colspan=2 align=center style="background:#FF9;"{{!}}Offensive Magic{{ #ifeq: {{{weapon|None}}} | None | | - Weapon Enhancement | }}{{ #ifeq: {{{enhancement|None}}} | None | | - Enhancement | }} |  {{ #ifeq: {{{type|}}} | Defensive | !colspan=2 align=center style="background:#CF9;"{{!}}Defensive Magic | {{ #ifeq: {{{type|}}} | Utility | !colspan=2 align=center style="background:#9CF;"{{!}}Utility Magic{{ #ifeq: {{{skill|None}}} | None | | - Skill Enhancement | }} | }}}}}}}} <!-- If it is an attack spell, then -->{{ #ifeq: {{{type}}} | Attack | {{ #ifeq: {{{subtype}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Subtype
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{subtype}}}
 
    }}{{ #ifeq: {{{target}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Target(s)
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{target}}}
 
    }}{{ #ifeq: {{{interval}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Interval
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{interval}}}
 
    }}{{ #ifeq: {{{dtype}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Damage Type
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{dtype}}}
 
    }}{{ #ifeq: {{{status}}} | None | | &nbsp;
 
    {{!}}-
 
    ! [[Status|State]](s) Inflicted
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{status}}}
 
    }}{{ #ifeq: {{{dtype}}} | None | | {{ #ifeq: {{{ctype}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Critical Type
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{ctype}}}&nbsp;}} }}
 
    | <!-- If it is a defensive spell, then --> {{ #ifeq: {{{type}}} | Defensive | {{ #ifeq: {{{subtype}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Subtype
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{subtype}}}
 
    }}{{ #ifeq: {{{ds}}} | None | | &nbsp;
 
    {{!}}-
 
    ! [[Defensive strength|Defensive Strength]]
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{ds}}}
 
    }}{{ #ifeq: {{{td}}} | None | | &nbsp;
 
    {{!}}-
 
    ! [[Target defense|Target Defense]]
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{td}}}
 
    }}{{ #ifeq: {{{enhancement}}} | None | | &nbsp;
 
    {{!}}-
 
    ! [[Enhancement]]
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{enhancement}}}
 
    }}{{ #ifeq: {{{availiability}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Availability
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{availability}}}&nbsp;}}
 
    | <!-- If it is an offensive spell, then --> {{ #ifeq: {{{type}}} | Offensive | {{ #ifeq: {{{subtype}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Subtype
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{subtype}}}
 
    }}{{ #ifeq: {{{weapon}}}      | None | | &nbsp;
 
    {{!}}-
 
    ! Weapon Enhancement
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{weapon}}}
 
    }}{{ #ifeq: {{{enhancement}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Enhancement
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{enhancement}}}
 
    }}{{ #ifeq: {{{weapon}}}      | None | | &nbsp;
 
    {{!}}-
 
    ! Weapon Requirements
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{requirements}}}
 
    }}{{ #ifeq: {{{enhancement}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Availability
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{availability}}}&nbsp;}}
 
    | <!-- If it is a utility spell, then --> {{ #ifeq: {{{type}}} | Utility | {{ #ifeq: {{{subtype}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Subtype
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{subtype}}}
 
    }}{{ #ifeq: {{{skill}}} | None | | &nbsp;
 
    {{!}}-
 
    ! [[Skill]] Enhancement
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{skill}}}
 
    }}{{ #ifeq: {{{components}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Components
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{components}}}
 
    }}{{ #ifeq: {{{availability}}} | None | | &nbsp;
 
    {{!}}-
 
    ! Availability
 
    {{!}} valign="top" style="white-space: nowrap; text-align: right;" {{!}} {{{availability}}}&nbsp;}}
 
    | }}}}}}}}
 
  |}
 
  |- align=center
 
  |
 
  {{{navigation|}}}
 
|}<includeonly>
 
    {{ #ifeq: {{{type}}} | Attack    | [[Category:Attack Spells]]    |
 
    {{ #ifeq: {{{type}}} | Defensive | [[Category:Defensive Spells]] |
 
    {{ #ifeq: {{{type}}} | Offensive | [[Category:Offensive Spells]] |
 
    {{ #ifeq: {{{type}}} | Utility  | [[Category:Utility Spells]]  | [[Category:Spells Needing Updating]]
 
    }}}}}}}}[[Category:Spells]]
 
</includeonly><noinclude>
 
The article changes colors based on the definition of the {{{type}}} parameter.  The colors are according to the following table:
 
{| {{prettytable}}
 
|style="background:#FF9"|Offensive is FF9||style="background:#CF9"|Defensive is CF9||style="background:#9CF"|Utility is 9CF||style="background:#F99"|Attack is F99||style="background:#DDD"|Undefined is DDD
 
|-
 
|style="background:#FFFFF8"|Offensive is FFFFF8||style="background:#FCFFF8"|Defensive is FCFFF8||style="background:#F8FCFF"|Utility is F8FCFF||style="background:#FFF8F8"|Attack is FFF8F8||style="background:#F9F9F9"|Undefined is F9F9F9
 
|}
 
The example to the right is an undefined table.
 
== Duration ==
 
The duration fields are easily replaced.  If the variable (((duration}}} is defined, it automatically replaces the shown duration fields.  This is to ensure backwards compatibility with the old spell template.  Additionally, if the variable {{{custdur}}} is defined, it also replaces the shown fields and allows one to use the custom duration templates from the spellbox series of templates.  These are [[Template:Spellbox instant]], [[Template:Spellbox block]], and [[Template:Spellbox duration]], although the Spellbox duration template would be exactly the same as the default.
 
 
== Types ==
 
The template changes drastically based on what type is chosen for the template.  The preview, to the right, is what the template will look like with no type defined.  Undefined, the template will be gray.  However, the colors and parameters change when defined, and the type line will vanish so long as it meets one of four types: Attack, Defensive, Offensive, and Utility.  It is case sensitive.  Any unwanted line can be removed by defining the associated parameter as "None".  This is case sensitive.
 
 
=== Attack ===
 
This type changes the template to have a pale red background in addition to adding lines for '''Subtype''', '''Target(s)''', '''Interval''', '''Damage Type''', '''Critical Type''', and '''State(s) Inflicted'''.
 
*Subtype defines if the attack is a warding, maneuver, or bolt attack, or a combination thereof.
 
*Target(s) is used to define who is targeted by the attack.  Some spells affect everyone (room), everyone not in the group (ungrouped), all critters (creatures), or only a single individual.  Some spells are limited in number and will chose targets randomly from an above list.  If such is the case, put the list that the spell choses from, and go into more detail in the spell description within the article itself.
 
*Interval indicates if the spell is one-shot or damage over time.  There may be more parameters.
 
*Damage Type is what sort of damage is inflicted.  Usually, this'll be hitpoint damage, but it could be mana damage as well, or others.
 
**Critical Type line will show if the parameter {{{dtype}}} is defined.  This'll list the sort of damage done, if it is elemental, or if it follows some other sort of critical chart, such as the Unbalance critical chart.
 
*State(s) Inflicted displays the type of status ailment inflicted on the target.
 
 
=== Defensive ===
 
This type changes the template to have a pale green background in addition to adding lines for '''Subtype''', '''Defensive Strength''', '''Target Defense''', '''Enhancement''', and '''Availability'''.
 
*Subtypes for defensive spells would define which sort of defensive capabilities the spell offers, such as increases to DS, TD, and skills.
 
*Defensive Strength should be listed as the type of DS it provides, such as [[melee]] or [[bolt]].
 
*Target Defense should be labelled by the type of TD it provides, like DS.  Options are: Spiritual, Elemental, Mental, and Generic (or All).
 
*Enhancement would be used for spells such as [[Mass Blur]] which increase defensive capabilities by granting phantom ranks in the skill, [[Dodge]]; though, some spells increase ranks in Stalking and Hiding in addition to increasing defensive capabilities; such would go here.
 
*Availability defines who the spell can be cast on, such as [[self-cast]], group (like [[Mass Blur]]), and all (such as [[Elemental Defense I]]).
 
 
=== Offensive ===
 
This type changes the template to have a light yellow background in addition to adding lines for '''Subtype''', '''Weapon Enhancement''', '''Enhancement''', and '''Availability''' or '''Weapon Requirements'''.
 
*"Subtype" defines what sort of enhancement that this spell provides.  Generally, weapon enhancements, attack strength enhancements, or more.
 
*"Enhancement" is split into two categories, defined by which variable is used -- {{{weapon}}} or {{{enhancement}}}.
 
**{{{weapon}}} - defines the template as a weapon enhancement, and this field is used to define what sort of enhancement the spell provides to the weapon.  There are currently three weapon enhancement spells, [[Holy Blade]], [[Minor Elemental Edging]], and [[Elemental Blade]].  Holy Blade grants a weapon the Blessed status, and thus would be simply labeled, "Bless".  Minor Elemental Edging and Elemental Blade both grant enchantment bonuses (labeled, "Enchantment"), though, Elemental Blade also adds flares (and thus would be labeled "Enchantment, Flares").  Using this variable replaces Availability with Requirements.  Note that the spell, [[Enchant Item]], is not considered an offensive spell due to the ability to enchant shields and armor, in addition to weaponry.
 
**{{{enhancement}}} - defines the template as a general enhancement spell.  This would be used where the spell provides an enhancement to an offensive skill, such as [[Patron's Blessing]], which increases ranks in the skill, [[Combat Maneuvers]].  Also, if the spell provides an increase to Attack Strength, it would be listed here.
 
*"Availability" is similar to the use with defensive spells as above, although, if this spell is labeled as a weapon enhancement by using the {{{weapon}}} variable, this line is replaced by the Requirements line.
 
*"Weapon Requirements" is used with weapon enhancements, and this line defines the requirements that are placed on the weapon to cast this spell.  For example, to cast Holy Blade on a weapon, it cannot have flares or weighting.  Additionally, to cast Minor Elemental Edging or Elemental Blade on a weapon, it cannot be magical in any way whatsoever.  This includes weighting and flares.
 
 
=== Utility ===
 
This type changes the template to have a light blue background in addition to adding lines for '''Subtype''', '''Skill Enhancement''', '''Components''', and '''Availability'''.
 
*"Subtype" is often defined as either being Combat, Enhancement, or None, although other subtypes may be defined.
 
*"Skill Enhancement" is used to list whatever skills might be enhanced by this spell.  Increases to skills that are not directly offensive or defensive in nature, such as [[Stalking and Hiding]], [[Skinning]], and [[Foraging]], will be listed as utility.  If the spell does not enhance a skill, enter "None".
 
*"Components" lists the various components the spell may require.  Listing the components as "None" will remove this line.
 
*"Availability" is used for enhancement utility spells, such as [[Sneaking]] or [[Whispering Willow]].  It is defined much like the Availability line in defensive spells.
 
== Navigation ==
 
The parameter {{{navigation}}} allows the use of any of the navigational templates available from the Spellbox series of templates.  All of the navigational templates are listed below.
 
*[[Template:Minor spiritual navigation]]
 
*[[Template:Major spiritual navigation]]
 
*[[Template:Cleric base navigation]]
 
*[[Template:Minor elemental navigation]]
 
*[[Template:Major elemental navigation]]
 
*[[Template:Ranger base navigation]]
 
*[[Template:Sorcerer base navigation]]
 
*[[Template:Wizard base navigation]]
 
*[[Template:Bard base navigation]]
 
*[[Template:Empath base navigation]]
 
*[[Template:Paladin base navigation]]
 
== Other Examples ==
 
Current examples of this template in use include [[401]], [[601]], [[603]], [[606]], and [[619]].
 
 
== Notes ==
 
This template makes extensive use of the ParserFunctions extension.  Many of these functions are severely nested and nested again and I admit the coding was rather confusing.  I expect there to be bugs due to my inexperience with ParserFunctions and the complex structure of the template.
 
 
This article is still subject to change.
 
 
[[Category:Spell Templates|{{PAGENAME}}]]
 
</noinclude>{| align="right" style="width: 23em; margin: 0 0 1em 1em; clear:both; background: inherit;"
 
 
   |-
 
   |-
 
   |
 
   |

Revision as of 12:07, 13 October 2014

Spell
Mnemonic [{{{mnemonic}}}]
Base Duration {{{base_dur}}}
Added Duration {{{add_dur}}}
Span {{{span}}}
Type {{{type}}}

The article changes colors based on the definition of the {{{type}}} parameter. The colors are according to the following table:

Offensive is FF9 Defensive is CF9 Utility is 9CF Attack is F99 Undefined is DDD
Offensive is FFFFF8 Defensive is FCFFF8 Utility is F8FCFF Attack is FFF8F8 Undefined is F9F9F9

The example to the right is an undefined table.

Duration

The duration fields are easily replaced. If the variable (((duration}}} is defined, it automatically replaces the shown duration fields. This is to ensure backwards compatibility with the old spell template. Additionally, if the variable {{{custdur}}} is defined, it also replaces the shown fields and allows one to use the custom duration templates from the spellbox series of templates. These are Template:Spellbox instant, Template:Spellbox block, and Template:Spellbox duration, although the Spellbox duration template would be exactly the same as the default.

Types

The template changes drastically based on what type is chosen for the template. The preview, to the right, is what the template will look like with no type defined. Undefined, the template will be gray. However, the colors and parameters change when defined, and the type line will vanish so long as it meets one of four types: Attack, Defensive, Offensive, and Utility. It is case sensitive. Any unwanted line can be removed by defining the associated parameter as "None". This is case sensitive.

Attack

This type changes the template to have a pale red background in addition to adding lines for Subtype, Target(s), Interval, Damage Type, Critical Type, and State(s) Inflicted.

  • Subtype defines if the attack is a warding, maneuver, or bolt attack, or a combination thereof.
  • Target(s) is used to define who is targeted by the attack. Some spells affect everyone (room), everyone not in the group (ungrouped), all critters (creatures), or only a single individual. Some spells are limited in number and will chose targets randomly from an above list. If such is the case, put the list that the spell choses from, and go into more detail in the spell description within the article itself.
  • Interval indicates if the spell is one-shot or damage over time. There may be more parameters.
  • Damage Type is what sort of damage is inflicted. Usually, this'll be hitpoint damage, but it could be mana damage as well, or others.
    • Critical Type line will show if the parameter {{{dtype}}} is defined. This'll list the sort of damage done, if it is elemental, or if it follows some other sort of critical chart, such as the Unbalance critical chart.
  • State(s) Inflicted displays the type of status ailment inflicted on the target.

Defensive

This type changes the template to have a pale green background in addition to adding lines for Subtype, Defensive Strength, Target Defense, Enhancement, and Availability.

  • Subtypes for defensive spells would define which sort of defensive capabilities the spell offers, such as increases to DS, TD, and skills.
  • Defensive Strength should be listed as the type of DS it provides, such as melee or bolt.
  • Target Defense should be labelled by the type of TD it provides, like DS. Options are: Spiritual, Elemental, Mental, and Generic (or All).
  • Enhancement would be used for spells such as Mass Blur which increase defensive capabilities by granting phantom ranks in the skill, Dodge; though, some spells increase ranks in Stalking and Hiding in addition to increasing defensive capabilities; such would go here.
  • Availability defines who the spell can be cast on, such as self-cast, group (like Mass Blur), and all (such as Elemental Defense I).

Offensive

This type changes the template to have a light yellow background in addition to adding lines for Subtype, Weapon Enhancement, Enhancement, and Availability or Weapon Requirements.

  • "Subtype" defines what sort of enhancement that this spell provides. Generally, weapon enhancements, attack strength enhancements, or more.
  • "Enhancement" is split into two categories, defined by which variable is used -- {{{weapon}}} or {{{enhancement}}}.
    • {{{weapon}}} - defines the template as a weapon enhancement, and this field is used to define what sort of enhancement the spell provides to the weapon. There are currently three weapon enhancement spells, Holy Blade, Minor Elemental Edging, and Elemental Blade. Holy Blade grants a weapon the Blessed status, and thus would be simply labeled, "Bless". Minor Elemental Edging and Elemental Blade both grant enchantment bonuses (labeled, "Enchantment"), though, Elemental Blade also adds flares (and thus would be labeled "Enchantment, Flares"). Using this variable replaces Availability with Requirements. Note that the spell, Enchant Item, is not considered an offensive spell due to the ability to enchant shields and armor, in addition to weaponry.
    • {{{enhancement}}} - defines the template as a general enhancement spell. This would be used where the spell provides an enhancement to an offensive skill, such as Patron's Blessing, which increases ranks in the skill, Combat Maneuvers. Also, if the spell provides an increase to Attack Strength, it would be listed here.
  • "Availability" is similar to the use with defensive spells as above, although, if this spell is labeled as a weapon enhancement by using the {{{weapon}}} variable, this line is replaced by the Requirements line.
  • "Weapon Requirements" is used with weapon enhancements, and this line defines the requirements that are placed on the weapon to cast this spell. For example, to cast Holy Blade on a weapon, it cannot have flares or weighting. Additionally, to cast Minor Elemental Edging or Elemental Blade on a weapon, it cannot be magical in any way whatsoever. This includes weighting and flares.

Utility

This type changes the template to have a light blue background in addition to adding lines for Subtype, Skill Enhancement, Components, and Availability.

  • "Subtype" is often defined as either being Combat, Enhancement, or None, although other subtypes may be defined.
  • "Skill Enhancement" is used to list whatever skills might be enhanced by this spell. Increases to skills that are not directly offensive or defensive in nature, such as Stalking and Hiding, Skinning, and Foraging, will be listed as utility. If the spell does not enhance a skill, enter "None".
  • "Components" lists the various components the spell may require. Listing the components as "None" will remove this line.
  • "Availability" is used for enhancement utility spells, such as Sneaking or Whispering Willow. It is defined much like the Availability line in defensive spells.

Navigation

The parameter {{{navigation}}} allows the use of any of the navigational templates available from the Spellbox series of templates. All of the navigational templates are listed below.

Other Examples

Current examples of this template in use include 401, 601, 603, 606, and 619.

Notes

This template makes extensive use of the ParserFunctions extension. Many of these functions are severely nested and nested again and I admit the coding was rather confusing. I expect there to be bugs due to my inexperience with ParserFunctions and the complex structure of the template.

This article is still subject to change.