Template:Spell: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
m (test, trying to get Mana Type to populate results)
No edit summary
Tag: Manual revert
 
(128 intermediate revisions by 8 users not shown)
Line 3: Line 3:
{| style="float:right"
{| style="float:right"
|{{#arraymaptemplate:{{{guild}}} | Template:GuildThumb|,| }}
|{{#arraymaptemplate:{{{guild}}} | Template:GuildThumb|,| }}
<br>{{#if: {{{Image File|}}} | [[Image:{{{Image File}}}|300px]] | }}
|}
|}
{| class=wikitable width=60%
{| class=wikitable width=60%
Line 8: Line 9:
! 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}}}}}]]'''
! valign="middle" width=20% style="background:#B9B59C;border-left:hidden"| {{#switch: {{lc:{{{source|}}}}} | scroll only=[[Image:miniscroll.jpg | Scroll-only Spell]][[scroll-only spell::true| ]]|[[scroll-only spell::false| ]]}} {{#if:{{#arraymaptemplate:{{{type|}}} | Template:SpellTargetCheck|,| }}|[[Image:minitarget.jpg|Targeted Magic spell]][[targeted magic spell::true| ]]|[[targeted magic spell::false| ]] |}}{{#if:{{#arraymaptemplate:{{{ctype|}}} | Template:SpellCycleCheck|,| }}|[[Image:miniheld.jpg|Cyclic spell]][[cyclic spell::true| ]]{{Cat|Cyclic spells}}|[[cyclic spell::false| ]] |}}
! valign="middle" width=20% style="background:#B9B59C;border-left:hidden"| {{#switch: {{lc:{{{source|}}}}} | scroll only=[[Image:miniscroll.png | Scroll-only Spell]][[scroll-only spell::true| ]]|[[scroll-only spell::false| ]]}} {{#if:{{#arraymaptemplate:{{{type|}}} | Template:SpellTargetCheck|,| }}|[[Image:Minitarget.png|Targeted Magic spell]][[targeted magic spell::true| ]]|[[targeted magic spell::false| ]] |}}{{#if:{{#arraymaptemplate:{{{ctype|}}} | Template:SpellCycleCheck|,| }}|[[Image:Miniheld.png|Cyclic spell]][[cyclic spell::true| ]]{{Cat|Cyclic spells}}|[[cyclic spell::false| ]] |}} {{#if:{{#arraymaptemplate:{{{illegal|}}} | Template:SpellIllegalCheck|,| }}|[[Image:Minijustice.png|30px|Justice triggering spell]][[is illegal::true| ]]{{Cat|Illegal spells}}|[[is illegal::false| ]] |}} {{#if:{{#arraymaptemplate:{{{corrupt|}}} | Template:SpellCorruptCheck|,| }}|[[Image:Icon necromancer.gif|30px|Causes outrage or corruption]] |}}
|-
|-
! style="text-align:left"|'''Abbreviation:'''
! style="text-align:left"|'''Abbreviation:'''
Line 14: Line 15:
|-
|-
! style="text-align:left"|'''Prerequisites:'''
! style="text-align:left"|'''Prerequisites:'''
| colspan=2|{{#if:{{{prereqs|}}} | {{{prereqs}}} | {{#switch: {{lc:{{{status|}}}}} | planned |obsolete= ''Unknown'' |<includeonly>[[missing::Infobox entry on prerequisits|''Unknown'']]</includeonly>}}}}
| colspan=2|{{#if:{{{prereqs|}}} | {{{prereqs}}} | {{#switch: {{lc:{{{status|}}}}} | planned |obsolete= ''Unknown'' |<includeonly>[[missing::Infobox entry on prerequisites|''Unknown'']]</includeonly>}}}}
|-
|-
! style="text-align:left"|'''Slot Cost:'''
! style="text-align:left"|'''Signature:'''
| colspan=2|{{#switch:{{lc:{{{sig}}}}}|y|yes|t|true={{Cat|Signature spells}}[[signature spell::true|Yes]]|[[signature spell::false|No]]{{Cat|Non-signature spells}}}}
|-
! style="text-align:left"|'''Spell Slots:'''
| colspan=2|{{#if:{{{slot|}}} | [[slot cost is::{{{slot}}}]] | <includeonly>[[missing::Infobox entry on slot cost|''Unknown'']]</includeonly>}}
| colspan=2|{{#if:{{{slot|}}} | [[slot cost is::{{{slot}}}]] | <includeonly>[[missing::Infobox entry on slot cost|''Unknown'']]</includeonly>}}
|-
{{#switch:{{lc:{{{wardslot}}}}}|0-slot|1-slot=
! style="text-align:left" {{!}} '''Ward Slots:'''
{{!}} colspan="2" {{!}} {{#switch: {{lc:{{{sig}}}}} | y | yes | t | true = This spell uses {{#ifeq:{{{wardslot}}}|0-slot|0|1}} ward slot{{#ifeq:{{{wardslot}}}|0-slot|s| }} when cast by {{{guild}}}s. | #default = This spell uses {{#ifeq:{{{guild}}}|None|{{#ifeq:{{{wardslot}}}|0-slot|1|2}} ward slot{{#ifeq:{{{wardslot}}}|0-slot| |s}} when cast by anyone.|{{#ifeq:{{{wardslot}}}|0-slot|0|1}} ward slot{{#ifeq:{{{wardslot}}}|0-slot|s| }} when cast by {{#ifeq:{{{guild}}}|Any|anyone.|{{{guild}}}s, {{#ifeq:{{{wardslot}}}|0-slot|1|2}} ward slot{{#ifeq:{{{wardslot}}}|0-slot| |s}} for everyone else.}}}}}} {{Cat|Spells using warding slots}}[[ward slot spell::true| ]][[ward slot cost::{{#ifeq:{{{wardslot}}}|0-slot|0|1}}| ]]||[[ward slot spell::false| ]]}}
|-
|-
! style="text-align:left"{{!}}'''Mana Type:'''
! style="text-align:left"{{!}}'''Mana Type:'''
| colspan=2 | {{#if:{{{magic|}}} | [[magic type is::{{{magic}}}]]
| colspan=2 |{{Cat|Magic}}{{#if:{{{magic|}}} | [[magic type is::{{{magic}}}]] | {{#switch:{{lc:{{{magic}}}}}|none=|any=[[magic type is::none| ]][[magic type is::Analagous]][[magic type is::Arcane magic| ]][[magic type is::Elemental magic| ]][[magic type is::Holy magic| ]][[magic type is::Life magic| ]][[magic type is::Lunar magic| ]] |<includeonly>[[missing::Infobox entry on mana type|''Unknown'']]</includeonly>}}}}
|<includeonly>[[missing::Infobox entry on mana type|''Unknown'']]</includeonly>}}
|-
|-
! style="text-align:left"{{!}}'''Spell Type:'''
! style="text-align:left"{{!}}'''Spell Type:'''
Line 39: Line 48:
{{#if:{{IfMatch|metamagic|{{{ctype|}}}}}| | {{#ifeq:{{{validtarget}}} | - | |
{{#if:{{IfMatch|metamagic|{{{ctype|}}}}}| | {{#ifeq:{{{validtarget}}} | - | |
! style="text-align:left"{{!}}'''Valid Spell Target:'''
! style="text-align:left"{{!}}'''Valid Spell Target:'''
{{!}}colspan=2{{!}}{{#if:{{{validtarget|}}} | {{{validtarget}}} | {{#switch: {{lc:{{{status|}}}}} | planned |obsolete= ''Unknown'' |<includeonly>[[missing::Infobox entry on valid target|''Unknown'']]</includeonly>}}}}}}
{{!}}colspan=2{{!}}{{#if:{{{validtarget|}}} | [[Valid target is::{{{validtarget}}}]] | {{#switch: {{lc:{{{status|}}}}} | planned |obsolete= ''Unknown'' |<includeonly>[[missing::Infobox entry on valid target|''Unknown'']]</includeonly>}}}}}}
{{!}}-}}
{{!}}-}}
{{#switch:{{{minduration}}}|=-|{{#if:{{IfMatch|metamagic|{{{ctype|}}}}}| |
{{#switch:{{{minduration}}}|=-|{{#if:{{IfMatch|metamagic|{{{ctype|}}}}}| |
Line 48: Line 57:
{{!}}colspan=2{{!}}{{#if:{{{pulse|}}} | {{{pulse}}} seconds | {{#switch: {{lc:{{{status|}}}}} | planned |obsolete= ''Unknown'' |<includeonly>[[missing::Infobox entry on pulse timing|''Unknown'']]</includeonly>}}}}}}
{{!}}colspan=2{{!}}{{#if:{{{pulse|}}} | {{{pulse}}} seconds | {{#switch: {{lc:{{{status|}}}}} | planned |obsolete= ''Unknown'' |<includeonly>[[missing::Infobox entry on pulse timing|''Unknown'']]</includeonly>}}}}}}
|-
|-
{{#if:{{IfMatch|metamagic|{{{ctype|}}}}}| | {{#ifeq:{{{illegal}}} | - | |
! style="text-align:left"{{!}}'''Justice:'''
{{!}}colspan=2{{!}}{{#if:{{{illegal|}}} | {{{illegal}}} | {{#switch: {{lc:{{{status|}}}}} | planned |obsolete= ''Unknown'' |<includeonly>[[missing::Infobox entry on justice|''Unknown'']]</includeonly>}}}}}}
{{!}}-}}
{{#if:{{IfMatch|metamagic|{{{ctype|}}}}}| | {{#ifeq:{{{corrupt}}} | - | |
! style="text-align:left"{{!}}'''Corruption:'''
{{!}}colspan=2{{!}}{{#if:{{{corrupt|}}} | {{{corrupt}}} | {{#switch: {{lc:{{{status|}}}}} | planned |obsolete= ''Unknown'' |<includeonly>[[missing::Infobox entry on corrupt|''Unknown'']]</includeonly>}}}}}}
{{!}}-}}
! style="text-align:left"|'''Description:'''
! style="text-align:left"|'''Description:'''
| colspan=2|{{#if:{{{desc|}}} | {{{desc}}} | {{#switch: {{lc:{{{status|}}}}} | planned |obsolete= ''Unknown'' |<includeonly>[[missing::Infobox entry on description|''Unknown'']]</includeonly>}}}}
| colspan=2|{{#if:{{{desc|}}} | {{{desc}}} | {{#switch: {{lc:{{{status|}}}}} | planned |obsolete= ''Unknown'' |<includeonly>[[missing::Infobox entry on description|''Unknown'']]</includeonly>}}}}
Line 56: Line 73:
{{#ifeq:{{{messaging}}} | - | |
{{#ifeq:{{{messaging}}} | - | |
! style="text-align:left"{{!}}'''Example Messaging:'''
! style="text-align:left"{{!}}'''Example Messaging:'''
{{!}} colspan=2{{!}}{{#if:{{{messaging|}}} | [[messaging is::{{{messaging}}}]] | {{#switch: {{lc:{{{status|}}}}} | planned |obsolete= ''Unknown'' |<includeonly>[[missing::Infobox entry on messaging|''Unknown'']]</includeonly>}}}}
{{!}} colspan=2{{!}}{{#if:{{{messaging|}}} | {{{messaging}}} | {{#switch: {{lc:{{{status|}}}}} | planned |obsolete= ''Unknown'' |<includeonly>[[missing::Infobox entry on messaging|''Unknown'']]</includeonly>}}}}
{{!}}-}}
{{!}}-}}
|-
|-
{{#switch:{{lc:{{{poststring}}}}}|y|yes|t|true=
! style="text-align:left"{{!}}'''Post String(s):'''
{{!}} colspan=2{{!}}{{#if:{{{visualstring|}}} | {{#arraymap:{{lc:{{{visualstring}}}}}|,|@@@@|[[Post room string is::@@@@|@@@@<br>]]| }}[[Has post room string::true| ]] | ''Post Room String Messaging Needed''[[Post room string is::Unknown| ]]}}
{{!}}-}}
{{#if:{{{offtype|}}}{{{deftype|}}}|
{{#if:{{{offtype|}}}{{{deftype|}}}|
! style="text-align:left"{{!}}'''Contest Type:'''
! style="text-align:left"{{!}}'''Contest Type:'''
{{!}} colspan=2{{!}}{{#switch: {{lc:{{{status|}}}}} | planned |obsolete=|[[Category:Contested abilities| ]]}}{{#if:{{{offtype|}}} | {{#switch: {{lc:{{{status|}}}}} | planned |obsolete={{{offtype}}}|[[offensive contest is::{{{offtype}}}]][[Category:{{{offtype}}} contest abilities| ]]}} | <includeonly>[[missing::Infobox entry on offensive contest|''Unknown'']]</includeonly>}} / {{#if:{{{deftype|}}} | {{#switch: {{lc:{{{status|}}}}} | planned |obsolete={{{deftype}}}|[[defensive contest is::{{{deftype}}}]][[Category:{{{deftype}}} contest abilities| ]]}} | <includeonly>[[missing::Infobox entry on defensive contest|''Unknown'']]</includeonly>}}}}
{{!}} colspan=2{{!}}{{#switch: {{lc:{{{status|}}}}} | planned |obsolete=|[[Category:Contested abilities| ]]}}{{#if:{{{offtype|}}} | {{#switch: {{lc:{{{status|}}}}} | planned |obsolete={{{offtype}}}|[[offensive contest is::{{{offtype}}}]][[Category:{{{offtype}}} contest abilities| ]]}} | <includeonly>[[missing::Infobox entry on offensive contest|''Unknown'']]</includeonly>}} / {{#if:{{{deftype|}}} | {{#switch: {{lc:{{{status|}}}}} | planned |obsolete={{{deftype}}}|[[defensive contest is::{{{deftype}}}]][[Category:{{{deftype}}} contest abilities| ]]}} | <includeonly>[[missing::Infobox entry on defensive contest|''Unknown'']]</includeonly>}}}}
|-
! style="text-align:left"{{!}}'''Devices/Tattoos:'''
| colspan="2" | {{#ask: [[item casts spell::{{PAGENAME}}]]|default=No devices or tattoos documented.}}
|}<includeonly>
|}<includeonly>
<!-- Categories and properties -->[[page type is::spell| ]]{{Cat|Spells}}{{#if:{{{guild|}}}|{{#switch:{{lc:{{{guild}}}}}|none=|any=[[guild association is::none| ]]<!--[[guild association is::Bard| ]][[guild association is::Cleric| ]][[guild association is::Empath| ]][[guild association is::Moon Mage| ]][[guild association is::Necromancer| ]][[guild association is::Paladin| ]][[guild association is::Ranger| ]][[guild association is::Warrior Mage| ]]-->|{{#arraymap:{{{guild}}}|,|@@@@|[[guild association is::@@@@| ]]| }}}}}}<!--do not add categories if it is a planned or obsolete spell -->{{#switch:{{{planned}}}|yes|y=[[missing::categorization| ]]}}
<!-- Categories and properties -->[[page type is::spell| ]]{{Cat|Spells}}{{#if:{{{guild|}}}|{{#switch:{{lc:{{{guild}}}}}|none=|any=[[guild association is::none| ]]<!--[[guild association is::Bard| ]][[guild association is::Cleric| ]][[guild association is::Empath| ]][[guild association is::Moon Mage| ]][[guild association is::Necromancer| ]][[guild association is::Paladin| ]][[guild association is::Ranger| ]][[guild association is::Warrior Mage| ]]-->|{{#arraymap:{{{guild}}}|,|@@@@|[[guild association is::@@@@| ]]| }}}}}}<!--do not add categories if it is a planned or obsolete spell -->{{#switch:{{{planned}}}|yes|y=[[missing::categorization| ]]}}
Line 84: Line 108:
|[[spellbook is::{{{spellbook}}}| ]]{{cat|{{{spellbook}}} spellbook}}
|[[spellbook is::{{{spellbook}}}| ]]{{cat|{{{spellbook}}} spellbook}}
|[[missing:Infobox missing spellbook| ]]
|[[missing:Infobox missing spellbook| ]]
}}{{
}}
#switch:{{lc:{{{sig}}}}}|y|yes|t|true={{Cat|Signature spells}}[[signature spell::true| ]]|[[signature spell::false| ]]{{Cat|Non-signature spells}}{{#switch:{{{source}}}|standard={{Cat|Scroll spells}}|}}
{{#switch:{{{source}}}|standard={{Cat|Scroll spells}}|}}
}}{{
{{
#if:{{{buffs|}}}|{{#switch:{{{buffs|}}}|No buffs|-= |{{#arraymap:{{{buffs}}}|,|@@@@|[[boosts::@@@@| ]]| }} }}
#if:{{{buffs|}}}|{{#switch:{{{buffs|}}}|No buffs|-= |{{#arraymap:{{{buffs}}}|,|@@@@|[[boosts::@@@@| ]]| }} }}
}}{{
}}{{
Line 121: Line 145:
|messaging=
|messaging=
|guild=
|guild=
|magic=Analogous/Arcane magic/Elemental magic/Holy magic/Life magic/Lunar magic
|magic=Analogous Patterns/Arcane Magic/Elemental Magic/Holy Magic/Life Magic/Lunar Magic
|ctype=standard/battle/cyclic/ritual/feat (use commas if more than one)
|ctype=standard/battle/cyclic/ritual/feat (use commas if more than one)
|type=augmentation/debilitation/targeted/utility/warding/multistrike/pulse damage/area of effect/pulse to group/death from above (use commas if more than one)
|type=augmentation/debilitation/targeted/utility/warding/multistrike/pulse damage/area of effect/pulse to group/death from above (use commas if more than one)

Latest revision as of 17:10, 5 July 2024



Spell
Abbreviation:
Prerequisites:
Signature: No
Spell Slots:
Mana Type:
Spell Type: /
Difficulty:
Prep (min/max): /
Skill Range (min/max): /
Valid Spell Target:
Duration (min/max):
Justice:
Corruption:
Description:
Effect:
Example Messaging:
Devices/Tattoos: No devices or tattoos documented.

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= <!--if no abbreviation then put "-" -->
|prereqs= <!--manually add links to other spells, if needed-->
|minprep=
|castcap= <!--if unlimited, put "-" -->
|minskill= <!--as per DISCERN-->
|maxskill= <!--as per DISCERN-->
|minduration= in roisaen. If the spell is instant enter '-'
|maxduration= in roisaen.
|validtarget=self/pc/creature/group/area/item/special
|sig=<blank>/y/yes/t/true
|slot=
|diff=intro/basic/advanced/esoteric
|source=standard/scroll only/quest <!--Standard = Learned from guildleader. Scroll Only= Found only on scrolls. Quest = Learned from a quest-->
|pulse= for cyclics
|desc=
|effect=shorthand version of effect. e.g +evasion. Do not include links. Full effect should go in the ==Notes== below the template.
|messaging=
|guild=
|magic=Analogous Patterns/Arcane Magic/Elemental Magic/Holy Magic/Life Magic/Lunar Magic
|ctype=standard/battle/cyclic/ritual/feat (use commas if more than one)
|type=augmentation/debilitation/targeted/utility/warding/multistrike/pulse damage/area of effect/pulse to group/death from above (use commas if more than one)
|status= <blank>/planned/obsolete
}}