Template:Spell: Difference between revisions
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= |
| protection= |
||
{{#switch: {{lc:{{{guild|}}}}} |
|||
⚫ | |||
| |
| empath= [[Category:Protection Spellbook (Empath)]] |
||
⚫ | |||
}} |
}} |
||
| [[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: |
{{#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
|
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= }}