Template:Spell: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
m (no idea why "Infobox" needs to be appended to every spellname)
(Undo revision 76836 by Diarik (Talk))
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}}]]'''
! align="center" style="background:#B9B59C;font-size:150%;border-right:hidden" | '''[[pretty name is::{{{name|{{PAGENAME}}}}}]] Infobox'''
! 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| ]] }}
! 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| }}
|-
|-
! style="text-align:left"|'''Abbreviation:'''
! style="text-align:left"|'''Abbreviation:'''
Line 56: Line 47:
<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 65: Line 56:
{{#switch:{{lc:{{{guild}}}}}
{{#switch:{{lc:{{{guild}}}}}
|bard={{Cat|Planned Bard Enchantes}}
|bard={{Cat|Planned Bard Enchantes}}
|any=
|none=
|none=
|{{cat|Planned {{{guild|}}} Spells}}
|{{#arraymap:{{{guild}}}|,|x|[[Category: Planned x Spells|{{PAGENAME}}]]| }}
}}
}}
}}
}}
Line 74: Line 66:
|bard={{cat|Bard Enchantes}}
|bard={{cat|Bard Enchantes}}
|any=
|any=
|{{cat|{{{guild}}} Spells}}
|{{#arraymap:{{{guild}}}|,|x|[[Category:x Spells|{{PAGENAME}}]]| }}
}}
}}
}}
}}
Line 80: Line 72:
{{#switch: {{lc:{{{spellbook}}}}}
{{#switch: {{lc:{{{spellbook}}}}}
| protection=
| protection=
{{#switch: {{lc:{{{guild|}}}}}
{{#if: {{{guild|}}} | {{#arraymap:{{ucfirst:{{{guild}}}}}|,|x|[[Category: Protection Spellbook (x)|{{PAGENAME}}]]| }}
| empath= {{Cat|Protection Spellbook (Empath)}}
| ranger= {{cat|Protection Spellbook (Ranger)}}
}}
}}
| {{cat|{{{spellbook}}} Spellbook}}
| {{cat|{{{spellbook}}} Spellbook}}
Line 90: Line 80:
| {{cat|{{{enchantebook}}}}}
| {{cat|{{{enchantebook}}}}}
}}
}}
{{#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| ]]}}
{{#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| ]]}}}}
{{#switch: {{lc:{{{held}}}}} | yes | y={{cat|Held Mana Spells}}
{{#switch: {{lc:{{{held}}}}} | yes | y={{cat|Held Mana Spells}}
}}
}}
Line 97: Line 87:
{{#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:{{{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| ]]}}
}}
}}
}}
}}

Revision as of 01:00, 18 February 2009


Spell Infobox
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= <!--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
}}