Template:Infobox Magic: Difference between revisions
From HorizonXI Wiki
m (slightly changed affected targets so entire row vanishes if not filled) |
(updated preview only infobox functionality and documentation) |
||
Line 1: | Line 1: | ||
{{Preview Only Infobox|disable={{{1|}}}|<pre> | <onlyinclude><includeonly>__NOTOC__<!-- | ||
Cheat sheet that is only visible during preview | |||
-->{{#switch:{{{1|}}}|bp|boilerplate={{Preview Only Infobox|<pre> | |||
{{Infobox Magic | |||
| spell name = | |||
| spell type = | |||
| description = | |||
| mp = | |||
| element = | |||
| jobs = | |||
| casting time = | |||
| recast time = | |||
| affected targets = | |||
| base duration = | |||
| range = | |||
}} | |||
</pre>|disable={{{1|}}}}}<!-- | |||
-->|#default={{Preview Only Infobox|<pre> | |||
Infobox Magic | 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. | ||
{{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} | ||
Line 16: | Line 34: | ||
| 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} | ||
}} | }} | ||
</pre>}} | </pre>|disable={{{1|}}}}}}}<!-- | ||
-->{{categorize|{{{1|}}}|[[Category:Magic]][[Category:{{{element}}}]]{{#switch:{{lc:{{{spell type}}}}}|elemental|enfeebling|enhancing|healing|divine|dark|summoning|blue = [[Category:{{{spell type}}} Magic]]|ninjutsu|geomancy|trust = [[Category:{{{spell type}}}]]|song = [[Category:Songs]]}}}} | |||
<div class="portable-infobox noexcerpt infobox-magic-container"> | <div class="portable-infobox noexcerpt infobox-magic-container"> | ||
<div class="infobox-magic-title">{{StatusEffectIcon|{{{status effect id}}}}} '''{{{spell name|{{PAGENAME}}}}}'''</div> | <div class="infobox-magic-title">{{StatusEffectIcon|{{{status effect id}}}}} '''{{{spell name|{{PAGENAME}}}}}'''</div> | ||
Line 94: | Line 113: | ||
</div><!-- | </div><!-- | ||
--></includeonly></onlyinclude> | |||
==Usage== | |||
===Documentation=== | |||
*'''First unnamed Parameter''' (optional): You can set the first unnamed parameter to: | |||
** ''nc'' (no category) to prevent automatic categorization (e.g. for example pages) | |||
** ''nd'' (no documentation) to suppress the preview documentation (helpful in the editing process) | |||
** ''bp'' (boilerplate) to have the preview documentation without comments so you can just copy it to the page (helpful for creating new pages to just start with {{fontaccent|<nowiki>{{NPC|bp}}</nowiki>}} and copy the boilerplate from the preview only) | |||
*spell name: As it appears in your spell list, without abbreviations | *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 | *spell type: elemental, enhancing, healing, divine, dark, summoning, blue, ninjutsu, geomancy, song or trust | ||
Line 136: | Line 141: | ||
*range: the maximum range from which this spell can be cast. Include the radius of -ga/-ra spells. | *range: the maximum range from which this spell can be cast. Include the radius of -ga/-ra spells. | ||
==Examples== | ===Examples=== | ||
Please Refer to the [[Template:Infobox Magic/Tests]] page for more examples | Please Refer to the [[Template:Infobox Magic/Tests]] page for more examples | ||
===Elemental Magic=== | ====Elemental Magic==== | ||
{| width="100%" | {| width="100%" | ||
| width="75%" valign="top" align="left"| | | width="75%" valign="top" align="left"| | ||
Line 164: | Line 169: | ||
| width="25%" valign="top" align="left"| | | width="25%" valign="top" align="left"| | ||
{{Infobox Magic| | {{Infobox Magic|ncnd | ||
| spell name = Fire | | spell name = Fire | ||
| spell type = Elemental | | spell type = Elemental | ||
Line 184: | Line 189: | ||
|} | |} | ||
===Status Effect=== | ====Status Effect==== | ||
{| width="100%" | {| width="100%" | ||
| width="75%" valign="top" align="left"| | | width="75%" valign="top" align="left"| | ||
Line 207: | Line 212: | ||
| width="25%" valign="top" align="left"| | | width="25%" valign="top" align="left"| | ||
{{Infobox Magic| | {{Infobox Magic|ncnd | ||
| spell name = Haste | | spell name = Haste | ||
| spell type = Enhancing | | spell type = Enhancing | ||
Line 225: | Line 230: | ||
|} | |} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
Revision as of 09:23, 11 August 2024
Usage
Documentation
- First unnamed Parameter (optional): You can set the first unnamed parameter to:
- nc (no category) to prevent automatic categorization (e.g. for example pages)
- nd (no documentation) to suppress the preview documentation (helpful in the editing process)
- bp (boilerplate) to have the preview documentation without comments so you can just copy it to the page (helpful for creating new pages to just start with {{NPC|bp}} and copy the boilerplate from the preview only)
- 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.
Examples
Please Refer to the Template:Infobox Magic/Tests page for more examples
Elemental Magic
{{Infobox Magic | spell name = Fire | spell type = Elemental | description = Deals fire damage to an enemy | mp = 7 | element = Fire | jobs = * Level 13 [[Black Mage]] * Level 16 [[Scholar]] * Level 19 [[Red Mage]] * Level 19 [[Geomancer]] * Level 20 [[Puppetmaster]] [[Automaton Magic Skill]] 60<sup>‡</sup> * Level 23 [[Dark Knight]] | casting time = 0.5 | recast time = 2 | affected targets = single | range = 21 }} |
Fire
|
Status Effect
{{Infobox Magic | spell name = Haste | spell type = Enhancing | status effect id = 33 | description = [[Haste (Status Effect)|Increases target's attack speed.]] | 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 }} |
|