Template:Spell: Difference between revisions
Jump to navigation
Jump to search
m (removing 'infobox' properly this time) |
No edit summary |
||
| Line 10: | Line 10: | ||
|- |
|- |
||
! style="text-align:left"|'''Abbreviation:''' |
! style="text-align:left"|'''Abbreviation:''' |
||
| colspan=2 {{#ifeq: {{{abbrev|}}} | none | | {{#if:{{{abbrev|}}} | style="font-size:125%"}}}} | {{#if:{{{abbrev|}}} | {{#ifeq: {{{abbrev}}} | none | None | '''{{uc:<tt>{{{abbrev|}}}</tt>}}'''}} | {{#switch: {{lc:{{{ |
| colspan=2 {{#ifeq: {{{abbrev|}}} | none | | {{#if:{{{abbrev|}}} | style="font-size:125%"}}}} | {{#if:{{{abbrev|}}} | {{#ifeq: {{{abbrev}}} | none | None | '''{{uc:<tt>{{{abbrev|}}}</tt>}}'''}} | {{#switch: {{lc:{{{status|}}}}} | planned |obsolete= ''Unknown'' |<includeonly>[[missing::Infobox entry on abbreviation|''Unknown'']]</includeonly>}}}} |
||
|- |
|- |
||
! style="text-align:left"|'''Prerequisites:''' |
! style="text-align:left"|'''Prerequisites:''' |
||
| colspan=2|{{#if:{{{prereqs|}}} | {{{prereqs}}} | {{#switch: {{lc:{{{ |
| colspan=2|{{#if:{{{prereqs|}}} | {{{prereqs}}} | {{#switch: {{lc:{{{status|}}}}} | planned |obsolete= ''Unknown'' |<includeonly>[[missing::Infobox entry on prerequisits|''Unknown'']]</includeonly>}}}} |
||
|- |
|- |
||
! style="text-align:left"|'''Minimum Prep:''' |
! style="text-align:left"|'''Minimum Prep:''' |
||
| colspan=2|{{#if:{{{minprep|}}} | [[minimum prep is::{{{minprep}}}]] | {{#switch: {{lc:{{{ |
| colspan=2|{{#if:{{{minprep|}}} | [[minimum prep is::{{{minprep}}}]] | {{#switch: {{lc:{{{status|}}}}} | planned |obsolete= ''Unknown'' |<includeonly>[[missing::Infobox entry on minimum prepare|''Unknown'']]</includeonly>}}}} |
||
|- |
|- |
||
! style="text-align:left"|'''Casting Cap:''' |
! style="text-align:left"|'''Casting Cap:''' |
||
| colspan=2|{{#if:{{{castcap|}}} | {{#ifeq: {{{castcap}}} | - | Unlimited | [[casting cap is::{{{castcap}}}]] }} | {{#switch: {{lc:{{{ |
| colspan=2|{{#if:{{{castcap|}}} | {{#ifeq: {{{castcap}}} | - | Unlimited | [[casting cap is::{{{castcap}}}]] }} | {{#switch: {{lc:{{{status|}}}}} | yes |y= ''Unknown'' |<includeonly>[[missing::Infobox entry on casting cap|''Unknown'']]</includeonly>}}}} |
||
|- |
|- |
||
{{#ifeq:{{lc:{{{guild}}}}}|bard|! style="text-align:left"{{!}}'''Performance Type:''' |
{{#ifeq:{{lc:{{{guild}}}}}|bard|! style="text-align:left"{{!}}'''Performance Type:''' |
||
{{!}}colspan=2{{!}}{{#if: {{{performtype|}}} | {{{performtype|}}} | {{#switch: {{lc:{{{ |
{{!}}colspan=2{{!}}{{#if: {{{performtype|}}} | {{{performtype|}}} | {{#switch: {{lc:{{{status|}}}}} | planned |obsolete= ''Unknown'' |<includeonly>[[missing::Infobox entry on performance type|''Unknown'']]</includeonly>}}}}}} |
||
|- |
|- |
||
{{#ifeq:{{lc:{{{guild}}}}}|bard||! style="text-align:left"{{!}}'''Valid Spell Target:''' |
{{#ifeq:{{lc:{{{guild}}}}}|bard||! style="text-align:left"{{!}}'''Valid Spell Target:''' |
||
{{!}}colspan=2{{!}}{{#if:{{{validtarget|}}} | {{{validtarget}}} | {{#switch: {{lc:{{{ |
{{!}}colspan=2{{!}}{{#if:{{{validtarget|}}} | {{{validtarget}}} | {{#switch: {{lc:{{{status|}}}}} | planned |obsolete= ''Unknown'' |<includeonly>[[missing::Infobox entry on valid target|''Unknown'']]</includeonly>}}}}}} |
||
|- |
|- |
||
! style="text-align:left"|'''Description:''' |
! style="text-align:left"|'''Description:''' |
||
| colspan=2|{{#if:{{{desc|}}} | {{{desc}}} | {{#switch: {{lc:{{{ |
| colspan=2|{{#if:{{{desc|}}} | {{{desc}}} | {{#switch: {{lc:{{{status|}}}}} | planned |obsolete= ''Unknown'' |<includeonly>[[missing::Infobox entry on description|''Unknown'']]</includeonly>}}}} |
||
|- |
|- |
||
! style="text-align:left"|'''Example Messaging:''' |
! style="text-align:left"|'''Example Messaging:''' |
||
| colspan=2|{{#if:{{{messaging|}}} | {{{messaging}}} | {{#switch: {{lc:{{{ |
| colspan=2|{{#if:{{{messaging|}}} | {{{messaging}}} | {{#switch: {{lc:{{{status|}}}}} | planned |obsolete= ''Unknown'' |<includeonly>[[missing::Infobox entry on messaging|''Unknown'']]</includeonly>}}}} |
||
|- |
|- |
||
{{#ifeq:{{lc:{{{guild}}}}}|bard|! style="text-align:left"{{!}}'''Enchante Structure:''' |
{{#ifeq:{{lc:{{{guild}}}}}|bard|! style="text-align:left"{{!}}'''Enchante Structure:''' |
||
{{!}}colspan=2{{!}}{{#if:{{{struct|}}} | {{{struct}}} | {{#switch: {{lc:{{{ |
{{!}}colspan=2{{!}}{{#if:{{{struct|}}} | {{{struct}}} | {{#switch: {{lc:{{{status|}}}}} | planned |obsolete= ''Unknown'' |<includeonly>[[missing::Infobox entry on enchante structure|''Unknown'']]</includeonly>}}}}}} |
||
|- |
|- |
||
{{#ifeq:{{lc:{{{guild}}}}}|bard|! style="text-align:left"{{!}}'''Prep Time:''' |
{{#ifeq:{{lc:{{{guild}}}}}|bard|! style="text-align:left"{{!}}'''Prep Time:''' |
||
{{!}}colspan=2{{!}}{{#if:{{{prep|}}} | {{{prep}}} | {{#switch: {{lc:{{{ |
{{!}}colspan=2{{!}}{{#if:{{{prep|}}} | {{{prep}}} | {{#switch: {{lc:{{{status|}}}}} | planned |obsolete= ''Unknown'' |<includeonly>[[missing::Infobox entry on prep time|''Unknown'']]</includeonly>}}}}}} |
||
|- |
|- |
||
{{#ifeq:{{lc:{{{guild}}}}}|bard|! style="text-align:left"{{!}}'''Pulse Timing:''' |
{{#ifeq:{{lc:{{{guild}}}}}|bard|! style="text-align:left"{{!}}'''Pulse Timing:''' |
||
{{!}}colspan=2{{!}}{{#if:{{{pulse|}}} | {{{pulse}}} | {{#switch: {{lc:{{{ |
{{!}}colspan=2{{!}}{{#if:{{{pulse|}}} | {{{pulse}}} | {{#switch: {{lc:{{{status|}}}}} | planned |obsolete= ''Unknown'' |<includeonly>[[missing::Infobox entry on pulse timing|''Unknown'']]</includeonly>}}}}}} |
||
|- |
|- |
||
{{#ifeq:{{lc:{{{guild}}}}}|bard|! style="text-align:left"{{!}}'''Enchante Duration:''' |
{{#ifeq:{{lc:{{{guild}}}}}|bard|! style="text-align:left"{{!}}'''Enchante Duration:''' |
||
{{!}}colspan=2{{!}}{{#if:{{{duration|}}} | {{{duration}}} | {{#switch: {{lc:{{{ |
{{!}}colspan=2{{!}}{{#if:{{{duration|}}} | {{{duration}}} | {{#switch: {{lc:{{{status|}}}}} | planned |obsolete= ''Unknown'' |<includeonly>[[missing::Infobox entry on enchante duration|''Unknown'']]</includeonly>}}}}}} |
||
|} |
|} |
||
<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 or obsolete spell --> |
||
{{#ifeq:{{lc:{{{guild}}}}}|bard|{{cat|Bard Enchantes}}|{{cat|Spells}} |
{{#ifeq:{{lc:{{{guild}}}}}|bard|{{cat|Bard Enchantes}}|{{cat|Spells}} |
||
}} |
}} |
||
{{#switch |
{{#switch:{{{planned}}}|yes|y=[[needs categorization::true| ]]}} |
||
{{#switch: {{lc:{{{status|}}}}} |
|||
| |
|planned | plan=[[in development::true| ]] |
||
{{#if: {{{guild|}}} | |
{{#if: {{{guild|}}} | |
||
{{#switch:{{lc:{{{guild}}}}} |
{{#switch:{{lc:{{{guild}}}}} |
||
| Line 61: | Line 62: | ||
}} |
}} |
||
}} |
}} |
||
|obsolete | obs={{cat|Obsolete Spells}} |
|||
|{{#if: {{{guild|}}} | |
|||
{{#switch:{{lc:{{{guild}}}}} |
{{#switch:{{lc:{{{guild}}}}} |
||
|none= |
|none= |
||
| Line 80: | Line 82: | ||
| {{cat|{{{enchantebook}}}}} |
| {{cat|{{{enchantebook}}}}} |
||
}} |
}} |
||
{{#if: {{{spelltype|}}} | {{#arraymap:{{{spelltype}}}{{#if: {{{spelltype2|}}} | ,{{{spelltype2}}}}}{{#if: {{{spelltype3|}}} | ,{{{spelltype3}}}}} | , | x | [[Category:x Spells]][[spell type is::x| ]]| }} | {{#switch: {{lc:{{{ |
{{#if: {{{spelltype|}}} | {{#arraymap:{{{spelltype}}}{{#if: {{{spelltype2|}}} | ,{{{spelltype2}}}}}{{#if: {{{spelltype3|}}} | ,{{{spelltype3}}}}} | , | x | [[Category:x Spells]][[spell type is::x| ]]| }} | {{#switch: {{lc:{{{status|}}}}} | planned |obsolete= |[[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 87: | Line 89: | ||
{{#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:{{{ |
{{#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:{{{status|}}}}} | planned |obsolete= |[[missing::Infobox entry on spell tier| ]]}} |
||
}} |
}} |
||
}} |
}} |
||
| Line 122: | Line 124: | ||
|held= yes/no |
|held= yes/no |
||
|scroll= yes/no |
|scroll= yes/no |
||
|status= <blank>/planned/obsolete |
|||
|planned= yes/no |
|||
|tier=first/second/third/fourth/fifth |
|tier=first/second/third/fourth/fifth |
||
}} |
}} |
||
Revision as of 16:55, 8 February 2011
|
|
| 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
|status= <blank>/planned/obsolete
|tier=first/second/third/fourth/fifth
}}