Template:Infobox Magic: Difference between revisions
From Horizon Wiki Mirror
Content deleted Content added
imported>Kaimoon0 MagicJobs cargo table (closer alignment to LSB's table) |
imported>Kaimoon0 fit all icons to 32px |
||
| (16 intermediate revisions by the same user not shown) | |||
| Line 5: | Line 5: | ||
{{Infobox Magic |
{{Infobox Magic |
||
| spell name = |
| spell name = |
||
| |
| icon = |
||
| type = |
|||
| skill = |
|||
| description = |
| description = |
||
| mp = |
| mp = |
||
| Line 15: | Line 17: | ||
| drk level = |
| drk level = |
||
| brd level = |
| brd level = |
||
| smn level = |
|||
| nin level = |
| nin level = |
||
| sch level = |
| sch level = |
||
| Line 25: | Line 28: | ||
| base duration = |
| base duration = |
||
| range = |
| range = |
||
| horizon changes = |
|||
}} |
}} |
||
</pre>|disable={{{1|}}}}}<!-- |
</pre>|disable={{{1|}}}}}<!-- |
||
| Line 33: | Line 37: | ||
{{Infobox Magic |
{{Infobox Magic |
||
| spell name = {As it appears in your spell list, without abbreviations} |
| spell name = {As it appears in your spell list, without abbreviations} |
||
| icon = {ex. File:Poison-menu-xiview.webp} |
|||
| spell type = {elemental, enhancing, healing, divine, dark, summoning, blue, ninjutsu, geomancy, song or trust} |
|||
| type = {White Magic, Black Magic, Song, Summoning, Ninjutsu, Blue Magic, Geomancy} |
|||
| skill = {elemental, enhancing, healing, divine, dark, summoning, blue, ninjutsu, geomancy, singing} |
|||
| description = {taken directly from the game's own description of the spell.} |
| description = {taken directly from the game's own description of the spell.} |
||
| mp = {If any, the base MP cost of the spell.} |
| mp = {If any, the base MP cost of the spell.} |
||
| element = {If any, the element of the spell eg. fire, earth, water, wind, ice, lightning, light, dark} |
| element = {If any, the element of the spell eg. fire, earth, water, wind, ice, lightning, light, dark} |
||
| whm level, blm level, rdm level, pld level, drk level, brd level, smn level, nin level, sch level, geo level, run level = {Level each job can learn the spell.} |
|||
| jobs = {A list of the jobs that can cast that spell, as well as the base level required to learn the spell. Ideally ordered from lowest -> highest level. In the cast of a PUP automaton, list the minimum puppet magic skill level required to cast the spell.} |
|||
| casting time = {The base casting time of the spell eg. 2} |
| casting time = {The base casting time of the spell eg. 2} |
||
| recast time = {the base recast time of the spell eg. 10} |
| recast time = {the base recast time of the spell eg. 10} |
||
| Line 43: | Line 49: | ||
| base duration = {for enfeebling or enhancing magic, the base duration of an unresisted spell eg. 2 minutes 30 seconds} |
| base duration = {for enfeebling or enhancing magic, the base duration of an unresisted spell eg. 2 minutes 30 seconds} |
||
| range = {the maximum range from which this spell can be cast. Include the radius of -ga/-ra spells eg. 10} |
| range = {the maximum range from which this spell can be cast. Include the radius of -ga/-ra spells eg. 10} |
||
| horizon changes = {summary of Horizon changes, if any, in a few words.} |
|||
}} |
}} |
||
</pre>|disable={{{1|}}}}}}}<!-- |
</pre>|disable={{{1|}}}}}}}<!-- |
||
-->{{categorize|{{{1|}}}|[[Category:Magic]][[Category:{{{element}}}]]{{#switch:{{lc:{{{ |
-->{{categorize|{{{1|}}}|[[Category:Magic]][[Category:{{{element}}}]]{{#switch:{{lc:{{{skill}}}}}|elemental|enfeebling|enhancing|healing|divine|dark|summoning|blue = [[Category:{{{skill}}} Magic]]|ninjutsu|geomancy|trust = [[Category:{{{skill}}}]]|song = [[Category:Songs]]}}}} |
||
<div class="portable-infobox noexcerpt infobox-magic-container"> |
<div class="portable-infobox noexcerpt infobox-magic-container"> |
||
<div class="infobox-magic-title" |
<div class="infobox-magic-title" style="display: flex; gap: 3px; justify-content: center;"> |
||
<div style="position: relative; flex: 0 0 32px;"> |
|||
<div class="icon-type-1" style="position: absolute; left: 0; top: -4px;">{{#switch:{{lc:{{{type|}}}}} |
|||
|white magic=[[File:White-magic-{{#switch:{{lc:{{{element|}}}}}|fire=fire-menu.webp|ice=ice-menu.webp|wind=wind-menu.webp|earth=earth-menu.webp|lightning=lightning-menu.webp|water=water-menu.webp|#default=menu.webp}}|32px|link=|alt=]] |
|||
|black magic=[[File:Black-magic-{{#switch:{{lc:{{{element|}}}}}|fire=fire-menu.webp|ice=ice-menu.webp|wind=wind-menu.webp|earth=earth-menu.webp|lightning=lightning-menu.png|water=water-menu.webp|dark=dark-menu.webp|#default=menu.webp}}|32px|link=|alt=]] |
|||
}}</div> |
|||
<div class="icon-type-2" style="position: absolute; left: 0; top: -4px;">{{#if:{{{icon|}}}|[[{{{icon}}}|32px|link=|alt=]]|{{StatusEffectIcon|{{{status effect id}}}}}}}</div> |
|||
</div> |
|||
<div style="font-weight: bold;">{{{spell name|{{PAGENAME}}}}}</div> |
|||
</div> |
|||
{| class="infobox-magic" |
{| class="infobox-magic" |
||
! [[:Category:Magic|Type]] |
! [[:Category:Magic|Type]] |
||
| {{#switch:{{lc:{{{ |
| {{#switch:{{lc:{{{type}}}}}|white magic=[[:Category:White Magic|{{{type}}}]]<br />[[:Category:{{{skill}}} Magic|{{{skill}}} Magic Skill]]|black magic=[[:Category:Black Magic|{{{type}}}]]<br />[[:Category:{{{skill}}} Magic|{{{skill}}} Magic Skill]]|blue magic=[[:Category:Blue Magic|{{{type}}}]]|song=[[:Category:{{{type}}}s|{{{type}}}]]|summoning|ninjutsu|geomancy=[[:Category:{{{type}}}|{{{type}}}]]|#default={{Information Needed}}}} |
||
|- |
|- |
||
! Description |
! Description |
||
| Line 61: | Line 77: | ||
! [[Element]] |
! [[Element]] |
||
| {{#ifeq: {{{element}}} | None | '''Non-Elemental''' | {{Element|{{{element}}}}}}} |
| {{#ifeq: {{{element}}} | None | '''Non-Elemental''' | {{Element|{{{element}}}}}}} |
||
|- {{#switch:{{lc:{{{ |
|- {{#switch:{{lc:{{{type}}}}}|blue|blue magic=|#default=style="display: none;"}} |
||
! Monster Family |
! Monster Family |
||
| {{{blue family}}} |
| {{{blue family}}} |
||
|- {{#switch:{{lc:{{{ |
|- {{#switch:{{lc:{{{type}}}}}|blue|blue magic=|#default=style="display: none;"}} |
||
! [[:Category:Blue Magic|Blue Physical Damage Type]] |
! [[:Category:Blue Magic|Blue Physical Damage Type]] |
||
| {{#switch:{{lc:{{{blue physical damage type}}}}}|hand-to-hand = Hand-to-Hand|blunt = Blunt|piercing = Piercing|slashing = Slashing|Unspecified}} damage |
| {{#switch:{{lc:{{{blue physical damage type}}}}}|hand-to-hand = Hand-to-Hand|blunt = Blunt|piercing = Piercing|slashing = Slashing|Unspecified}} damage |
||
|- {{#switch:{{lc:{{{ |
|- {{#switch:{{lc:{{{type}}}}}|blue|blue magic=|#default=style="display: none;"}} |
||
! Skillchain Properties |
! Skillchain Properties |
||
| {{{blue skillchain properties|}}} |
| {{{blue skillchain properties|}}} |
||
|- {{#switch:{{lc:{{{ |
|- {{#switch:{{lc:{{{type}}}}}|enfeebling|elemental=|#default=style="display:none;"}} <!-- does not include songs, ninjutsu and bloodpacts yet --> |
||
! [[Magic Burst]] |
! [[Magic Burst]] |
||
| {{#switch:{{lc:{{{element}}}}} |
| {{#switch:{{lc:{{{element}}}}} |
||
| Line 82: | Line 98: | ||
|light={{Property|transfixion|icon}}<br>{{Property|fusion|icon}}<br>{{Property|light|icon}} |
|light={{Property|transfixion|icon}}<br>{{Property|fusion|icon}}<br>{{Property|light|icon}} |
||
}} |
}} |
||
|- {{#switch:{{lc:{{{ |
|- {{#switch:{{lc:{{{type}}}}}|blue|blue magic=|#default=style="display: none;"}} |
||
! Status Bonus |
! Status Bonus |
||
| {{{blue stats}}} |
| {{{blue stats}}} |
||
|- {{#switch:{{lc:{{{ |
|- {{#switch:{{lc:{{{type}}}}}|blue|blue magic=|#default=style="display: none;"}} |
||
! Job Trait |
! Job Trait |
||
| {{{blue trait}}} |
| {{{blue trait}}} |
||
|- {{#switch:{{lc:{{{ |
|- {{#switch:{{lc:{{{type}}}}}|blue|blue magic=|#default=style="display: none;"}} |
||
! Points Required |
! Points Required |
||
| {{{blue points}}} |
| {{{blue points}}} |
||
|- {{#ifeq:{{lc:{{{ |
|- {{#ifeq:{{lc:{{{type}}}}}|ninjutsu||style="display: none;"}} |
||
! Ninjutsu Tool |
! Ninjutsu Tool |
||
| {{{ninjutsu tool}}} |
| {{{ninjutsu tool}}} |
||
{{Infobox Magic/Jobs |
|||
|- |
|||
| whm level = {{{whm level|999}}} |
|||
! [[:Category:Jobs|Jobs]] |
|||
| blm level = {{{blm level|999}}} |
|||
| {{#if:{{{whm level|}}}{{{blm level|}}}{{{rdm level|}}}{{{pld level|}}}{{{drk level|}}}{{{brd level|}}}{{{nin level|}}}{{{sch level|}}}{{{geo level|}}}{{{run level|}}}| |
|||
| rdm level = {{{rdm level|999}}} |
|||
<ul style="margin: 0; list-style: none;"> |
|||
{{ |
| pld level = {{{pld level|999}}} |
||
| drk level = {{{drk level|999}}} |
|||
| brd level = {{{brd level|999}}} |
|||
{{#ifeq:{{NAMESPACENUMBER}}|0| |
|||
| smn level = {{{smn level|999}}} |
|||
{{#cargo_store: |
|||
| nin level = {{{nin level|999}}} |
|||
_table=MagicJobs |
|||
| |
| sch level = {{{sch level|999}}} |
||
| sch ability = {{{sch ability|}}} |
|||
|Job=White Mage |
|||
| |
| geo level = {{{geo level|999}}} |
||
| run level = {{{run level|999}}} |
|||
}} |
|||
}} |
|||
}}<!-- end if whm level --> |
|||
{{#if:{{{blm level|}}}| |
|||
<li>[[Black Mage]] Lv. {{{blm level}}}</li> |
|||
{{#ifeq:{{NAMESPACENUMBER}}|0| |
|||
{{#cargo_store: |
|||
_table=MagicJobs |
|||
|Magic={{{spell name|{{PAGENAME}}}}} |
|||
|Job=Black Mage |
|||
|Level={{{blm level}}} |
|||
}} |
|||
}} |
|||
}}<!-- end if blm level --> |
|||
{{#if:{{{rdm level|}}}| |
|||
<li>[[Red Mage]] Lv. {{{rdm level}}}</li> |
|||
{{#ifeq:{{NAMESPACENUMBER}}|0| |
|||
{{#cargo_store: |
|||
_table=MagicJobs |
|||
|Magic={{{spell name|{{PAGENAME}}}}} |
|||
|Job=Red Mage |
|||
|Level={{{rdm level}}} |
|||
}} |
|||
}} |
|||
}}<!-- end if rdm level --> |
|||
{{#if:{{{pld level|}}}| |
|||
<li>[[Paladin]] Lv. {{{pld level}}}</li> |
|||
{{#ifeq:{{NAMESPACENUMBER}}|0| |
|||
{{#cargo_store: |
|||
_table=MagicJobs |
|||
|Magic={{{spell name|{{PAGENAME}}}}} |
|||
|Job=Paladin |
|||
|Level={{{pld level}}} |
|||
}} |
|||
}} |
|||
}}<!-- end if pld level --> |
|||
{{#if:{{{drk level|}}}| |
|||
<li>[[Dark Knight]] Lv. {{{drk level}}}</li> |
|||
{{#ifeq:{{NAMESPACENUMBER}}|0| |
|||
{{#cargo_store: |
|||
_table=MagicJobs |
|||
|Magic={{{spell name|{{PAGENAME}}}}} |
|||
|Job=Dark Knight |
|||
|Level={{{drk level}}} |
|||
}} |
|||
}} |
|||
}}<!-- end if drk level --> |
|||
{{#if:{{{brd level|}}}| |
|||
<li>[[Bard]] Lv. {{{brd level}}}</li> |
|||
{{#ifeq:{{NAMESPACENUMBER}}|0| |
|||
{{#cargo_store: |
|||
_table=MagicJobs |
|||
|Magic={{{spell name|{{PAGENAME}}}}} |
|||
|Job=Bard |
|||
|Level={{{brd level}}} |
|||
}} |
|||
}} |
|||
}}<!-- end if brd level --> |
|||
{{#if:{{{nin level|}}}| |
|||
<li>[[Ninja]] Lv. {{{nin level}}}</li> |
|||
{{#ifeq:{{NAMESPACENUMBER}}|0| |
|||
{{#cargo_store: |
|||
_table=MagicJobs |
|||
|Magic={{{spell name|{{PAGENAME}}}}} |
|||
|Job=Ninja |
|||
|Level={{{nin level}}} |
|||
}} |
|||
}} |
|||
}}<!-- end if nin level --> |
|||
{{#if:{{{sch level|}}}| |
|||
<li class="wotg">[[Scholar]] Lv. {{{sch level}}}{{#if:{{{sch ability|}}}|({{{sch ability}}})}}</li> |
|||
{{#ifeq:{{NAMESPACENUMBER}}|0| |
|||
{{#cargo_store: |
|||
_table=MagicJobs |
|||
|Magic={{{spell name|{{PAGENAME}}}}} |
|||
|Job=Scholar |
|||
|Level={{{sch level}}} |
|||
|AbilityRequired={{{sch ability|}}} |
|||
}} |
|||
}} |
|||
}}<!-- end if sch level --> |
|||
{{#if:{{{geo level|}}}| |
|||
<li class="soa">[[Geomancer]] Lv. {{{geo level}}}</li> |
|||
{{#ifeq:{{NAMESPACENUMBER}}|0| |
|||
{{#cargo_store: |
|||
_table=MagicJobs |
|||
|Magic={{{spell name|{{PAGENAME}}}}} |
|||
|Job=Geomancer |
|||
|Level={{{geo level}}} |
|||
}} |
|||
}} |
|||
}}<!-- end if geo level --> |
|||
{{#if:{{{run level|}}}| |
|||
<li class="soa">[[Rune Fencer]] Lv. {{{run level}}}</li> |
|||
{{#ifeq:{{NAMESPACENUMBER}}|0| |
|||
{{#cargo_store: |
|||
_table=MagicJobs |
|||
|Magic={{{spell name|{{PAGENAME}}}}} |
|||
|Job=Rune Fencer |
|||
|Level={{{run level}}} |
|||
}} |
}} |
||
<!-- |
|||
{{#cargo_query: |
|||
|tables=AutomatonSpells |
|||
|fields=SkillLevel, Heads |
|||
|where=Spell='{{{spell name|{{PAGENAME}}}}}' |
|||
|format=template |
|||
|template=Infobox Magic/Automaton |
|||
|named args=yes |
|||
}} |
}} |
||
--> |
|||
}}<!-- end if run level --> |
|||
</ul> |
|||
|{{{jobs|{{Information Needed}}}}}}} |
|||
|- |
|- |
||
! [[Cast Time|Casting Time]] |
! [[Cast Time|Casting Time]] |
||
| Line 234: | Line 157: | ||
| {{{range}}} |
| {{{range}}} |
||
|} |
|} |
||
</div>{{#ifeq:{{NAMESPACENUMBER}}|0| |
|||
</div><!-- |
|||
{{#cargo_store: |
|||
_table=Magic |
|||
|Name={{{spell name|{{PAGENAME}}}}} |
|||
|Icon={{{icon|}}} |
|||
|Type={{{type|}}} |
|||
<!-- switch statement makes sure link points to the correct skill page --> |
|||
|Skill={{#switch:{{lc:{{{skill}}}}}|ninjutsu=Ninjutsu Skill|song=Singing Skill|dark|divine|elemental|enfeebling|enhancing|healing|summoning={{ucfirst:{{{skill}}}}} Magic Skill}} |
|||
<!-- switch statement makes sure link points to the correct element page --> |
|||
|Element={{#switch:{{lc:{{{element}}}}}|dark|earth|ice|light|lightning|wind={{ucfirst:{{{element}}}}}|fire|water={{ucfirst:{{{element}}}}} (Element)}} |
|||
|HorizonChanges={{{horizon changes|}}} |
|||
}} |
|||
}}<!-- |
|||
--></includeonly><noinclude> |
--></includeonly><noinclude> |
||
{{#cargo_declare: |
{{#cargo_declare: |
||
_table= |
_table=Magic |
||
| |
|Name=Page |
||
| |
|Icon=Page |
||
|Type=Page |
|||
|Level=Integer |
|||
| |
|Skill=Page |
||
|Element=Page |
|||
|HorizonChanges=Wikitext string |
|||
}} |
}} |
||
{{Documentation}}</noinclude> |
{{Documentation}}</noinclude> |
||
Latest revision as of 10:08, 7 November 2025
This template defines the table "Magic". This table has not been created yet.
Template documentation
|
|---|
| Note: portions of the template sample may not be visible without values provided. |
| View or edit this documentation. (About template documentation) |
| Editors can experiment in this template's sandbox and test case pages. |
Usage
Documentation
Template:Preview Only Infobox/Documentation
- spell name: As it appears in your spell list, without abbreviations
- icon: ex. File:Poison-menu-xiview.webp
- type: White Magic, Black Magic, Song, Summoning, Ninjutsu, Blue Magic, Geomancy
- skill: elemental, enhancing, healing, divine, dark, summoning, ninjutsu, blue, geomancy, singing
- status effect id: ID# for the status effect, derived from in-game DAT resources. This parameter feeds the icon displayed next to the title. This icon should resemble the status effect icon in game.
- blue family: the monster family correlated with this spell.
- blue physical damage type: For physical blue magic spells - hand-to-hand, blunt, piercing or slashing
- blue skillchain properties: For physical blue magic spells - use only the link form to the skillchain e.g. Induration, do not use Template:Skillchain.
- blue stats: For blue magic - list the bonus stats granted by setting this spell. See Template:Stat
- blue trait: For blue magic - link the job traits granted by this spell as well as the points counted towards that trait.
- blue points: For blue magic - the number of free blue magic points required to set this spell.
- description: taken directly from the game's own description of the spell.
- mp: If any, the base MP cost of the spell.
- ninjutsu tool: Link the tool/tools consumed while casting ninjutsu.
- element: If any, the element of the spell.
- whm level, blm level, rdm level, pld level, drk level, brd level, nin level, sch level, geo level, run level: Level each job can learn the spell.
- casting time: The base casting time of the spell.
- recast time: the base recast time of the spell.
- affected targets: self, single, aoe target (most -ga spells), aoe self (most -ra spells), aoe cone (blu breath spells).
- base duration: for enfeebling or enhancing magic, the base duration of an unresisted spell.
- range: the maximum range from which this spell can be cast. Include the radius of -ga/-ra spells.
- horizon changes: summary of Horizon changes, if any, in a few words
Examples
Please Refer to the Template:Infobox Magic/Tests page for more examples
Elemental Magic
{{Infobox Magic
| spell name = Fire
| icon = File:Fire-menu.png
| type = Black Magic
| skill = Elemental
| description = Deals fire damage to an enemy
| mp = 7
| element = Fire
| blm level = 13
| rdm level = 19
| drk level = 23
| sch level = 16
| geo level = 19
| casting time = 0.5
| recast time = 2
| affected targets = single
| range = 21
}}
|
Fire
|
Status Effect
{{Infobox Magic
| spell name = Haste
| icon = File:Haste-menu-xiview.webp
| type = White Magic
| skill = Enhancing
| status effect id = 33
| description = [[Haste (Status Effect)|Increases target's attack speed.]]
| mp = 40
| element = Wind
| whm level = 40
| rdm level = 48
| casting time = 3
| recast time = {{changes}} 18
| affected targets = single
| base duration = 3 minutes
| range = 20
| horizon changes = recast reduced from 20 to 18 seconds
}}
|
[[File:status_effect_{{#replace:33| |_}}.png ]]
Haste
|
