Fire Emblem Heroes Wiki
mNo edit summary
mNo edit summary
(46 intermediate revisions by 3 users not shown)
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,',IFNULL(e._pageName),'{{!}}{{(}}Hover{{!}}',h._pageName,',IFNULL(e._pageName),'{{!}}{{(}}#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><span style="white-space:nowrap;">{{#invoke:cargo|query1|tables=Units|fields=CONCAT('[[',_pageName,'{{!}}{{(}}Hover{{!}}',IFNULL(CONCAT(Name,': ',Title),Name),'{{!}}{{(}}#invoke:StripWikitext{{!}}main{{!}}1=',IFNULL(Description,''),'{{)}}{{)}}]]')|group by=_pageName|where='{{EscQ|{{{1|}}}}}' IN (_pageName,IFNULL(CONCAT(Name,': ',Title),Name),WikiName)|warn={{(}}UnitPage{{!}}{{{1|}}}{{)}} not found|default=[[{{{1|}}}]]{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Pages with script errors]]}}}}</span></includeonly>

Revision as of 23:22, 8 December 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}}

Alfonse: Prince of Askr

{{UnitPage|Alfonse: Spring Prince}}

Alfonse: Spring Prince

{{UnitPage|Surtr: Ruler of Flame}}

Surtr: Ruler of Flame

{{UnitPage|Lyn: Lady of the Plains|resplendent=1}}

Lyn: Lady of the Plains

{{UnitPage|Gustav: Exsanguinator}}

Gustav: Exsanguinator

{{UnitPage|Fáfnir: King of Desolation}}

Fáfnir: King of Desolation

{{UnitPage|Fáfnir: King of Desolation (Dragon)}}

Fáfnir: King of Desolation

{{UnitPage|Fafnir King of Desolation ENEMY}}

Fáfnir: King of Desolation

{{UnitPage|Red Bow}}

Red Bow

{{UnitPage|INVALID'}}

INVALID'

See also