Template:Spell: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(added tier field and updated category handling to be more robust...hopefully)
m (bugfixes...as usual)
Line 59: Line 59:
{{#if: {{{spellbook|}}} |
{{#if: {{{spellbook|}}} |
{{#switch: {{lc:{{{spellbook}}}}}
{{#switch: {{lc:{{{spellbook}}}}}
| protection= {{#switch: {{lc:{{{guild|}}}}}
| protection=
{{#switch: {{lc:{{{guild|}}}}}
| empath= [[Category:Protection Spellbook (Empath)]]
| ranger= [[Category:Protection Spellbook (Ranger)]]
| empath= [[Category:Protection Spellbook (Empath)]]
| ranger= [[Category:Protection Spellbook (Ranger)]]
}}
}}
| [[Category:{{{spellbook}}} Spellbook]]
| [[Category:{{{spellbook}}} Spellbook]]
}}
}}
}}
}}
}}
Line 71: Line 71:
{{#switch: {{lc:{{{target}}}}} | yes | y=[[Category:Targeted Spells]]}}
{{#switch: {{lc:{{{target}}}}} | yes | y=[[Category:Targeted Spells]]}}
{{#switch: {{lc:{{{scroll}}}}} | yes | y=[[Category:Scroll Spells ]]}}
{{#switch: {{lc:{{{scroll}}}}} | yes | y=[[Category:Scroll Spells ]]}}
{{#switch: {{{tier}}} | 1=[[Category:1st Tier Spells]] | 2=[[Category:2nd Tier Spells]] | 3=[[Category:3rd Tier Spells]] |4|5|6|7|8|9|10=[[Category:{{{tier}}}th Tier Spells]]}}
{{#switch: {{lc:{{{tier}}}}} | first | 1=[[Category:First Tier Spells]] | second | 2=[[Category:Second Tier Spells]] | third | 3=[[Category:Third Tier Spells]] | fourth |4=[[Category:Fourth Tier Spells]] | fifth | 5=[[Category:Fifth Tier Spells]]}}
}}
}}
<!-- The 'notes' section below is so spell notes are still visible while the individual spell articles are edited to use the new template. Delete when the project is completed. -->
<!-- The 'notes' section below is so spell notes are still visible while the individual spell articles are edited to use the new template. Delete when the project is completed. -->

Revision as of 16:16, 5 July 2008



Spell Infobox
Abbreviation:
Prerequisites:
Minimum Prep:
Casting Cap:
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= <!--links to other spells if needed-->
|minprep=
|castcap=
|validtarget= Self
|desc=
|messaging=
|guild=
|spellbook=
|spelltype=
|target= yes/no
|held= yes/no
|scroll= yes/no
|planned= yes/no
|tier=
}}