Fire Emblem Heroes Wiki
Register
mNo edit summary
mNo edit summary
Line 1: Line 1:
<noinclude>{{doc}}[[Category:Templates]][[Category:Page templates]]</noinclude><includeonly>{{#vardefine:escpgname|{{EscQ|{{#vardefineecho:pgname|{{HtP|{{{1|}}}}}}}}}}}<span style="white-space:nowrap;">{{#cargo_query:tables=Heroes=h,Enemies=e|fields=CONCAT('[[',h._pageName,'{{!}}{{(}}Hover{{!}}',h.Name,': ',h.Title,'{{!}}{{(}}#invoke:StripWikitext{{!}}main{{!}}1=',IFNULL(Description,''),'{{)}}{{)}}]]'),IFNULL(CONCAT('[[',e._pageName,'{{!}}{{(}}Hover{{!}}',e.Name,': ',e.Title,'{{!}}{{(}}#invoke:StripWikitext{{!}}main{{!}}1=',IFNULL(Description,''),'{{)}}{{)}}]])|join on=h._pageName=e._pageName,h.Name=e.Name,h.Title=e.Title|group by=h._pageName,e._pageName|where=h._pageName='{{#var:escpgname}}' OR e._pageName='{{#var:escpgname}}'|default=<span style="color:red"><nowiki>{{HeroPage|</nowiki>{{{1|}}}<nowiki>}}</nowiki></span>{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Pages with script errors]]}}}}</includeonly>
+
<noinclude>{{doc}}[[Category:Templates]][[Category:Page templates]]</noinclude><includeonly>{{#vardefine:escpgname|{{EscQ|{{#vardefineecho:pgname|{{HtP|{{{1|}}}}}}}}}}}<span style="white-space:nowrap;">{{#cargo_query:tables=Heroes=h,Enemies=e|fields=CONCAT('[[',h._pageName,'{{!}}{{(}}Hover{{!}}',h.Name,': ',h.Title,'{{!}}{{(}}#invoke:StripWikitext{{!}}main{{!}}1=',IFNULL(Description,''),'{{)}}{{)}}]]'),IFNULL(CONCAT('[[',e._pageName,'{{!}}{{(}}Hover{{!}}',e.Name,': ',e.Title,'{{!}}{{(}}#invoke:StripWikitext{{!}}main{{!}}1=',IFNULL(Description,''),'{{)}}{{)}}]]')|join on=h._pageName=e._pageName,h.Name=e.Name,h.Title=e.Title|group by=h._pageName,e._pageName|where=h._pageName='{{#var:escpgname}}' OR e._pageName='{{#var:escpgname}}'|default=<span style="color:red"><nowiki>{{HeroPage|</nowiki>{{{1|}}}<nowiki>}}</nowiki></span>{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Pages with script errors]]}}}}</includeonly>

Revision as of 20:40, 20 February 2019

Template-info Documentation

Returns the named link to the page of a Hero or an enemy. Has shorthand template {{Up}}, and compatibility templates {{HeroPage}}, {{Hp}}, {{EnemyPage}}, and {{Ep}}.

Examples

{{UnitPage|Alfonse: Prince of Askr}}
Error: Table Heroes not found.
{{UnitPage|Alfonse: Spring Prince}}
Error: Table Heroes not found.
{{UnitPage|Surtr: Ruler of Flame}}
Error: Table Heroes not found.
{{UnitPage|Lyn: Lady of the Plains|resplendent=1}}
Error: Table Heroes not found.
{{UnitPage|Gustav: Exsanguinator}}
Error: Table Heroes not found.
{{UnitPage|Fáfnir: King of Desolation}}
Error: Table Heroes not found.
{{UnitPage|Fáfnir: King of Desolation (Dragon)}}
Error: Table Heroes not found.
{{UnitPage|Fafnir King of Desolation ENEMY}}
Error: Table Heroes not found.
{{UnitPage|Red Bow}}
Error: Table Heroes not found.
{{UnitPage|INVALID'}}
Error: Table Heroes not found.

See also