Jump to content

Template:Infobox NPC: Difference between revisions

From Apogea Wiki
Dane (talk | contribs)
Add trainer class display (via update-page on MediaWiki MCP Server)
Dane (talk | contribs)
Use format=template with Plain to output raw wikitext (via update-page on MediaWiki MCP Server)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="infobox infobox-npc">
<includeonly>{{#invoke:Infobox|npc}}
<div class="infobox-header">{{{name|{{PAGENAME}}}}}</div>
{{#cargo_query:tables=NPCs|fields=description|where=_pageName="{{PAGENAME}}"|format=template|template=Plain|named args=yes}}</includeonly><noinclude>
<div class="infobox-image">{{Sprite|{{{sprite|{{{name|{{PAGENAME}}}}}}}}|}}</div>
{{#if:{{{type|}}}|<div class="infobox-row"><span class="infobox-label">Type</span><span class="infobox-value">{{{type}}}</span></div>}}
{{#if:{{{trainer|}}}|<div class="infobox-row"><span class="infobox-label">Trainer</span><span class="infobox-value">{{{trainer}}} Trainer</span></div>}}
{{#if:{{{location|}}}|<div class="infobox-row"><span class="infobox-label">Location</span><span class="infobox-value">{{{location}}}</span></div>}}
</div></includeonly><noinclude>
{{Documentation}}
{{Documentation}}
[[Category:Infobox templates]]
[[Category:Infobox templates]]
</noinclude>
</noinclude>

Latest revision as of 13:51, 1 February 2026

Documentation

Template:Infobox NPC/doc

The above documentation is transcluded from Template:Infobox NPC/doc. Edit