Template:Spell: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(added test if not bard cyclic to only include cat:spells if status /= obsolete)
No edit summary
Line 56: Line 56:
[[page type is::spell| ]]{{#if:{{{guild|}}}|{{#switch:{{lc:{{{guild}}}}}|none=|any=[[guild association is::bard| ]][[guild association is::cleric| ]][[guild association is::empath| ]][[guild association is::moon mage| ]][[guild association is::paladin| ]][[guild association is::ranger| ]][[guild association is::warrior mage| ]]|{{#arraymap:{{lc:{{{guild}}}}}|,|x|[[guild association is::x| ]]| }}}}}}{{#ifeq:{{lc:{{{guild}}}{{{ctype}}}}}|bardcyclic|[[has default form::Form:Enchante| ]]}}
[[page type is::spell| ]]{{#if:{{{guild|}}}|{{#switch:{{lc:{{{guild}}}}}|none=|any=[[guild association is::bard| ]][[guild association is::cleric| ]][[guild association is::empath| ]][[guild association is::moon mage| ]][[guild association is::paladin| ]][[guild association is::ranger| ]][[guild association is::warrior mage| ]]|{{#arraymap:{{lc:{{{guild}}}}}|,|x|[[guild association is::x| ]]| }}}}}}{{#ifeq:{{lc:{{{guild}}}{{{ctype}}}}}|bardcyclic|[[has default form::Form:Enchante| ]]}}
<!--do not add categories if it is a planned or obsolete spell -->
<!--do not add categories if it is a planned or obsolete spell -->
{{#ifeq:{{lc:{{{guild}}}{{{ctype}}}}}|bardcyclic|{{cat|Bard Enchantes}}|{{#ifeq: {{{status|}}} | obsolete | | {{cat|Spells}}
{{#ifeq:{{lc:{{{guild}}}{{{ctype}}}}}|bardcyclic|{{cat|Bard Enchantes}}|{{#ifeq: {{{status|}}} | obsolete | | {{cat|Spells}} }}
}}
}}
{{#switch:{{{planned}}}|yes|y=[[missing::categorization| ]]}}
{{#switch:{{{planned}}}|yes|y=[[missing::categorization| ]]}}

Revision as of 18:58, 8 December 2012


Spell
Abbreviation:
Prerequisites:
Slot Cost:
Type: /
Difficulty:
Prep (min/max): /
Valid Spell Target:
Description:
Example Messaging:

This template provides an infobox for spell articles. Notes and commentary should be added on the individual spell articles via normal article editing.

Usage

When making a new spell article, copy the text below into the edit window and fill in the parameter values as appropriate.

{{spell
|name=
|abbrev= 
|prereqs= <!--manually add links to other spells, if needed-->
|minprep=
|castcap= <!--if unlimited, put "-" -->
|validtarget= ignore for enchantes
|slots=
|diff=intro/basic/advanced/esoteric
|desc=
|messaging=
|guild=
|spellbook= ignore for enchantes
|ctype=standard/battle/cyclic/ritual/feat (use commas if more than one)
|type=augmentation/debilitation/targeted/utility/warding (use commas if more than one)
|struct= for enchantes
|prep= for enchantes
|pulse= for enchantes
|duration= for enchantes
|performtype= for enchantes <!--Chanted, sung, instrument type--> 
|enchantebook=for enchantes
|status= <blank>/planned/obsolete
}}