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|fields=CONCAT('[[',_pageName,'{{!}}{{(}}Hover{{!}}', |
+ | <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{{!}}',_pageName,'{{!}}{{(}}#invoke:StripWikitext{{!}}main{{!}}1=',IFNULL(Description,''),'{{)}}{{)}}]]')|group by=_pageName|where=_pageName='{{#var:escpgname}}'|default=[[{{{1|}}}]]{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Pages with script errors]]}}}}</span></includeonly> |
Revision as of 20:32, 25 February 2019
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
The above documentation is transcluded from Template:UnitPage/doc. (edit | history)