Template:Spell: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
mNo edit summary
m (no idea why "Infobox" needs to be appended to every spellname)
Line 1: Line 1:
<includeonly><!--Adds to the Articles That Are Incomplete category if any non-optional information is missing, unless the spell is planned -->{{#if:{{#ask:[[{{FULLPAGENAME}}]] [[missing::~Infobox*]]}}|{{Incomplete|Some information is missing from the spell infobox below.}}|}}</includeonly>
<includeonly><!--Adds to the Articles That Are Incomplete category if any non-optional information is missing, unless the spell is planned -->{{#if:{{#ask:[[{{FULLPAGENAME}}]] [[missing::~Infobox*]]}}|{{Incomplete|Some information is missing from the spell infobox below.|}}</includeonly>
{| style="float:right"
{| style="float:right"
|{{#arraymaptemplate:{{{guild}}} | Template:GuildThumb|,| }}
|{{#arraymaptemplate:{{{guild}}} |Template:GuildThumb|,|}}
|}
|}
{| class=wikitable width=60%
{| class=wikitable width=60%
|-
|-
! width=20% style="background: #B9B59C;border-right: hidden;height: 35px"|
! width=20% style="background: #B9B59C;border-right: hidden;height: 35px"|
! align="center" style="background:#B9B59C;font-size:150%;border-right:hidden" | '''[[pretty name is::{{{name|{{PAGENAME}}}}}]] Infobox'''
! align="center" style="background:#B9B59C;font-size:150%;border-right:hidden"|'''[[pretty name is::{{{name|{{PAGENAME}}]]'''
! valign="middle" width=20% style="background:#B9B59C;border-left:hidden"| {{
! valign="middle" width=20% style="background:#B9B59C;border-left:hidden"| {{#switch: {{lc:{{{scroll|}}}}} | yes | y=[[Image:miniscroll.jpg | Scroll-only Spell]][[scroll-only spell::true| ]]|[[scroll-only spell::false| ]]}} {{#switch: {{lc:{{{target|}}}}} | yes | y=[[Image:minitarget.jpg|Targeted Magic Spell]][[targeted magic spell::true| ]]|[[targeted magic spell::false| ]]}} {{#switch: {{lc:{{{held|}}}}} | yes | y=[[Image:miniheld.jpg|Held Mana spell]][[held mana spell::true| ]]|[[held mana spell::false| ]] }}
#switch: {{lc:{{{scroll|}}}}} |
yes | y=[[Image:miniscroll.jpg | Scroll-only Spell]][[scroll-only spell::true| ]]|
[[scroll-only spell::false| ]]}} {{
#switch: {{lc:{{{target|}}}}} |
yes | y=[[Image:minitarget.jpg|Targeted Magic Spell]][[targeted magic spell::true| ]]|
[[targeted magic spell::false| ]]}} {{
#switch: {{lc:{{{held|}}}}} |
yes | y=[[Image:miniheld.jpg|Held Mana spell]][[held mana spell::true| ]]|
held mana spell::false| }}
|-
|-
! style="text-align:left"|'''Abbreviation:'''
! style="text-align:left"|'''Abbreviation:'''
Line 47: Line 56:
<includeonly>
<includeonly>
<!-- Categories -->
<!-- Categories -->
[[page type is::spell| ]]{{#if:{{{guild|}}}|{{#switch:{{lc:{{{guild}}}}}|none=|any=[[guild association is::bard| ]][[guild association is::cleric| ]][[guild association is::empath| ]][[guild association is::moon mage| ]][[guild association is::paladin| ]][[guild association is::ranger| ]][[guild association is::warrior mage| ]]|{{#arraymap:{{lc:{{{guild}}}}}|,|x|[[guild association is::x| ]]| }}}}}}{{#ifeq:{{lc:{{{guild}}}}}|bard|[[has default form::Form:Enchante| ]]}}
[[page type is::spell| ]]{{#if:{{{guild|}}}|{{#switch:{{lc:{{{guild}}}}}|none=|any=[[guild association is::bard| ]][[guild association is::cleric| ]][[guild association is::empath| ]][[guild association is::moon mage| ]][[guild association is::paladin| ]][[guild association is::ranger| ]][[guild association is::warrior mage| ]]|{{#arraymap:{{lc:{{{guild}}}}}|,|x|[[guild association is::x| ]]}}}}{{#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|{{cat|Bard Enchantes}}|{{cat|Spells}}
{{#ifeq:{{lc:{{{guild}}}}}|bard|{{cat|Bard Enchantes}}|{{cat|Spells}}
Line 56: Line 65:
{{#switch:{{lc:{{{guild}}}}}
{{#switch:{{lc:{{{guild}}}}}
|bard={{Cat|Planned Bard Enchantes}}
|bard={{Cat|Planned Bard Enchantes}}
|any=
|none=
|none=
|{{#arraymap:{{{guild}}}|,|x|[[Category: Planned x Spells|{{PAGENAME}}]]| }}
|{{cat|Planned {{{guild|}}} Spells}}
}}
}}
}}
}}
Line 66: Line 74:
|bard={{cat|Bard Enchantes}}
|bard={{cat|Bard Enchantes}}
|any=
|any=
|{{#arraymap:{{{guild}}}|,|x|[[Category:x Spells|{{PAGENAME}}]]| }}
|{{cat|{{{guild}}} Spells}}
}}
}}
}}
}}
Line 72: Line 80:
{{#switch: {{lc:{{{spellbook}}}}}
{{#switch: {{lc:{{{spellbook}}}}}
| protection=
| protection=
{{#if: {{{guild|}}} | {{#arraymap:{{ucfirst:{{{guild}}}}}|,|x|[[Category: Protection Spellbook (x)|{{PAGENAME}}]]| }}
{{#switch: {{lc:{{{guild|}}}}}
| empath= {{Cat|Protection Spellbook (Empath)}}
| ranger= {{cat|Protection Spellbook (Ranger)}}
}}
}}
| {{cat|{{{spellbook}}} Spellbook}}
| {{cat|{{{spellbook}}} Spellbook}}
Line 80: Line 90:
| {{cat|{{{enchantebook}}}}}
| {{cat|{{{enchantebook}}}}}
}}
}}
{{#if: {{{spelltype|}}} | {{#arraymap:{{{spelltype}}}{{#if: {{{spelltype2|}}} | ,{{{spelltype2}}}}}{{#if: {{{spelltype3|}}} | ,{{{spelltype3}}}}} | , | x | [[Category:x Spells]][[spell type is::x| ]]| }} | {{#switch: {{lc:{{{planned|}}}}} | yes |y= |[[missing::Infobox entry on spell type| ]]}}}}
{{#arraymap:{{lc:{{#if: {{{spelltype|}}} | {{{spelltype}}} | {{#switch: {{lc:{{{planned|}}}}} | yes |y= |<includeonly>[[missing::Infobox entry on spell type| ]]</includeonly>}}}}{{#if: {{{spelltype2|}}} | ,{{{spelltype2}}}}}{{#if: {{{spelltype3|}}} | ,{{{spelltype3}}}}}}} | , | x | [[Category:x Spells]][[spell type is::x| ]]}}
{{#switch: {{lc:{{{held}}}}} | yes | y={{cat|Held Mana Spells}}
{{#switch: {{lc:{{{held}}}}} | yes | y={{cat|Held Mana Spells}}
}}
}}
Line 87: Line 97:
{{#switch: {{lc:{{{scroll}}}}} | yes | y={{cat|Scroll Spells}}
{{#switch: {{lc:{{{scroll}}}}} | yes | y={{cat|Scroll Spells}}
}}
}}
{{#switch: {{lc:{{{tier}}}}} | first | 1={{cat|First Tier Spells}}[[spell tier is::1| ]] | second | 2={{Cat|Second Tier Spells}}[[spell tier is::2| ]] | third | 3={{cat|Third Tier Spells}}[[spell tier is::3| ]] | fourth |4={{cat|Fourth Tier Spells}}[[spell tier is::4| ]] | fifth | 5={{cat|Fifth Tier Spells}}[[spell tier is::5| ]] | {{#switch: {{lc:{{{planned|}}}}} | yes |y= |[[missing::Infobox entry on spell tier| ]]}}
{{#switch: {{lc:{{{tier}}}}} | first | 1={{cat|First Tier Spells}}[[spell tier is::1| ]] | second | 2={{Cat|Second Tier Spells}}[[spell tier is::2| ]] | third | 3={{cat|Third Tier Spells}}[[spell tier is::3| ]] | fourth |4={{cat|Fourth Tier Spells}}[[spell tier is::4| ]] | fifth | 5={{cat|Fifth Tier Spells}}[[spell tier is::5| ]]
}}
}}
}}
}}

Revision as of 00:58, 18 February 2009


Spell , | x |"x" is not in the list (area of effect, cyclic, defense ignoring, shield ignoring, armor ignoring, armor piercing, glyph, healing, heavy offensive, instinct, ...) of allowed values for the "Ability type is" property.}}



}}

</includeonly> 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= <!--if unlimited, put "-" -->
|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
}}