Template:HeroStinger: Difference between revisions
From Heroes of Might and Magic: Olden Era Official Wiki
Created page with "<noinclude> <pre><nowiki>{{HeroStinger|id=demon_hero_3}}</nowiki></pre> {{HeroStinger|id=demon_hero_3}} </noinclude><includeonly> {{#cargo_query:tables=Hero=H, HeroClass=HC, Faction=F | join on=H.class_id = HC.id,H.faction = F.id | fields= H.name, CONCAT(UPPER(SUBSTRING(H.class_type,1,1)), SUBSTRING(H.class_type,2,4))=class_type, HC.name=class, F.name=faction | where=H.id='{{{id|}}}' | format=template | template=HeroStinger/en | named args= yes }}</includeonly>" |
No edit summary |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
<pre><nowiki>{{HeroStinger|id=demon_hero_3}}</nowiki></pre> | <pre><nowiki>{{HeroStinger|id=demon_hero_3|lang=en}}</nowiki></pre> | ||
{{HeroStinger|id=demon_hero_3}} | {{HeroStinger|id=demon_hero_3|lang=en}} | ||
</noinclude><includeonly> | </noinclude><includeonly>{{#cargo_query: | ||
tables = Hero=H, HeroClass=HC, Faction=F, | |||
Translation=hero_t | |||
|join on = H.class_id = HC.id, | |||
H.faction = F.id, | |||
H.id = hero_t.target_id | |||
|where = H.id = '{{{id|}}}' | |||
AND hero_t.type = 'hero' AND hero_t.language = '{{{lang|en}}}' | |||
|fields = hero_t.name = name, | |||
H.faction = faction, | |||
H.class_id = class, | |||
H.class_type = class_type | |||
|format = template | |||
|template=HeroStinger/{{{lang|en}}} | |||
| | |named args = yes | ||
| | |||
| named args= yes | |||
}}</includeonly> | }}</includeonly> | ||


