Template:NPCEntry: Difference between revisions
Remove inline category call - move to NPCPage (via update-page on MediaWiki MCP Server) |
Add category logic (NPCs, Merchants, Trainers) (via update-page on MediaWiki MCP Server) |
||
| Line 9: | Line 9: | ||
{{Documentation}} | {{Documentation}} | ||
[[Category:Data templates]] | [[Category:Data templates]] | ||
</noinclude><includeonly>{{#cargo_store:_table=NPCs|name={{{name|}}}|sprite={{{sprite|{{{name|}}}}}}|location={{{location|}}}|type={{{type|}}}|trainer={{{trainer|}}}}}</includeonly> | </noinclude><includeonly>{{#cargo_store:_table=NPCs|name={{{name|}}}|sprite={{{sprite|{{{name|}}}}}}|location={{{location|}}}|type={{{type|}}}|trainer={{{trainer|}}}}}[[Category:NPCs]]{{#ifexpr: {{#pos:{{{type|}}}|Merchant}} >= 0 |[[Category:Merchants]]}}{{#if:{{{trainer|}}}|[[Category:Trainers]]}}</includeonly> | ||
Revision as of 23:33, 31 January 2026
This template defines the table "NPCs". View table.
Documentation
The above documentation is transcluded from Template:NPCEntry/doc. Edit