Template:Spell: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
(added restricted categorization for planned spells)
Line 33: Line 33:


<!-- Categories -->
<!-- Categories -->
{{#if: {{{guild|}}} | [[Category:{{{guild}}} Spells]] | }}
{{#if: {{{guild|}}} | [[Category:{{#ifeq: {{{planned|}}} | yes | "Planned "}}{{{guild}}} Spells]] | }}
{{#if: {{{planned|}}} | yes | |<!--do not add categories if it is a planned spell -->
{{#if: {{{spellbook|}}} |
{{#ifeq: {{{guild|}}} | Empath |
{{#if: {{{spellbook|}}} |
{{#ifeq: {{{guild|}}} | Empath |
{{#ifeq: {{{spellbook}}} | Protection |
{{#ifeq: {{{spellbook}}} | Protection |
[[Category:Protection Spellbook (Empath)]] |
[[Category:Protection Spellbook (Empath)]] |
Line 42: Line 43:
|
|
{{#ifeq: {{{guild|}}} | Ranger | | [[Category:{{{spellbook}}} Spellbook]] }}
{{#ifeq: {{{guild|}}} | Ranger | | [[Category:{{{spellbook}}} Spellbook]] }}
}}{{
}}{{
#ifeq: {{{guild|}}} | Ranger |
#ifeq: {{{guild|}}} | Ranger |
{{#ifeq: {{{spellbook}}} | Protection |
{{#ifeq: {{{spellbook}}} | Protection |
Line 50: Line 51:
|
|
{{#ifeq: {{{guild|}}} | Empath | | [[Category:{{{spellbook}}} Spellbook]] }}
{{#ifeq: {{{guild|}}} | Empath | | [[Category:{{{spellbook}}} Spellbook]] }}
}}
}}
|
|
}}
{{#if: {{{magictype|}}} |[[Category:{{{magictype}}} Magic]] | }}
{{#if: {{{spelltype|}}} |[[Category:{{{spelltype}}} Spells]] | }}
{{#ifeq: {{{held|}}} | yes |[[Category:Held Mana Spells]] | }}
{{#ifeq: {{{target|}}} | yes |[[Category:Targeted Spells]] | }}
{{#ifeq: {{{scroll|}}} | yes |[[Category:Scroll Spells ]] | }}
}}
}}
{{#if: {{{magictype|}}} |[[Category:{{{magictype}}} Magic]] | }}
{{#if: {{{spelltype|}}} |[[Category:{{{spelltype}}} Spells]] | }}
{{#ifeq: {{{held|}}} | yes |[[Category:Held Mana Spells]] | }}
{{#ifeq: {{{target|}}} | yes |[[Category:Targeted Spells]] | }}
{{#ifeq: {{{scroll|}}} | yes |[[Category:Scroll 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. -->
{{#if: {{{notes|}}} |
{{#if: {{{notes|}}} |

Revision as of 23:20, 6 May 2007


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

Usage

{{spell
|name=
|abbrev= 
|prereqs= <!--links to other spells if needed-->
|minprep=
|castcap=
|validtarget= Self
|desc=
|notes=
|messaging=
|guild=
|spellbook=
|magictype=
|spelltype=
|target= yes/no
|held= yes/no
|scroll= yes/no
|planned = yes/no
}}