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

From Heroes of Might and Magic: Olden Era Official Wiki
Created page with "<noinclude> {{loc}} {{Template:HeroInfoBox/base | lang=pl | id=demon_hero_4 | name=Zoran, the Self-Founded | portrait=Zoran, the Self-Founded.png | faction=demon | class=might_demon | startattack=4 | startdefense=0 | startspellpower=2 | startknowledge=1 | motto=Waurmos are complex and intelligent creatures, but few of them stoop to finding personhood. This one did. }} <pre><nowiki> {{Template:HeroInfoBox/base | lang=en | id=demon_hero_4 | name=Zoran, the Self-Founded |..."
 
No edit summary
 
(73 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<includeonly><!--
{{loc}}
--><templatestyles src="Template:Sandbox/Aurelain/HeroInfobox/styles.css" /><!--
--><div class='hero-box faction-{{{faction}}}'>
    <!--==== TITLE ==========================================================-->
    <div class='band title'>{{{name}}}</div>


{{Template:HeroInfoBox/base
    <!--==== PORTRAIT =======================================================-->
| lang=pl
    <div class='image'>[[File:{{{portrait}}}|300px]]</div>
| id=demon_hero_4
 
| name=Zoran, the Self-Founded
    <!--==== MOTTO ==========================================================-->
| portrait=Zoran, the Self-Founded.png
    <div style='font-style: italic; color:#fff;'>{{{motto}}}</div>
| faction=demon
 
| class=might_demon
    <!--==== FACTION ========================================================-->
| startattack=4
    <div class='field'>
| startdefense=0
        <div>{{Translation|faction|{{{lang}}}}}</div>
| startspellpower=2
        <div>{{F|{{{faction}}}|{{{lang}}}}}</div>
| startknowledge=1
    </div>
| motto=Waurmos are complex and intelligent creatures, but few of them stoop to finding personhood. This one did.
 
}}
    <!--==== HERO CLASS =====================================================-->
    <div class='field'>
        <div>{{Translation|wiki_hero_class|{{{lang}}}}}</div>
        <div>{{Class|{{{class}}}|{{{lang}}}}}</div>
    </div>


<pre><nowiki>
    <!--==== ATTRIBUTES =====================================================-->
{{Template:HeroInfoBox/base
    <div class='band'>{{Translation|wiki_start_attributes|{{{lang}}}}}</div>
| lang=en
    <div style='display:flex;color:#fff'>
| id=demon_hero_4
        {{StatDisplay|id=offence|stat={{{startattack}}}|lang={{{lang}}}}}
| name=Zoran, the Self-Founded
        {{StatDisplay|id=defence|stat={{{startdefense}}}|lang={{{lang}}}}}
| portrait=Zoran, the Self-Founded.png
        {{StatDisplay|id=spellPower|stat={{{startspellpower}}}|lang={{{lang}}}}}
| faction=demon
        {{StatDisplay|id=intelligence|stat={{{startknowledge}}}|lang={{{lang}}}}}
| class=might_demon
    </div>
| startattack=4
| startdefense=0
| startspellpower=2
| startknowledge=1
| motto=Waurmos are complex and intelligent creatures, but few of them stoop to finding personhood. This one did.
}}</nowiki></pre>


    <!--==== STARTING SKILLS ================================================-->
    <div class='band'>{{Translation|starting_skills|{{{lang}}}}}</div>
    <div class='columnar'>{{#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}}}') = lang
        | where =
            H.id = '{{{id|}}}'
            AND S._value IS NOT NULL
        | order by = S._position
        | format = template
        | template = Skill
        | named args = yes
        | default = {{Translation|wiki_none|{{{lang}}}}}
        }}
    </div>


</noinclude><includeonly>{|class=infobox style='margin:0em 1em 1em 1em;float:right;text-align: center;vertical-align: center; width:25%; border-collapse: collapse; border: 1px solid #BCB096'
    <!--==== STARTING SPELLS ================================================-->
|-style='border-bottom: 1px solid #BCB096; background-color:#1E3758'
    <div class='band'>{{Translation|starting_spells|{{{lang}}}}}</div>
|colspan=2|
    <div class='columnar'>{{#cargo_query:
{|style='width:100%;text-align: center;vertical-align: center; border-collapse: collapse;"
        tables =
|<span style="font-size: 150%;">{{{name}}}</span>
            Hero = H,
|}
            Hero__start_magics = S
|-style='border-bottom: 1px solid #BCB096'
        | join on =
|colspan=2|[[File:{{{portrait}}}|300px]]
            H._rowID = S._rowID
        | fields =
            S._value = id,
            CONCAT('{{{lang}}}') = lang
        | where =
            H.id = '{{{id|}}}'
            AND S._value IS NOT NULL
        | format = template
        | template = Spell
        | named args = yes
        | default = {{Translation|wiki_none|{{{lang}}}}}
        }}
    </div>


|-
    <!--==== STARTING ARMY ==================================================-->
|colspan=2 style="color: white; padding:4px;"|''{{{motto}}}''
    <div class='band'>{{Translation|starting_army|{{{lang}}}}}</div>
    <div class='army'>{{#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 =
            U.id = id,
            CONCAT('{{{lang}}}') = lang,
            CONCAT('1') = stack,
            IF(HSS.min = HSS.max, HSS.min, CONCAT(HSS.min, "-", HSS.max)) = text
        |order by = HSS.slot
        |format = template
        |template = Unit
        |named args = yes
        }}
    </div>


|-style='border-bottom: 1px solid #BCB096; background-color:#1E3758'
    <!--==== INTERNAL ID ====================================================-->
|style='border: 1px solid #BCB096;width:50%;'|{{Link|type=ui|id=faction|lang={{{lang}}}}}
    <div class='band'>{{Translation|wiki_internal_id|{{{lang}}}}}</div>
|style='border: 1px solid #BCB096;width:50%;'|{{Label|hero_class|{{{lang}}}}}
    <div style='color:rgba(255,255,255,0.5)'>{{{id}}}</div>
|-
</div><!--
|style='border: 1px solid #BCB096;padding:4px;width:50%;'|{{LinkIcon|type=faction|id={{{faction}}}|suffix=_icon.png|lang={{{lang}}}|wrap=1}}
--></includeonly><!--
|style='border: 1px solid #BCB096;padding:4px;width:50%;'|{{LinkIcon|type=hero_class|id={{{class}}}|suffix=_icon.png|lang={{{lang}}}|wrap=1}}
################################################################################
|-style='border-bottom: 1px solid #BCB096; background-color:#1E3758'
--><noinclude>
|colspan=2|{{Link|type=ui|id=stats|lang={{{lang}}}}}
<!--=========================================================================-->
|-style='border-bottom: 1px solid #BCB096'
==1. English:==
|colspan=2|
{{Sandbox/Aurelain/HeroInfobox/base
{|style="gap:8px; justify-content:space-between; align-items:center; width:100%;"
    | lang = en
|style="color:white;text-align:center; width:25%;"|{{StatDisplay|id=offence|stat={{{startattack}}}|lang={{{lang}}}}}
    | id = necro_hero_10
|style="color:white;text-align:center; width:25%;"|{{StatDisplay|id=defence|stat={{{startdefense}}}|lang={{{lang}}}}}
    | name = Mag
|style="color:white;text-align:center; width:25%;"|{{StatDisplay|id=spellPower|stat={{{startspellpower}}}|lang={{{lang}}}}}
    | portrait = Mag.png
|style="color:white;text-align:center; width:25%;"|{{StatDisplay|id=intelligence|stat={{{startknowledge}}}|lang={{{lang}}}}}
    | faction = undead
|}
    | class = magic_undead
|-style='border-bottom: 1px solid #BCB096; background-color:#1E3758'
    | startattack = 1
|colspan=2, style="border: 1px solid #BCB096;"|{{Link|type=ui|id=starting_skills|link=Skills|lang={{{lang}}}}}
    | startdefense = 0
|-colspan=2, style='text-align: center;vertical-align: center;'
    | startspellpower = 2
|colspan=2|
    | startknowledge = 4
{{#cargo_query:tables=Hero=H, Hero__start_skills=S, Hero__start_skill_levels=L
    | motto = To a true scholar of magic, the body is nothing but dead weight.
| 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
<pre><nowiki>
| where=H.id='{{{id|}}}'
{{Sandbox/Aurelain/HeroInfobox/base
| order by=S._position
    | lang = en
| format=template
    | id = necro_hero_10
| template=SkillDisplay
    | name = Mag
| named args= yes
    | portrait = Mag.png
| delimiter=\n\n
    | faction = undead
    | class = magic_undead
    | startattack = 1
    | startdefense = 0
    | startspellpower = 2
    | startknowledge = 4
    | motto = To a true scholar of magic, the body is nothing but dead weight.
}}
}}
</nowiki></pre>
{{Clear}}


|-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}}}}}
==2. Japanese:==
|-style='border-bottom: 1px solid #BCB096'
{{Sandbox/Aurelain/HeroInfobox/base
|colspan=2, style='color: white;border: 1px solid #BCB096; padding:4px;'|
    | lang = ja
{{#cargo_query:tables=Hero=H, Hero__start_magics=S
    | id = necro_hero_10
| join on=H._rowID=S._rowID
    | name = マグ
| fields= S._value=id, CONCAT('{{{lang|en}}}') = lang
    | portrait = Mag.png
| where=H.id='{{{id|}}}'
    | faction = undead
| format=template
    | class = magic_undead
| template=SpellDisplay
    | startattack = 1
| named args= yes
    | startdefense = 0
| delimiter=\n\n
    | startspellpower = 2
    | startknowledge = 4
    | motto = 真の魔法学者にとって、肉体は重荷でしかない。
}}
}}
 
