Fire Emblem Heroes Wiki
m (EscQ -> EscapeQ)
m (merge EscapeQ back into EscQ)
Tag: Automated
Line 1: Line 1:
<noinclude>{{doc}}[[Category:Templates]][[Category:Page templates]]</noinclude><includeonly>{{#vardefine:escpgname|{{EscapeQ|{{#vardefineecho:pgname|{{HtP|{{{1|}}}}}}}}}}}<span style="white-space:nowrap;">{{#cargo_query:tables=Heroes|fields=CONCAT('[[',_pageName,'{{!}}{{(}}Hover{{!}}',Name,': ',Title,'{{!}}{{(}}#invoke:StripWikitext{{!}}main{{!}}1=',IFNULL(Description,''),'{{)}}{{)}}]]')|group by=_pageName|where=_pageName='{{#var:escpgname}}'|default={{#cargo_query:tables=Enemies|fields=CONCAT('[[',_pageName,'{{!}}{{(}}Hover{{!}}',Name,IF(IFNULL(Title,'')='','',CONCAT(': ',Title)),'{{!}}{{(}}#invoke:StripWikitext{{!}}main{{!}}1=',IFNULL(Description,''),'{{)}}{{)}}]]')|group by=_pageName|where=_pageName='{{#var:escpgname}}'|default=<span style="color:red"><nowiki>{{UnitPage|</nowiki>{{{1|}}}<nowiki>}}</nowiki></span>{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Pages with script errors]]}}}}}}</span></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|fields=CONCAT('[[',_pageName,'{{!}}{{(}}Hover{{!}}',Name,': ',Title,'{{!}}{{(}}#invoke:StripWikitext{{!}}main{{!}}1=',IFNULL(Description,''),'{{)}}{{)}}]]')|group by=_pageName|where=_pageName='{{#var:escpgname}}'|default={{#cargo_query:tables=Enemies|fields=CONCAT('[[',_pageName,'{{!}}{{(}}Hover{{!}}',Name,IF(IFNULL(Title,'')='','',CONCAT(': ',Title)),'{{!}}{{(}}#invoke:StripWikitext{{!}}main{{!}}1=',IFNULL(Description,''),'{{)}}{{)}}]]')|group by=_pageName|where=_pageName='{{#var:escpgname}}'|default=<span style="color:red"><nowiki>{{UnitPage|</nowiki>{{{1|}}}<nowiki>}}</nowiki></span>{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Pages with script errors]]}}}}}}</span></includeonly>

Revision as of 16:52, 30 June 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