Template:Spell: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
m (Reverted edits by Farman (Talk); changed back to last version by Caraamon)
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 -->
<!-- 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}}} }}|
{{#if:
{{#if:
{{#if:{{{name|}}}|
{{#if:{{{name|}}}|
Line 8: Line 6:
{{#if:{{{castcap|}}}|
{{#if:{{{castcap|}}}|
{{#if:{{{validtarget|}}}|
{{#if:{{{validtarget|}}}|
{{#if:{{{guild|}}}|
<!-- for "guild" field test only: return non-empty if spellbook = Analogous Patterns; else continue tests -->
{{#if: {{#ifeq: {{{spellbook|}}} | Analogous Patterns | x | {{#if:{{{guild|}}}| }} }}|
{{#if:{{{spellbook|}}}|1
{{#if:{{{spellbook|}}}|1 }}
}}
}}
}}
}}
}}
Line 16: Line 14:
}}
}}
}}
}}
||{{Incomplete|Some information is missing from the spell infobox below.}}}}
||{{Incomplete}}}}
}}
</includeonly>
</includeonly>
{{#ifeq: {{{planned|}}} | yes | {{PlannedSpell {{!}} {{{name|This spell}}} }} }}

{| style="float:right"
{| style="float:right"
|{{GuildThumb |{{{guild|}}} }}
|{{GuildThumb |{{{guild|}}} }}
Line 46: Line 43:
! style="text-align:left"|'''Description:'''
! style="text-align:left"|'''Description:'''
| colspan=2|{{{desc|}}}
| colspan=2|{{{desc|}}}
|-
! style="text-align:left"|'''Guildleader Comments:'''
| colspan=2|{{{glcomment|}}}
|-
|-
! style="text-align:left"|'''Example Messaging:'''
! style="text-align:left"|'''Example Messaging:'''
Line 100: Line 100:
|validtarget= Self
|validtarget= Self
|desc=
|desc=
|glcomment=
|messaging=
|messaging=
|guild=
|guild=

Revision as of 12:19, 10 May 2008



Spell Infobox
Abbreviation:
Prerequisites:
Minimum Prep:
Casting Cap:
Valid Spell Target:
Description:
Guildleader Comments:
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=
|glcomment=
|messaging=
|guild=
|spellbook=
|spelltype=
|target= yes/no
|held= yes/no
|scroll= yes/no
|planned= yes/no
}}