<pre><nowiki>
|-style='border-bottom: 1px solid #BCB096; background-color:#1E3758'
{{Sandbox/Aurelain/HeroInfobox/base
|colspan=2|{{Link|type=ui|id=starting_army|lang={{{lang}}}|link=0}}
    | lang = ja
|-style='border-bottom: 1px solid #BCB096'
    | id = necro_hero_10
|colspan=2|
    | name = マグ
{|<div style="text-align:center;">
    | portrait = Mag.png
|style="width:25%;"|
     | faction = undead
{{#cargo_query:
     | class = magic_undead
tables  = Hero=H, HeroStartSquad=HSS, Unit=U,
    | startattack = 1
          Translation=unit_t, Translation=unit_en
    | startdefense = 0
|join on = H.id         = HSS.hero_id,
    | startspellpower = 2
          HSS.unit_id  = U.id,
    | startknowledge = 4
          U.id        = unit_t.target_id,
    | motto = 真の魔法学者にとって、肉体は重荷でしかない。
          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>
</nowiki></pre>
|}
 
|-style='border-bottom: 1px solid #BCB096; background-color:#1E3758'
|colspan=2|{{Label|internal_id|{{{lang}}}|nolink}}
|-
|colspan=2, style="color:white; opacity:50%;" |{{{id}}}


|}</includeonly>
</noinclude>

Latest revision as of 19:30, 25 August 2026

1. English:

Mag
To a true scholar of magic, the body is nothing but dead weight.
Faction
Hero Class
Starting Attributes
Attack 1
Starting Skills
Starting Spells
Starting Army
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 = 1
    | startdefense = 0
    | startspellpower = 2
    | startknowledge = 4
    | motto = To a true scholar of magic, the body is nothing but dead weight.
}}

2. Japanese:

マグ
真の魔法学者にとって、肉体は重荷でしかない。
Hero Class💬
Starting Attributes💬
開始スキル
開始呪文
開始軍勢
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 = 1
    | startdefense = 0
    | startspellpower = 2
    | startknowledge = 4
    | motto = 真の魔法学者にとって、肉体は重荷でしかない。
}}