Jump to content

Template:NPCEntry: Difference between revisions

From Apogea Wiki
Dane (talk | contribs)
Add default_form:NPC, fix category logic using #ifeq (via update-page on MediaWiki MCP Server)
Dane (talk | contribs)
Fix category logic with #ifexpr and default -1 for #pos (via update-page on MediaWiki MCP Server)
Line 15: Line 15:
|type={{{type|}}}
|type={{{type|}}}
|trainer={{{trainer|}}}
|trainer={{{trainer|}}}
}}{{#ifeq:{{NAMESPACE}}||[[Category:NPCs]]{{#ifeq:{{#pos:{{{type|}}}|Merchant}}|||[[Category:Merchants]]}}{{#ifeq:{{#pos:{{{type|}}}|Quest Giver}}|||[[Category:Quest Givers]]}}{{#if:{{{trainer|}}}|[[Category:Trainers]]}}}}</includeonly>
}}{{#ifeq:{{NAMESPACE}}||[[Category:NPCs]]{{#ifexpr:{{#pos:{{{type|}}}|Merchant|-1}}>=0|[[Category:Merchants]]}}{{#ifexpr:{{#pos:{{{type|}}}|Quest Giver|-1}}>=0|[[Category:Quest Givers]]}}{{#if:{{{trainer|}}}|[[Category:Trainers]]}}}}</includeonly>

Revision as of 18:32, 30 January 2026

This template defines the table "NPCs". View table.

Documentation

Template:NPCEntry/doc

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