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 5: Line 5:
     <!--==== TITLE ==========================================================-->
     <!--==== TITLE ==========================================================-->
     <tr class='band'>
     <tr class='band'>
         <td colspan='4' class='title'>{{{name}}}</td>
         <td class='title'><!--
            -->{{{name}}}<!--
        --></td>
     </tr>
     </tr>
|colspan=2|
    <!--==== PORTRAIT =======================================================-->
{|style='width:100%;text-align: center;vertical-align: center; border-collapse: collapse;"
    <!--==== FACTION ========================================================-->
|<span style="font-size: 150%;">{{{name}}}</span>
    <tr>
|}
        <td><!--
|-style='border-bottom: 1px solid #BCB096'
            --><div class='field'><!--
|colspan=2|[[File:{{{portrait}}}|300px]]
                --><div>{{Translation|faction|{{{lang}}}}}</div><!--
 
                --><div>{{F|{{{faction}}}|{{{lang}}}}}</div><!--
|-
            --></div><!--
|colspan=2 style="color: white; padding:4px;"|''{{{motto}}}''
        --></td>
 
    </tr>
|-style='border-bottom: 1px solid #BCB096; background-color:#1E3758'
    <!--==== HERO CLASS =====================================================-->
|style='border: 1px solid #BCB096;width:50%;'|{{Link|type=ui|id=faction|lang={{{lang}}}}}
    <!--==== ATTRIBUTES =====================================================-->
|style='border: 1px solid #BCB096;width:50%;'|{{Label|hero_class|{{{lang}}}}}
    <!--==== STARTING SKILLS ================================================-->
|-
    <!--==== STARTING SPELLS ================================================-->
|style='border: 1px solid #BCB096;padding:4px;width:50%;'|{{LinkIcon|type=faction|id={{{faction}}}|suffix=_icon.png|lang={{{lang}}}|wrap=1}}
    <!--==== STARTING ARMY ==================================================-->
|style='border: 1px solid #BCB096;padding:4px;width:50%;'|{{LinkIcon|type=hero_class|id={{{class}}}|suffix=_icon.png|lang={{{lang}}}|wrap=1}}
    <!--==== INTERNAL ID ====================================================-->
|-style='border-bottom: 1px solid #BCB096; background-color:#1E3758'
    <tr class='band'>
|colspan=2|{{Link|type=ui|id=stats|lang={{{lang}}}}}
        <td><!--
|-style='border-bottom: 1px solid #BCB096'
            -->{{Translation|wiki_internal_id|{{{lang}}}}}<!--
|colspan=2|
        --></td>
{|style="gap:8px; justify-content:space-between; align-items:center; width:100%;"
    </tr>
|style="color:white;text-align:center; width:25%;"|{{StatDisplay|id=offence|stat={{{startattack}}}|lang={{{lang}}}}}
    <tr>
|style="color:white;text-align:center; width:25%;"|{{StatDisplay|id=defence|stat={{{startdefense}}}|lang={{{lang}}}}}
        <td style='color:#fff;opacity:0.5'><!--
|style="color:white;text-align:center; width:25%;"|{{StatDisplay|id=spellPower|stat={{{startspellpower}}}|lang={{{lang}}}}}
            -->{{{id}}}<!--
|style="color:white;text-align:center; width:25%;"|{{StatDisplay|id=intelligence|stat={{{startknowledge}}}|lang={{{lang}}}}}
        --></td>
|}
    </tr><!--
|-style='border-bottom: 1px solid #BCB096; background-color:#1E3758'
--></table><!--
|colspan=2, style="border: 1px solid #BCB096;"|{{Link|type=ui|id=starting_skills|link=Skills|lang={{{lang}}}}}
|-colspan=2, style='text-align: center;vertical-align: center;'
|colspan=2|
{{#cargo_query:tables=Hero=H, Hero__start_skills=S, Hero__start_skill_levels=L
| join on=H._rowID=S._rowID, S._rowID=L._rowID, S._position=L._position
| fields= S._value=id, L._value=level, CONCAT('{{{lang|en}}}') = lang
| where=H.id='{{{id|}}}'
| order by=S._position
| format=template
| template=SkillDisplay
| named args= yes
| delimiter=\n\n
}}
 
|-style="border-bottom: 1px solid #BCB096;border-top: 1px solid #BCB096; background-color:#1E3758"
|colspan=2|{{Link|type=ui|id=starting_spells|link=Spells|lang={{{lang}}}}}
|-style='border-bottom: 1px solid #BCB096'
|colspan=2, style='color: white;border: 1px solid #BCB096; padding:4px;'|
{{#cargo_query:tables=Hero=H, Hero__start_magics=S
| join on=H._rowID=S._rowID
| fields= S._value=id, CONCAT('{{{lang|en}}}') = lang
| where=H.id='{{{id|}}}'
| format=template
| template=SpellDisplay
| named args= yes
| delimiter=\n\n
}}
 
|-style='border-bottom: 1px solid #BCB096; background-color:#1E3758'
|colspan=2|{{Link|type=ui|id=starting_army|lang={{{lang}}}|link=0}}
|-style='border-bottom: 1px solid #BCB096'
|colspan=2|
{|<div style="text-align:center;">
|style="width:25%;"|
{{#cargo_query:
tables  = Hero=H, HeroStartSquad=HSS, Unit=U,
          Translation=unit_t, Translation=unit_en
|join on = H.id        = HSS.hero_id,
          HSS.unit_id  = U.id,
          U.id        = unit_t.target_id,
          U.id        = unit_en.target_id
|where  = H.id = '{{{id|}}}'
          AND HSS.variant    = 'primary'
          AND unit_t.type    = 'unit'      AND unit_t.language    = '{{{lang|en}}}'
          AND unit_en.type    = 'unit'      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
}}
</div>
|}
 
|-style='border-bottom: 1px solid #BCB096; background-color:#1E3758'
|colspan=2|{{Label|internal_id|{{{lang}}}|nolink}}
|-
|colspan=2, style="color:white; opacity:50%;" |{{{id}}}
 
|}<!--
--></div><!-- end hero-box
--></div><!-- end hero-box
--></includeonly><!--
--></includeonly><!--

Revision as of 06:48, 25 August 2026

1. English:

Mag
Faction
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:

マグ
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 = 真の魔法学者にとって、肉体は重荷でしかない。
}}