Fire Emblem Heroes Wiki
Register
mNo edit summary
m (Undo revision 383665 by Markfeh (talk))
Tag: Undo
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|fields=CONCAT('[[',_pageName,'{{!}}{{(}}Hover{{!}}',Name,': ',Title,'{{!}}{{(}}#invoke:StripWikitext{{!}}main{{!}}1=',IFNULL(Description,''),'{{)}}{{)}}]]')|group by=_pageName|where=_pageName='{{#var:escpgname}}'|default=<span style="color:red"><nowiki>{{HeroPage|</nowiki>{{{1|}}}<nowiki>}}</nowiki></span>{{#cargo_query:tables=Enemies|fields=CONCAT('[[',_pageName,'{{!}}{{(}}Hover{{!}}',Name,': ',Title,'{{!}}{{(}}#invoke:StripWikitext{{!}}main{{!}}1=',IFNULL(Description,''),'{{)}}{{)}}]]')|group by=_pageName|where=_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|fields=CONCAT('[[',_pageName,'{{!}}{{(}}Hover{{!}}',Name,': ',Title,'{{!}}{{(}}#invoke:StripWikitext{{!}}main{{!}}1=',IFNULL(Description,''),'{{)}}{{)}}]]')|group by=_pageName|where=_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:52, 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