Template:SpellInfobox: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
N (talk | contribs)
Created page with "<noinclude>{{stub}} {{loc}} Heavily WIP! Draft for what it should look like, but it still needs: *gold rings around round icons *links where needed *faction colour coding Spell School Colors (taken from spellbook icon frames): use Center Color or Swatch Color (decide which?) for the header and main colored cells, and use Ring Color for Level 2/3/4 cells {| !School || Center Color || Swatch Color || Ring Color |- |Daylight |style="background-color:#62410F;"|#62410F |style..."
 
No edit summary
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{stub}}
<includeonly><!--
{{loc}}
-->{{#cargo_query:
Heavily WIP!
tables =
Draft for what it should look like, but it still needs:
    Spell = S,
*gold rings around round icons
    SpellRank = R,
*links where needed
    Translation = T,
*faction colour coding
    Translation = R1,
Spell School Colors (taken from spellbook icon frames): use Center Color or Swatch Color (decide which?) for the header and main colored cells, and use Ring Color for Level 2/3/4 cells
    Translation = R2,
{|
    Translation = R3,
!School || Center Color || Swatch Color || Ring Color
    Translation = R4
|-
| join on =
|Daylight
    S.id = T.target_id,
|style="background-color:#62410F;"|#62410F
    S.id = R1.target_id,
|style="background-color:#62410F;"|#62410F
    S.id = R2.target_id,
|style="background-color:#C49714C3;"|#C49714C3
    S.id = R3.target_id,
|-
    S.id = R4.target_id,
|Nightshade
    S.id = R.spell_id
|style="background-color:#461B5B;"|#461B5B
| where =
|style="background-color:#3F1B52;"|#3F1B52
    S.id = '{{{id}}}'
|style="background-color:#6B3486C3;"|#6B3486C3
    AND T.type = 'spell'
|-
    AND T.language = '{{{lang|en}}}'
|Primal
    AND R.level = 1
|style="background-color:#67281B;"|#67281B
    AND R1.language = '{{{lang|en}}}'
|style="background-color:#67281B;"|#67281B
    AND R1.variant = 1
|style="background-color:#c40700;"|#C40700C3
    AND R2.language = '{{{lang|en}}}'
|-
    AND R2.variant = 2
|Arcane
    AND R3.language = '{{{lang|en}}}'
|style="background-color:#1C444F;"|#1C444F
    AND R3.variant = 3
|style="background-color:#1C444F;"|#1C444F
    AND R4.language = '{{{lang|en}}}'
|style="background-color:#106278C3;"|#106278C3
    AND R4.variant = 4
|-
| fields =
|Neutral
    T.language = lang,
|style="background-color:#27273D;"|#27273D
    S.id = id,
|style="background-color:#383765;"|#383765
    S.icon = icon,
|style="background-color:#2F4AB7C3;"|#2F4AB7C3
    T.name = name,
|}
    S.rank = tier,
{|class=infobox style="border-collapse: collapse; border: 1px solid #BCB096; margin:10px;"
    R.mana_cost = mana,
|-colspan=2, style="text-align:center;vertical-align:center;border:collapse;background-color:#62410F;border: 1px solid #BCB096;"
    S.school = school,
| colspan=3|<big><b>Haste</b></big>
    S.used_on_map = map_spell,
|-style="text-align:center;vertical-align:center;"
    R1.description = effect,
|colspan=2|
    R2.bonus_description = level2,
{|style="border-collapse:collapse;width:100%;"
    R3.bonus_description = level3,
|style="text-align:center;vertical-align:top;width:70px;padding:5px;"|Tier<br><span style="color:white;">IV</span>
    R4.bonus_description = level4,
|rowspan=2, style="width:150px;padding:5px;"| [[File:Haste.png|150px|link=]]
    S.excaption_in_tooltip_sid = immunities,
|style="text-align:center;vertical-align:top;width:70px;padding:5px;"|Mana<br><span style="color:white;white-space:nowrap;">99 {{hint|[[File:Mana_icon.png|20px|link=]]|Mana|0}}</span>
    CONCAT("{{#if:{{{masterful|}}}<!--
|-style="text-align:center;vertical-align:center;"
        -->|{{{masterful}}}<!--
|style="text-align:center;vertical-align:bottom;width:70px;padding:5px;"|School<br>[[File:Daylight icon.png|50px|link=]]<br><span style="color:white;">Daylight Magic
        -->|{{#invoke:SpellInfobox|getMasterfulText| id={{{id}}} | lang={{{lang}}}}}<!--
|style="text-align:center;vertical-align:bottom;width:70px;padding:5px;"|Type<br>[[File:Battle spells.png|50px|link=]]<br><span style="color:white;">Battle Spell
        -->}}") = masterful
|}
| format =
|-style="border: 1px solid #BCB096;text-align:center;border: 1px solid #BCB096;background-color:#62410F;"
    template
| colspan=2| Effect
| template =
|-style="text-align:center;vertical-align:center;"
    SpellInfobox/base
| colspan=2, style="color:white;"| Description of effects
| named args =
|-style="text-align:center;vertical-align:center;border: 1px solid #BCB096;background-color:#62410F;"
    yes
| colspan=2| Effects at higher levels
}}<!--
|-style="text-align:center;vertical-align:center;border: 1px solid #BCB096;"
################################################################################
| colspan=1, style="border: 1px solid #BCB096;background-color:#C49714C3;color:white;width:auto;"| Level 2
--></includeonly><noinclude>
| colspan=1, style="color:white;"| Effects at level 2
 
|-style="text-align:center;vertical-align:center;border: 1px solid #BCB096;"
<!--=========================================================================-->
| colspan=1, style="border: 1px solid #BCB096;background-color:#C49714C3;color:white;width:auto;"| Level 3
==1. Daylight==
| colspan=1, style="color:white;"| Effects at level 3
{{SpellInfobox
|-style="text-align:center;vertical-align:center;border: 1px solid #BCB096;"
    | lang = en
| colspan=1, style="border: 1px solid #BCB096;background-color:#C49714C3;color:white;width:auto;"| Level 4
    | id = day_16_magic_arinas_chosen
| colspan=1, style="color:white;"| Effects at level 4
}}
|-style="text-align:center;vertical-align:center;border: 1px solid #BCB096;background-color:#62410F;"
<pre><nowiki>
| colspan=2| Masterful Version
{{SpellInfobox
|-style="text-align:center;vertical-align:center;"
    | lang = en
| colspan=2, style="color:white;"| Effect of masterful version
    | id = day_16_magic_arinas_chosen
|-style="text-align:center;vertical-align:center;border: 1px solid #BCB096;background-color:#62410F;"
}}
| colspan=2| Specialist Hero
</nowiki></pre>
|-style="text-align:center;vertical-align:center;"
{{Clear}}
| colspan=2| <div style="color: white;display:inline-block;margin:4px 8px 4px 8px;vertical-align:top;text-align:center;white-space:normal; max-width:100px">[[File:Mila.png|60px|link=Mila]]<br>[[Zoran, the Self-Founded]]</div> <div style="color: white;display:inline-block;margin:4px 8px 4px 8px;vertical-align:top;text-align:center;white-space:normal; max-width:100px">[[File:Mila.png|60px|link=Mila]]<br>[[Mila]]</div>
 
|}
<!--=========================================================================-->
==Use==
==2. Nightshade==
<nowiki>{{Template:SpellInfobox
{{SpellInfobox
|name=
    | lang = fr
}}</nowiki>
    | id = night_2_magic_web
==Examples==
}}
{{clear}}
<pre><nowiki>
<nowiki>{{Template:SpellInfobox
{{SpellInfobox
|name=
    | lang = fr
|image=
    | id = night_2_magic_web
|tier=
}}
}}</nowiki>
</nowiki></pre>
[[Category:Infobox templates]][[Category:Stubs]]
{{Clear}}
 
<!--=========================================================================-->
==3. Arcane==
{{SpellInfobox
    | lang = en
    | id = space_7_magic_shackles
}}
<pre><nowiki>
{{SpellInfobox
    | lang = en
    | id = space_7_magic_shackles
}}
</nowiki></pre>
{{Clear}}
 
<!--=========================================================================-->
==4. Primal==
{{SpellInfobox
    | lang = en
    | id = primal_10_magic_primordial_purity
}}
<pre><nowiki>
{{SpellInfobox
    | lang = en
    | id = primal_10_magic_primordial_purity
}}
</nowiki></pre>
{{Clear}}
 
<!--=========================================================================-->
==5. Neutral==
{{SpellInfobox
    | lang = en
    | id = neutral_magic_dimension_door
}}
<pre><nowiki>
{{SpellInfobox
    | lang = en
    | id = neutral_magic_dimension_door
}}
</nowiki></pre>
{{Clear}}
 
<!--=========================================================================-->
==6. Global Map==
{{SpellInfobox
    | lang = en
    | id = night_17_magic_read_minds
}}
<pre><nowiki>
{{SpellInfobox
    | lang = en
    | id = night_17_magic_read_minds
}}
</nowiki></pre>
 
__NOTOC__
</noinclude>

Latest revision as of 09:29, 3 August 2026


1. Daylight

Arina's Chosen
Tier
V
Mana
18
School
Daylight Magic
Type
Battle Spell
Effect
Target friendly creature cannot have less than 20% of their current units. Taking Damage reduces the duration of the effect by 1 round(s).
Duration: 2 round(s).
Effects at higher levels
Level 2 Minimum stack size: 20% > 35%.
Level 3 Base effect duration: 2 > 4.
Level 4 Minimum stack size: 35% > 50%.
Masterful Version
This version of the spell gives the target +1 extra turn(s).
Heroes that start with this spell
Sister
Deira
Internal ID
day_16_magic_arinas_chosen
{{SpellInfobox
    | lang = en
    | id = day_16_magic_arinas_chosen
}}

2. Nightshade

Toile
Pallier
II
Mana
9
École
Sorts de belladone
Type
Sort de Combat
Effet
Réduit de 2 la vitesse de la créature ennemie ciblée.
Durée : [2 + 1 tous les 5 points en puissance de sorts du héros] tour(s).
Effets Bonus
Niveau 2 Réduction de vitesse : –2 >–3.
Niveau 3 Dissipe « Hâte ».
Niveau 4 Réduction de vitesse : –3 >–4.
Version Magistrale
Cette version du sort affecte tous les ennemis.
Héros commençant avec ce sort
Marl
ID interne
night_2_magic_web
{{SpellInfobox
    | lang = fr
    | id = night_2_magic_web
}}

3. Arcane

Shackles
Tier
III
Mana
6
School
Arcane Magic
Type
Battle Spell
Effect
Target enemy creature cannot counterattack.
Duration: [ 1 + 1 per every 6 hero’s Spell Power ] round(s).
Effects at higher levels
Level 2 Base effect duration: 1 > 2.
Level 3 Dispels “Riposte.”
Level 4 Affects enemy creatures adjacent to the target.
Heroes that start with this spell
Changeling
Urgo
Internal ID
space_7_magic_shackles
{{SpellInfobox
    | lang = en
    | id = space_7_magic_shackles
}}

4. Primal

Anti-Magic
Tier
IV
Mana
12
School
Primal Magic
Type
Battle Spell
Effect
Any chosen target becomes immune to spells of tier 3 and lower. This effect cannot be dispelled. If the target is a summoned creature or contains temporary units in its stack, those are destroyed.
Duration: 1 round(s).
Effects at higher levels
Level 2 Base effect duration: 1 > 2.
Level 3 Affects tier-1-4 spells.
Level 4 Also affects tier-1-5 spells.
Heroes that start with this spell
Tavi
Internal ID
primal_10_magic_primordial_purity
{{SpellInfobox
    | lang = en
    | id = primal_10_magic_primordial_purity
}}

5. Neutral

Dimension Door
Tier
IV
Mana
22
School
Neutral Magic
Type
Global Map Spell
Effect
Teleports the hero to target location within 8 squares. Usable 1 times per day.
The hero must be at least level 5 to learn this spell.
Effects at higher levels
Level 2 Base mana cost: 22 > 14.
Level 3 Target radius: 8 > 11.
Level 4 Can be used +1 time per day.
Internal ID
neutral_magic_dimension_door
{{SpellInfobox
    | lang = en
    | id = neutral_magic_dimension_door
}}

6. Global Map

Read Minds
Tier
II
Mana
10
School
Nightshade Magic
Type
Global Map Spell
Effect
Reveals the precise number and intentions of all neutral squads within [ 3 × hero’s sight ] squares of the hero.
Effects at higher levels
Level 2 Base mana cost: 10 > 7.
Level 3 Reveals information on enemy heroes.
Level 4 Reveals information on enemy cities.
Heroes that start with this spell
Creta,
daughter
of
Navarr
Funerella
Internal ID
night_17_magic_read_minds
{{SpellInfobox
    | lang = en
    | id = night_17_magic_read_minds
}}