Template:Infobox Spell: Difference between revisions
(Redirected page to Template:Infobox Spell) Tag: New redirect |
(Removed redirect to Template:Infobox Spell) Tag: Removed redirect |
||
Line 1: | 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> |
Latest revision as of 22:42, 17 October 2024
Infobox Spell | ||||
---|---|---|---|---|
Please add an image! | ||||
Released | Unknown (edit) | |||
Members | Unknown (edit) | |||
Level | Unknown (edit) | |||
Spellbook | Unknown (edit) | |||
Type | Unknown (edit) | |||
Experience | Unknown (edit) | |||
Runes | Unknown (edit) | |||
Description | Unknown (edit) | |||
Animation | ||||
Please add an animation! | ||||
Sound effect | ||||
Please add a sound effect! |
Parameters
name
The in-game name of the spell.
image
An image of the spell icon.
release
Release date of the spell. Should follow the format [[DD Month]] [[YYYY]].
update
Update page that the spell was released with. Do not include brackets ([[ & ]]) or the Update: prefix.
removal
(Optional) Removal date of the spell. Should follow the format [[DD Month]] [[YYYY]].
removalupdate
(Optional) Update page that the spell was removed with. Do not include brackets ([[ & ]]) or the Update: prefix.
members
Indicate whether or not the spell is members only. Yes or No.
level
Level required to cast the spell.
spellbook
Spellbook that the spell is cast from. Must be the string Normal, Ancient, Lunar, or Arceuus.
type
The type of the spell. Must be the string Combat, Utility, or Teleport.
exp
Amount of experience earned for casting the spell. Must be a number.
element
(Optional) The attack type of the spell. Supports the strings Air, Water, Earth or Fire.
damage
(Optional) The maximum damage the spell can inflect without damage boosts. May be a number.
cost
Runes required to cast spell. Use Template:RuneReq. For example, {{RuneReq|Nature=2|Water=4|Earth=4}}.
speed
(Optional) Amount of time taken to cast the spell in ticks. Should be a string describing the amount of time, such as "5 ticks".
cooldown
(Optional) Amount of time before the spell can be cast a second time. Should be a string describing the amount of time, such as "5 ticks".
quest
(Optional) Quest needed to cast the spell. Leave empty if no quest is needed, and omit Desert Treasure I and Lunar Diplomacy.
lectern
(Optional) Lowest level lectern that can be used to make a tablet for this spell, if it can be made. Leave empty if the spell can not be made into a tablet.
description
In-game on hover description of the spell.
anim
Image of an animation of the spell being cast. Can be the string "No" to hide the animation.
sound
Audio of the spell being cast.
Quick Copy
{{Infobox Spell |name = |image = |release = |update = |members = |level = |spellbook = |type = |exp = |element = (Optional) |damage = (Optional) |cost = |speed = (Optional) |quest = (Optional) |lectern = (Optional) |description = |anim = |sound = }}