Template:Spell: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(removed glcomment field since that data is duplicated in desc and prereqs fields)
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
<!--Adds to the Articles That Are Incomplete category if any non-optional information is missing, unless the spell is planned -->
<!--Adds to the Articles That Are Incomplete category if any non-optional information is missing, unless the spell is planned -->
<!-- the logic in this section is a bit tricky, so please do not edit this section if you do not have a clear understanding of how it works. Documentation on #if, #ifeq, and the rest of the ParserFunctions can be read here: http://meta.wikimedia.org/wiki/Help:ParserFunctions -->
{{#ifeq: {{{planned|}}} | yes | {{PlannedSpell {{!}} {{{name|This spell}}} }}|
{{#ifeq: {{{planned|}}} | yes | {{PlannedSpell {{!}} {{{name|This spell}}} }}|
{{#if:
{{#if:
Line 7: Line 8:
{{#if:{{{castcap|}}}|
{{#if:{{{castcap|}}}|
{{#if:{{{validtarget|}}}|
{{#if:{{{validtarget|}}}|
<!-- for "guild" field test only: return non-empty if spellbook = Analogous Patterns; else continue tests -->
{{#if:{{{guild|}}}|
{{#if:{{{spellbook|}}}|1
{{#if: {{#ifeq: {{{spellbook|}}} | Analogous Patterns | x | {{#if:{{{guild|}}}| }} }}|
}}
{{#if:{{{spellbook|}}}|1 }}
}}
}}
}}
}}
Line 16: Line 17:
}}
}}
||{{Incomplete|Some information is missing from the spell infobox below.}}}}
||{{Incomplete|Some information is missing from the spell infobox below.}}}}
}}
}}
</includeonly>
</includeonly>



Revision as of 12:13, 10 May 2008



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= <!--links to other spells if needed-->
|minprep=
|castcap=
|validtarget= Self
|desc=
|messaging=
|guild=
|spellbook=
|spelltype=
|target= yes/no
|held= yes/no
|scroll= yes/no
|planned= yes/no
}}