Template:Spell: Difference between revisions
Jump to navigation
Jump to search
(added handling for non-guild spells) |
m (semantic update) |
||
| Line 69: | Line 69: | ||
[[page type is::spell| ]]{{#if:{{{guild|}}}|[[guild association is::{{lc:{{{guild}}}}}| ]]}}{{#ifeq:{{lc:{{{guild}}}}}|bard|[[has default form::Form:Enchante| ]]}} |
[[page type is::spell| ]]{{#if:{{{guild|}}}|[[guild association is::{{lc:{{{guild}}}}}| ]]}}{{#ifeq:{{lc:{{{guild}}}}}|bard|[[has default form::Form:Enchante| ]]}} |
||
<!--do not add categories if it is a planned spell --> |
<!--do not add categories if it is a planned spell --> |
||
{{#ifeq:{{lc:{{{guild}}}}}|bard|[[Category:Bard Enchantes|{{PAGENAME}}]]|[[Category:Spells|{{PAGENAME}}]] |
{{#ifeq:{{lc:{{{guild}}}}}|bard|[[Category:Bard Enchantes|{{PAGENAME}}]]|[[Category:Spells|{{PAGENAME}}]] |
||
}} |
|||
{{#switch: {{lc:{{{planned|}}}}} |
{{#switch: {{lc:{{{planned|}}}}} |
||
| |
|yes | y= |
||
{{#if: {{{guild|}}} | |
|||
{{#switch:{{lc:{{{guild}}}}} |
|||
|bard=[[Category:Planned Bard Enchantes|{{PAGENAME}}]] |
|||
|none= |
|||
|[[Category:Planned {{{guild|}}} Spells|{{PAGENAME}}]] |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
{{#switch:{{lc:{{{guild}}}}} |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
}} |
|||
| ⚫ | |||
{{#switch: {{lc:{{{spellbook}}}}} |
|||
| ⚫ | |||
{{#switch: {{lc:{{{guild|}}}}} |
|||
| empath= [[Category:Protection Spellbook (Empath)|{{PAGENAME}}]] |
|||
| ranger= [[Category:Protection Spellbook (Ranger)|{{PAGENAME}}]] |
|||
}} |
}} |
||
| [[Category:{{{spellbook}}} Spellbook]] |
|||
}} |
}} |
||
}} |
|||
| ⚫ | |||
{{#if: {{{enchantebook|}}} |
|||
| [[Category:{{{enchantebook}}}]] |
|||
}} |
|||
| ⚫ | |||
{{#if: {{{spelltype|}}} |[[Category:{{{spelltype}}} Spells|{{PAGENAME}}]] |
|||
}} |
|||
| ⚫ | |||
| ⚫ | |||
}} |
|||
| ⚫ | |||
{{#if: {{{spelltype3|}}} |[[Category:{{{spelltype3}}} Spells|{{PAGENAME}}]] |
|||
}} |
|||
| ⚫ | |||
{{#switch: {{lc:{{{held}}}}} | yes | y=[[Category:Held Mana Spells|{{PAGENAME}}]] |
|||
}} |
|||
| ⚫ | |||
{{#switch: {{lc:{{{target}}}}} | yes | y=[[Category:Targeted Spells|{{PAGENAME}}]] |
|||
}} |
|||
{{#switch: {{lc:{{{scroll}}}}} | yes | y=[[Category:Scroll Spells|{{PAGENAME}}]] |
|||
}} |
|||
| ⚫ | {{#switch: {{lc:{{{tier}}}}} | first | 1=[[Category:First Tier Spells|{{PAGENAME}}]][[spell tier is::1| ]] | second | 2=[[Category:Second Tier Spells|{{PAGENAME}}]][[spell tier is::2| ]] | third | 3=[[Category:Third Tier Spells|{{PAGENAME}}]][[spell tier is::3| ]] | fourth |4=[[Category:Fourth Tier Spells|{{PAGENAME}}]][[spell tier is::4| ]] | fifth | 5=[[Category:Fifth Tier Spells|{{PAGENAME}}]][[spell tier is::5| ]] |
||
| ⚫ | |||
}} |
|||
{{#if: {{{enchantebook|}}} |
|||
| ⚫ | |||
| ⚫ | |||
{{#if: {{{spelltype|}}} |[[Category:{{{spelltype}}} Spells|{{PAGENAME}}]]}}{{#if: {{{spelltype2|}}} |[[Category:{{{spelltype2}}} Spells|{{PAGENAME}}]]}}{{#if: {{{spelltype3|}}} |[[Category:{{{spelltype3}}} Spells|{{PAGENAME}}]]}} |
|||
| ⚫ | |||
{{#switch: {{lc:{{{target}}}}} | yes | y=[[Category:Targeted Spells|{{PAGENAME}}]]}} |
|||
{{#switch: {{lc:{{{scroll}}}}} | yes | y=[[Category:Scroll 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 18:17, 25 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= <!--manually add links to other spells, if needed-->
|minprep=
|castcap=
|validtarget= ignore for enchantes
|desc=
|messaging=
|guild=
|spellbook= ignore for enchantes
|spelltype=
|struct= for enchantes
|prep= for enchantes
|pulse= for enchantes
|duration= for enchantes
|performtype= for enchantes <!--Chanted, sung, instrument type-->
|enchantebook=for enchantes
|target= yes/no
|held= yes/no
|scroll= yes/no
|planned= yes/no
|tier=first/second/third/fourth/fifth
}}