Template:Spell: Difference between revisions
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><!--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}}} | |
|{{#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" |
! 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| ]] |
[[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= |
||
|{{ |
|{{cat|Planned {{{guild|}}} Spells}} |
||
}} |
}} |
||
}} |
}} |
||
| Line 66: | Line 74: | ||
|bard={{cat|Bard Enchantes}} |
|bard={{cat|Bard Enchantes}} |
||
|any= |
|any= |
||
|{{ |
|{{cat|{{{guild}}} Spells}} |
||
}} |
}} |
||
}} |
}} |
||
| Line 72: | Line 80: | ||
{{#switch: {{lc:{{{spellbook}}}}} |
{{#switch: {{lc:{{{spellbook}}}}} |
||
| protection= |
| protection= |
||
{{# |
{{#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:{{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:{{{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
|
|