Template:Spell: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
(fixed junk set up for 2.0 bard stuff)
Line 54: Line 54:
<includeonly>
<includeonly>
<!-- Categories -->
<!-- Categories -->
[[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| ]]{{Cat|Spells}}{{#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}} }}
}}
}}
{{#switch:{{{planned}}}|yes|y=[[missing::categorization| ]]}}
{{#switch:{{{planned}}}|yes|y=[[missing::categorization| ]]}}
Line 62: Line 61:
|planned | plan=[[in development::true| ]]
|planned | plan=[[in development::true| ]]
{{#if: {{{guild|}}} |
{{#if: {{{guild|}}} |
{{#switch:{{lc:{{{guild}}}}}
{{#arraymap:{{{guild}}}|,|@@@@|[[Category: Planned @@@@ Spells|{{PAGENAME}}]]| }}
|bard={{Cat|Planned Bard Enchantes}}
|any=
|none=
|{{#arraymap:{{{guild}}}|,|x|[[Category: Planned x Spells|{{PAGENAME}}]]| }}
}}
}}
}}
|obsolete | obs={{cat|Obsolete Spells}}
|obsolete | obs={{cat|Obsolete Spells}}
Line 74: Line 68:
|none=
|none=
|any=
|any=
|{{#arraymap:{{{guild}}}|,|x|[[Category:x Spells|{{PAGENAME}}]]| }}
|{{#arraymap:{{{guild}}}|,|@@@@|[[Category:@@@@ Spells|{{PAGENAME}}]]| }}
}}
}}
}}
}}
{{#if: {{{spellbook|}}} | [[spellbook is::{{{spellbook}}}| ]]
{{#if: {{{spellbook|}}}
{{#switch: {{lc:{{{spellbook}}}}}
| [[spellbook is::{{{spellbook}}}| ]]{{cat|{{{spellbook}}} Spellbook}}
}}
| protection=
{{#if: {{{guild|}}} | {{#arraymap:{{ucfirst:{{{guild}}}}}|,|x|[[Category: Protection Spellbook (x)|{{PAGENAME}}]]| }}
{{#ifeq:{{lc:{{{guild}}}{{{ctype}}}}}|bardcyclic|{{cat|Bard Enchantes}}|
}}
| {{cat|{{{spellbook}}} Spellbook}}
}}
}}
}}
{{#if: {{{enchantebook|}}}
{{#if: {{{enchantebook|}}}
| {{cat|{{{enchantebook}}} Spellbook}}[[spellbook is::{{{enchantebook}}}| ]]
| {{cat|{{{enchantebook}}} Spellbook}}[[spellbook is::{{{enchantebook}}}| ]]
}}
}}
}}
}}

Revision as of 19:34, 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
}}