Template:Sandbox/Aurelain/HeroInfobox/base: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary
No edit summary
Line 72: Line 72:
     <div class='band'>{{Translation|starting_army|{{{lang}}}}}</div>
     <div class='band'>{{Translation|starting_army|{{{lang}}}}}</div>
     <div>{{#cargo_query:
     <div>{{#cargo_query:
         tables = Hero=H, HeroStartSquad=HSS, Unit=U,
         tables =
        Translation=unit_t, Translation=unit_en
            Hero=H,
         |join on = H.id         = HSS.hero_id,
            HeroStartSquad=HSS,
        HSS.unit_id = U.id,
            Unit=U,
        U.id         = unit_t.target_id,
            Translation=unit_t,
        U.id         = unit_en.target_id
            Translation=unit_en
         |where   = H.id = '{{{id|}}}'
         |join on =
        AND HSS.variant     = 'primary'
            H.id = HSS.hero_id,
        AND unit_t.type     = 'unit'       AND unit_t.language   = '{{{lang|en}}}'
            HSS.unit_id = U.id,
        AND unit_en.type   = 'unit'       AND unit_en.language   = 'en'
            U.id = unit_t.target_id,
         |fields = unit_t.name                         = name,
            U.id = unit_en.target_id
        unit_en.name                         = pagelink,
         |where =
        CONCAT(unit_en.name, '_icon')       = filename,
            H.id = '{{{id|}}}'
        IF(HSS.min = HSS.max, HSS.min,
            AND HSS.variant = 'primary'
        CONCAT(HSS.min, " - ", HSS.max)) = text
            AND unit_t.type = 'unit'
         |order by= HSS.slot
            AND unit_t.language = '{{{lang|en}}}'
         |format = template
            AND unit_en.type = 'unit'
         |template= MediumIconThumbDisplay
            AND unit_en.language = 'en'
         |fields =
            unit_t.name = name,
            unit_en.name = pagelink,
            CONCAT(unit_en.name, '_icon') = filename,
            IF(HSS.min = HSS.max,
                HSS.min,
                CONCAT(HSS.min, " - ", HSS.max)
            ) = text
         |order by = HSS.slot
         |format = template
         |template = MediumIconThumbDisplay
         |named args = yes
         |named args = yes
         }}
         }}

Revision as of 08:49, 25 August 2026

1. English:

Mag
To a true scholar of magic, the body is nothing but dead weight.
Faction
Hero Class
Attributes
Starting Skills
Starting Spells
Starting Army

20 - 27

11 - 16

8 - 11
Internal ID
necro_hero_10
{{Sandbox/Aurelain/HeroInfobox/base
    | lang = en
    | id = necro_hero_10
    | name = Mag
    | portrait = Mag.png
    | faction = undead
    | class = magic_undead
    | startattack = 4
    | startdefense = 0
    | startspellpower = 2
    | startknowledge = 1
    | motto = To a true scholar of magic, the body is nothing but dead weight.
}}

2. Japanese:

マグ
真の魔法学者にとって、肉体は重荷でしかない。
Hero Class💬
能力値
開始スキル
開始呪文
開始軍勢

20 - 27

11 - 16

8 - 11
Internal ID💬
necro_hero_10
{{Sandbox/Aurelain/HeroInfobox/base
    | lang = ja
    | id = necro_hero_10
    | name = マグ
    | portrait = Mag.png
    | faction = undead
    | class = magic_undead
    | startattack = 4
    | startdefense = 0
    | startspellpower = 2
    | startknowledge = 1
    | motto = 真の魔法学者にとって、肉体は重荷でしかない。
}}