Template:Infobox Magic: Difference between revisions
From Horizon Wiki Mirror
Content deleted Content added
imported>Spiffly No edit summary |
imported>Kaimoon0 fit all icons to 32px |
||
| (41 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>< |
<includeonly>__NOTOC__<!-- |
||
<title source="spell name"><format> {{StatusEffectIcon|{{{status effect id}}}}} {{{spell name|{{PAGENAME}}}}} </format></title> |
|||
Cheat sheet that is only visible during preview |
|||
<data source="spell type"><label>[[:Category:Magic|Type]]</label><format>[[Category:Magic]]{{#switch:{{lc:{{{spell type}}}}}|elemental|enfeebling|enhancing|healing|divine|dark|summoning|blue = [[:Category:{{{spell type}}} Magic|{{{spell type}}}]]|ninjutsu|geomancy|trust = [[:Category:{{{spell type}}}|{{{spell type}}}]]||song = [[:Category:Songs|Song]]|Not Specified}}</format></data> |
|||
-->{{#switch:{{{1|}}}|bp|boilerplate={{Preview Only Infobox|<pre> |
|||
<data source="description"><label>Description</label></data> |
|||
{{Infobox Magic |
|||
<data source="mp"><label>Cost</label><format>{{{mp}}} MP</format></data> |
|||
| spell name = |
|||
<data source="element"><label>[[Element]]</label><format>{{#ifeq: {{{element}}} | None | '''Non-Elemental''' | {{Element|{{{element}}}}}}}</format></data> |
|||
| icon = |
|||
<data source="blue family"><label>Monster Family</label></data> |
|||
| type = |
|||
<data source="blue physical damage type"><label>[[:Category:Blue Magic|Blue Physical Damage Type]]</label><format>{{#switch:{{lc:{{{blue physical damage type}}}}}|hand-to-hand = Hand-to-Hand|blunt = Blunt|piercing = Piercing|slashing = Slashing|Unspecified}} damage</format></data> |
|||
| skill = |
|||
<data source = "blue skillchain properties"><label>Skillchain Properties</label></data> |
|||
| description = |
|||
<data source = "blue stats"><label>Status Bonus</label></data> |
|||
| mp = |
|||
<data source = "blue trait"><label>Job Trait</label></data> |
|||
| element = |
|||
<data source = "blue points"><label>Points Required</label></data> |
|||
| whm level = |
|||
<data source="ninjutsu tool"><label>Ninjutsu Tool</label></data> |
|||
| blm level = |
|||
<data source="jobs"><label>[[:Category:Jobs|Jobs]]</label></data> |
|||
| rdm level = |
|||
<data source="casting time"><label>[[Cast Time|Casting Time]]</label><format>{{{casting time}}} seconds</format></data> |
|||
| pld level = |
|||
<data source="recast time"><label>[[Recast Time]]</label><format>{{{recast time}}} seconds</format></data> |
|||
| drk level = |
|||
<data source="affected targets"><label>Affected Targets</label><format>{{#switch:{{lc:{{{affected targets}}}}}|self|caster = Caster|single = Single|aoe target = AOE, centered on target|aoe self = AOE, centered on caster|aoe cone = AOE, cone in front of caster|Unspecified}}</format></data> |
|||
| brd level = |
|||
<data source="base duration"><label>Base Duration</label></data> |
|||
| smn level = |
|||
<data source="range"><label>Range</label><format>{{{range}}} yalms</format></data> |
|||
| nin level = |
|||
</infobox></includeonly> |
|||
| sch level = |
|||
{{Preview Only Infobox|<pre>==Usage== |
|||
| sch ability = |
|||
| geo level = |
|||
| run level = |
|||
| casting time = |
|||
| recast time = |
|||
| affected targets = |
|||
| base duration = |
|||
| range = |
|||
| horizon changes = |
|||
}} |
|||
</pre>|disable={{{1|}}}}}<!-- |
|||
-->|#default={{Preview Only Infobox|<pre> |
|||
Infobox Magic |
|||
Designed to supersede all the individual Infoboxes for magic subcategories. This template organizes all the pertinent information about magic separate from what needs to be known about the scrolls/plates/spirit pact 'items' that teach that magic. |
Designed to supersede all the individual Infoboxes for magic subcategories. This template organizes all the pertinent information about magic separate from what needs to be known about the scrolls/plates/spirit pact 'items' that teach that magic. |
||
<pre> |
|||
{{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 34: | 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>}} |
</pre>|disable={{{1|}}}}}}}<!-- |
||
<noinclude> |
|||
==Parameters== |
|||
*spell name: As it appears in your spell list, without abbreviations |
|||
*spell type: elemental, enhancing, healing, divine, dark, summoning, blue, ninjutsu, geomancy, song or trust |
|||
*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. |
|||
*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. |
|||
*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. |
|||
-->{{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]]}}}} |
|||
==Examples== |
|||
<div class="portable-infobox noexcerpt infobox-magic-container"> |
|||
Please Refer to the [[Template:Infobox Magic/Tests]] page for more examples |
|||
<div class="infobox-magic-title" style="display: flex; gap: 3px; justify-content: center;"> |
|||
<div style="position: relative; flex: 0 0 32px;"> |
|||
===Elemental Magic=== |
|||
<div class="icon-type-1" style="position: absolute; left: 0; top: -4px;">{{#switch:{{lc:{{{type|}}}}} |
|||
{| width="100%" |
|||
|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=]] |
|||
| width="75%" valign="top" align="left"| |
|||
|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=]] |
|||
<pre> |
|||
}}</div> |
|||
{{Infobox Magic |
|||
<div class="icon-type-2" style="position: absolute; left: 0; top: -4px;">{{#if:{{{icon|}}}|[[{{{icon}}}|32px|link=|alt=]]|{{StatusEffectIcon|{{{status effect id}}}}}}}</div> |
|||
| spell name = Fire |
|||
</div> |
|||
| spell type = Elemental |
|||
<div style="font-weight: bold;">{{{spell name|{{PAGENAME}}}}}</div> |
|||
| description = Deals fire damage to an enemy |
|||
</div> |
|||
| mp = 7 |
|||
{| class="infobox-magic" |
|||
| element = Fire |
|||
! [[:Category:Magic|Type]] |
|||
| jobs = |
|||
| {{#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}}}} |
|||
* Level 13 [[Black Mage]] |
|||
|- |
|||
* Level 16 [[Scholar]] |
|||
! Description |
|||
* Level 19 [[Red Mage]] |
|||
| {{{description|{{Information Needed}}}}} |
|||
* Level 19 [[Geomancer]] |
|||
|- {{#if:{{{mp|}}}||style="display: none;"}} |
|||
* Level 20 [[Puppetmaster]] [[Automaton Magic Skill]] 60<sup>‡</sup> |
|||
! Cost |
|||
* Level 23 [[Dark Knight]] |
|||
| {{{mp}}} [[MP]] |
|||
| casting time = 0.5 |
|||
|- |
|||
| recast time = 2 |
|||
! [[Element]] |
|||
| affected targets = single |
|||
| {{#ifeq: {{{element}}} | None | '''Non-Elemental''' | {{Element|{{{element}}}}}}} |
|||
| range = 21 |
|||
|- {{#switch:{{lc:{{{type}}}}}|blue|blue magic=|#default=style="display: none;"}} |
|||
! Monster Family |
|||
| {{{blue family}}} |
|||
|- {{#switch:{{lc:{{{type}}}}}|blue|blue magic=|#default=style="display: none;"}} |
|||
! [[: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:{{{type}}}}}|blue|blue magic=|#default=style="display: none;"}} |
|||
! Skillchain Properties |
|||
| {{{blue skillchain properties|}}} |
|||
|- {{#switch:{{lc:{{{type}}}}}|enfeebling|elemental=|#default=style="display:none;"}} <!-- does not include songs, ninjutsu and bloodpacts yet --> |
|||
! [[Magic Burst]] |
|||
| {{#switch:{{lc:{{{element}}}}} |
|||
|earth={{Property|scission|icon}}<br>{{Property|gravitation|icon}}<br>{{Property|darkness|icon}} |
|||
|water={{Property|reverberation|icon}}<br>{{Property|distortion|icon}}<br>{{Property|darkness|icon}} |
|||
|wind={{Property|detonation|icon}}<br>{{Property|fragmentation|icon}}<br>{{Property|light|icon}} |
|||
|fire={{Property|liquefaction|icon}}<br>{{Property|fusion|icon}}<br>{{Property|light|icon}} |
|||
|ice={{Property|induration|icon}}<br>{{Property|distortion|icon}}<br>{{Property|darkness|icon}} |
|||
|lightning={{Property|impaction|icon}}<br>{{Property|fragmentation|icon}}<br>{{Property|light|icon}} |
|||
|dark={{Property|compression|icon}}<br>{{Property|gravitation|icon}}<br>{{Property|darkness|icon}} |
|||
|light={{Property|transfixion|icon}}<br>{{Property|fusion|icon}}<br>{{Property|light|icon}} |
|||
}} |
}} |
||
|- {{#switch:{{lc:{{{type}}}}}|blue|blue magic=|#default=style="display: none;"}} |
|||
</pre> |
|||
! Status Bonus |
|||
| {{{blue stats}}} |
|||
| width="25%" valign="top" align="left"| |
|||
|- {{#switch:{{lc:{{{type}}}}}|blue|blue magic=|#default=style="display: none;"}} |
|||
{{Infobox Magic |
|||
! Job Trait |
|||
| spell name = Fire |
|||
| {{{blue trait}}} |
|||
| spell type = Elemental |
|||
|- {{#switch:{{lc:{{{type}}}}}|blue|blue magic=|#default=style="display: none;"}} |
|||
| description = Deals Fire damage to an enemy |
|||
! Points Required |
|||
| mp = 7 |
|||
| {{{blue points}}} |
|||
| element = Fire |
|||
|- {{#ifeq:{{lc:{{{type}}}}}|ninjutsu||style="display: none;"}} |
|||
| jobs = |
|||
! Ninjutsu Tool |
|||
* Level 13 [[Black Mage]] |
|||
| {{{ninjutsu tool}}} |
|||
* Level 16 [[Scholar]] |
|||
{{Infobox Magic/Jobs |
|||
* Level 19 [[Red Mage]] |
|||
| whm level = {{{whm level|999}}} |
|||
* Level 19 [[Geomancer]] |
|||
| blm level = {{{blm level|999}}} |
|||
* Level 20 [[Puppetmaster]] [[Automaton Magic Skill]] 60<sup>‡</sup> |
|||
| rdm level = {{{rdm level|999}}} |
|||
* Level 23 [[Dark Knight]] |
|||
| pld level = {{{pld level|999}}} |
|||
| casting time = 0.5 |
|||
| drk level = {{{drk level|999}}} |
|||
| recast time = 2 |
|||
| brd level = {{{brd level|999}}} |
|||
| affected targets = single |
|||
| smn level = {{{smn level|999}}} |
|||
| range = 21 |
|||
| nin level = {{{nin level|999}}} |
|||
| sch level = {{{sch level|999}}} |
|||
| sch ability = {{{sch ability|}}} |
|||
| geo level = {{{geo level|999}}} |
|||
| run level = {{{run level|999}}} |
|||
}} |
}} |
||
<!-- |
|||
{{#cargo_query: |
|||
|tables=AutomatonSpells |
|||
|fields=SkillLevel, Heads |
|||
|where=Spell='{{{spell name|{{PAGENAME}}}}}' |
|||
|format=template |
|||
|template=Infobox Magic/Automaton |
|||
|named args=yes |
|||
}} |
|||
--> |
|||
|- |
|||
! [[Cast Time|Casting Time]] |
|||
| {{#if:{{{casting time|}}}|{{{casting time}}}|{{Information Needed}}}} seconds |
|||
|- |
|||
! [[Recast Time]] |
|||
| {{#if:{{{recast time|}}}|{{{recast time}}}|{{Information Needed}}}} seconds |
|||
|- {{#if:{{{affected targets|}}}||style="display:none;"}} |
|||
! Affected Targets |
|||
| {{#switch:{{lc:{{{affected targets}}}}} |
|||
| self | caster = Caster |
|||
| single = Single |
|||
| aoe target = AOE, centered on target |
|||
| aoe self = AOE, centered on caster |
|||
| aoe cone = AOE, cone in front of caster |
|||
| #default = |
|||
}} |
|||
|- {{#if:{{{base duration|}}}||style="display:none;"}} |
|||
! Base Duration |
|||
| {{{base duration}}} |
|||
|- {{#if: {{{range|}}}||style="display:none;"}} |
|||
! Range |
|||
| {{{range}}} |
|||
|} |
|} |
||
</div>{{#ifeq:{{NAMESPACENUMBER}}|0| |
|||
{{#cargo_store: |
|||
===Status Effect=== |
|||
_table=Magic |
|||
{| width="100%" |
|||
|Name={{{spell name|{{PAGENAME}}}}} |
|||
| width="75%" valign="top" align="left"| |
|||
|Icon={{{icon|}}} |
|||
<pre> |
|||
|Type={{{type|}}} |
|||
{{Infobox Magic |
|||
<!-- switch statement makes sure link points to the correct skill page --> |
|||
| spell name = Haste |
|||
|Skill={{#switch:{{lc:{{{skill}}}}}|ninjutsu=Ninjutsu Skill|song=Singing Skill|dark|divine|elemental|enfeebling|enhancing|healing|summoning={{ucfirst:{{{skill}}}}} Magic Skill}} |
|||
| spell type = Enhancing |
|||
<!-- switch statement makes sure link points to the correct element page --> |
|||
| status effect id = 33 |
|||
|Element={{#switch:{{lc:{{{element}}}}}|dark|earth|ice|light|lightning|wind={{ucfirst:{{{element}}}}}|fire|water={{ucfirst:{{{element}}}}} (Element)}} |
|||
| description = [[Haste (Status Effect)|Increases target's attack speed.]] |
|||
|HorizonChanges={{{horizon changes|}}} |
|||
| mp = 40 |
|||
| element = Wind |
|||
| jobs = |
|||
*[[White Mage]] Lv. 40 |
|||
*[[Red Mage]] Lv. 48 |
|||
| casting time = 3 |
|||
| recast time = {{changes}} 18 |
|||
| affected targets = single |
|||
| base duration = 3 minutes |
|||
| range = 20 |
|||
}} |
}} |
||
}}<!-- |
|||
</pre> |
|||
--></includeonly><noinclude> |
|||
| width="25%" valign="top" align="left"| |
|||
{{#cargo_declare: |
|||
{{Infobox Magic |
|||
_table=Magic |
|||
| spell name = Haste |
|||
|Name=Page |
|||
| spell type = Enhancing |
|||
|Icon=Page |
|||
| status effect id = 33 |
|||
|Type=Page |
|||
| description = [[Haste (Status Effect)|Increases target's attack speed.]] |
|||
|Skill=Page |
|||
| mp = 40 |
|||
|Element=Page |
|||
| element = Wind |
|||
|HorizonChanges=Wikitext string |
|||
| jobs = |
|||
*[[White Mage]] Lv. 40 |
|||
*[[Red Mage]] Lv. 48 |
|||
| casting time = 3 |
|||
| recast time = {{changes}} 18 |
|||
| affected targets = single |
|||
| base duration = 3 minutes |
|||
| range = 20 |
|||
}} |
}} |
||
{{Documentation}}</noinclude> |
|||
|} |
|||
[[Category:Templates]] |
|||
</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
|
