Template:Sandbox/Aurelain/HeroesNavbox/Row: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
Input:
<pre><nowiki>
<pre><nowiki>
{{Sandbox/Aurelain/HeroesNavbox/Row|lang=en|class=might_human}}
{{Sandbox/Aurelain/HeroesNavbox/Row|lang=en|class=might_human}}
</nowiki></pre>
</nowiki></pre>
Output:
{{Sandbox/Aurelain/HeroesNavbox/Row|lang=en|class=might_human}}
{{Sandbox/Aurelain/HeroesNavbox/Row|lang=en|class=might_human}}
</noinclude><includeonly>
</noinclude><includeonly>
<!-- ################# -->
|{{LinkIcon|type=hero_class|id={{{class}}}|lang={{{lang}}}|suffix=_icon.png}}
|{{LinkIcon|type=hero_class|id={{{class}}}|lang={{{lang}}}|suffix=_icon.png}}
|{{#cargo_query:
|{{#cargo_query:
     tables  = Hero=H, Translation=T
     tables  = Hero=H, Translation=T
     |join on = H.id=T.target_id
     | join on = H.id=T.target_id
     |where  = H.class_id='{{{class}}}'
     | where  = H.class_id='{{{class}}}'
               AND T.type='hero'
               AND T.type='hero'
               AND T.language='{{{lang|en}}}'
               AND T.language='{{{lang|en}}}'
Line 15: Line 18:
               AND H.id NOT LIKE 'tutorial%'
               AND H.id NOT LIKE 'tutorial%'
               AND H.id NOT LIKE 'cm_fun%'
               AND H.id NOT LIKE 'cm_fun%'
     |order by= T.name
     | order by= T.name
     |fields  = 'hero'=type,
     | fields  = 'hero'=type,
               H.id=id,
               H.id=id,
               CONCAT('{{{lang|en}}}') = lang
               CONCAT('{{{lang|en}}}') = lang


     |format = template
     | format = template
     |template=LinkIcon
     | template=LinkIcon
     |delimiter=  • 
     | delimiter=  • 
     |named args = yes
     | named args = yes
}}
}}
</includeonly>
</includeonly>

Revision as of 07:32, 20 June 2026