Template:Spell: Difference between revisions
Jump to navigation
Jump to search
m (bugfixes...as usual) |
No edit summary |
||
Line 55: | Line 55: | ||
<!--do not add categories if it is a planned spell --> |
<!--do not add categories if it is a planned spell --> |
||
{{#switch: {{lc:{{{planned|}}}}} |
{{#switch: {{lc:{{{planned|}}}}} |
||
| yes | y={{#if: {{{guild|}}} | [[Category:Planned {{{guild|}}} Spells]]}} |
| yes | y={{#if: {{{guild|}}} | [[Category:Planned {{{guild|}}} Spells|{{PAGENAME}}]]}} |
||
|{{#if: {{{guild|}}} | [[Category:{{{guild}}} Spells]]}} |
|{{#if: {{{guild|}}} | [[Category:{{{guild}}} Spells|{{PAGENAME}}]]}} |
||
{{#if: {{{spellbook|}}} | |
{{#if: {{{spellbook|}}} | |
||
{{#switch: {{lc:{{{spellbook}}}}} |
{{#switch: {{lc:{{{spellbook}}}}} |
||
| protection= |
| protection= |
||
{{#switch: {{lc:{{{guild|}}}}} |
{{#switch: {{lc:{{{guild|}}}}} |
||
| empath= [[Category:Protection Spellbook (Empath)]] |
| empath= [[Category:Protection Spellbook (Empath)|{{PAGENAME}}]] |
||
| ranger= [[Category:Protection Spellbook (Ranger)]] |
| ranger= [[Category:Protection Spellbook (Ranger)|{{PAGENAME}}]] |
||
}} |
}} |
||
| [[Category:{{{spellbook}}} Spellbook]] |
| [[Category:{{{spellbook}}} Spellbook]] |
||
}} |
}} |
||
}} |
}} |
||
{{#if: {{{spelltype|}}} |[[Category:{{{spelltype}}} Spells]]}} |
{{#if: {{{spelltype|}}} |[[Category:{{{spelltype}}} Spells|{{PAGENAME}}]]}}{{#if: {{{spelltype2|}}} |[[Category:{{{spelltype2}}} Spells|{{PAGENAME}}]]}}{{#if: {{{spelltype3|}}} |[[Category:{{{spelltype3}}} Spells|{{PAGENAME}}]]}} |
||
{{#switch: {{lc:{{{held}}}}} | yes | y=[[Category:Held Mana Spells]]}} |
{{#switch: {{lc:{{{held}}}}} | yes | y=[[Category:Held Mana Spells|{{PAGENAME}}]]}} |
||
{{#switch: {{lc:{{{target}}}}} | yes | y=[[Category:Targeted Spells]]}} |
{{#switch: {{lc:{{{target}}}}} | yes | y=[[Category:Targeted Spells|{{PAGENAME}}]]}} |
||
{{#switch: {{lc:{{{scroll}}}}} | yes | y=[[Category:Scroll Spells |
{{#switch: {{lc:{{{scroll}}}}} | yes | y=[[Category:Scroll Spells|{{PAGENAME}}]]}} |
||
{{#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]]}} |
{{#switch: {{lc:{{{tier}}}}} | first | 1=[[Category:First Tier Spells|{{PAGENAME}}]] | second | 2=[[Category:Second Tier Spells|{{PAGENAME}}]] | third | 3=[[Category:Third Tier Spells|{{PAGENAME}}]] | fourth |4=[[Category:Fourth Tier Spells|{{PAGENAME}}]] | fifth | 5=[[Category:Fifth Tier Spells|{{PAGENAME}}]]}} |
||
}} |
}} |
||
<!-- 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 02:43, 7 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= }}