Template:Infobox Spell: Difference between revisions

Removed redirect to Template:Infobox Spell
(Redirected page to Template:Infobox Spell)
Tag: New redirect
 
(Removed redirect to Template:Infobox Spell)
Tag: Removed redirect
 
Line 1:
{| class="infobox {{parentitle|{{{name}}}}} infobox-spell"
#REDIRECT [[Template:Infobox Spell]]
|-
! class="infobox-header" colspan=5 | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
|-
| colspan="5" class="infobox-padding" |
|-
| class="infobox-image inventory-image infobox-full-width-content" colspan="5" | {{#if:{{{image|}}}|{{{image}}}{{#set:
|Image = {{#sub:{{{image}}} <!-- substring of image parameter from 2 up to either | or ] -->
|2
|{{#expr:
{{#if: {{#pos:{{{image}}}|{{!}}}}
|{{#pos:{{{image}}}|{{!}}}}
|{{#pos:{{{image}}}|]}}
}} - 2 <!-- -2 to subtract length of '[[' -->
}}
}}
}}|[[Special:Upload|Please add an image!]]}}
|-
| colspan="5" class="infobox-padding" |
|-
! colspan="2" | Released
| colspan="3" | {{#if:{{{release|}}}|{{{release}}} {{#if:{{{update|}}}|([[Release update::Update:{{{update}}}|Update]])| - Update {{Unknown}}}}|{{Unknown}}}}
{{#if:{{{removal|}}}|
{{!}}-
! colspan="2" {{!}} Removal
{{!}} colspan="3" {{!}} {{{removal}}} {{#if:{{{removalupdate|}}}|([[Update:{{{update}}}|Update]])| - Update {{Unknown}}}}
}}
|-
! colspan="2" | [[Members]]
| colspan="3" | {{#if:{{{members|}}}|[[Is members only::{{{members}}}]]|{{Unknown}}}}
|-
! colspan="2" | Level
| colspan="3" | {{#if:{{{level|}}}|{{SCP|Magic|[[Magic level::{{{level}}}]]{{#set:Uses skill|Magic}}}}|{{Unknown}}}}{{#if:{{{slayerlevel|}}}|<br/>{{SCP|Slayer|[[Slayer level::{{{slayerlevel}}}]]{{#set:Uses skill|Slayer}}}}}}
|-
! colspan="2" | [[Spellbook]]
| colspan="3" | {{#switch:{{lc:{{{spellbook|}}}}}
|normal = [[Spellbook::Standard spellbook|Standard]]
|ancient = [[Spellbook::Ancient Magicks|Ancient]]
|lunar = [[Spellbook::Lunar spellbook|Lunar]]
|arceuus = [[Spellbook::Arceuus spellbook|Arceuus]]
|all = [[Spellbook::Standard spellbook|Standard]]<br>[[Spellbook::Ancient Magicks|Ancient]]<br>[[Spellbook::Lunar spellbook|Lunar]]<br/>[[Spellbook::Arceuus spellbook|Arceuus]]
|#default = {{Unknown}}}}
|-
! colspan="2" | Type
| colspan="3" | {{#switch:{{lc:{{{type|}}}}}
|combat = [[Spell type::Combat spells|Combat]]
|teleport = [[Spell type::Teleportation spells|Teleport]]
|utility = [[Spell type::Utility spells|Utility]]
|#default = {{Unknown}}}}
|-
! colspan="2" | [[Experience]]
| colspan="3" | {{#if:{{{exp|}}}|<span id="XPEach"><span class="XPEach">[[Magic experience::{{{exp}}}]]</span></span>|{{Unknown}}}}
|-
{{#if:{{{element|}}}|
! colspan="2" {{!}} [[Attack style|Element]]
{{!}} colspan="3" {{!}} {{#if:{{{element|}}}|[[{{{element}}} spells{{!}}{{{element}}}]]|{{Unknown}}}}
{{!}}-
}}
{{#if:{{{damage|}}}|
! colspan="2" {{!}} [[Maximum magic hit|Base max hit]]
{{!}} colspan="3" {{!}} {{#if:{{{damage|}}}|[[Max hit::{{{damage}}}]]|{{Unknown}}}}
{{!}}-
}}
! colspan="2" | [[Runes]]
| colspan="3" | {{#vardefine:RuneCostSMW|yes}}{{#if:{{{cost|}}}|{{{cost}}}|{{Unknown}}}}{{#vardefine:RuneCostSMW|}}
|-
{{#if:{{{speed|}}}|
! colspan="2" {{!}} [[RuneScape clock#Magic|Casting speed]]
{{!}} colspan="3" {{!}} {{{speed}}}
{{!}}-
}}
{{#if:{{{cooldown|}}}|
! colspan="2" {{!}} Cooldown
{{!}} colspan="3" {{!}} {{{cooldown}}}
{{!}}-
}}
{{#if:{{{quest|}}}|
! colspan="2" {{!}} [[Quest]]
{{!}} colspan="3" {{!}} {{#if:{{{quest|}}}
|{{{quest|}}}{{#switch:{{lc:{{{spellbook}}}}}
|ancient=<br>(plus [[Desert Treasure I]])
}}|{{#switch:{{lc:{{{spellbook}}}}}
|ancient=[[Desert Treasure I]]
|lunar=[[Lunar Diplomacy]]
}}
}}
{{!}}-
}}
{{#if:{{{lectern|}}}|
! colspan="2" {{!}} [[Lectern]]
{{!}} colspan="3" {{!}} {{{lectern}}}
{{!}}-
}}
! colspan="2" | Description
| colspan="3" | {{#if:{{{description|}}}|{{{description}}}|{{Unknown}}}}
|-
{{#ifeq:{{lc:{{{anim}}}}}|no||
{{!}}-
{{!}} colspan="5" class="infobox-padding" {{!}}
{{!}}-
! colspan="5" class="infobox-subheader" {{!}} Animation
{{!}}-
{{!}} class="infobox-full-width-content" colspan="5" {{!}} {{#if:{{{anim|}}}|{{{anim}}}|[[Special:Upload|Please add an animation!]]}}
}}
|-
{{#ifeq:{{lc:{{{sound}}}}}|no||
{{!}}-
{{!}}-
! colspan="5" class="infobox-subheader" {{!}} Sound effect
{{!}}-
{{!}} class="infobox-full-width-content infobox-media-player" colspan="5" {{!}} {{#if:{{{sound|}}}|{{{sound}}}|[[Special:Upload|Please add a sound effect!]]}}
}}
|-
|}{{#set:Uses infobox|Spell}}{{mainonly|
[[Category:Spells]]
{{#if:{{{image|}}}||[[Category:Needs image]]}}
{{#if:{{{release|}}}||[[Category:Needs release date]]}}
{{#if:{{{update|}}}||[[Category:Needs update added]]}}
{{#if:{{{exp|}}}||[[Category:Needs experience info]]}}
{{#if:{{{sound|}}}||[[Category:Needs sound effect added]]}}
{{#ifeq:{{{cooldown|No}}}|No||[[Category:Spells with cooldowns]]}}
{{ifincl|standard|{{lc:{{{spellbook}}}}}|[[Category:Standard spells]]|}}
{{ifincl|normal|{{lc:{{{spellbook}}}}}|[[Category:Standard spells]]|}}
{{ifincl|lunar|{{lc:{{{spellbook}}}}}|[[Category:Lunar spells]]|}}
{{ifincl|arceuus|{{lc:{{{spellbook}}}}}|[[Category:Arceuus spells]]|}}
{{ifincl|ancient|{{lc:{{{spellbook}}}}}|[[Category:Ancient Magicks]]|}}
{{#ifeq:{{ucfirst:{{{members|}}}}}|No|[[Category:Free-to-play spells]]|[[Category:Members' spells]]}}
}}<noinclude>{{/doc}}</noinclude>