Template:RegionalNPCs: Difference between revisions

From IdleOn MMO Wiki
mNo edit summary
mNo edit summary
Line 1: Line 1:
<!-- ### Carge Store ### -->
<includeonly>=={{{region|Region Name}}}==
<includeonly>
{{Npctable/head|{{{title}}}}}
{{#cargo_query:tables=NPCs
{{#cargo_query:tables=NPCs
|fields=_pageName=%PAGE%,MapLocation=location,QuestCount=noquest
|fields=_pageName=%PAGE%,MapLocation=location,QuestCount=noquest
|where=(MapLocation IN ({{{areas}}})) AND (NPCType IN ({{{npctypes|"NPC"}}}))
|where=MapLocation IN ({{{areas|"Blunder Hills"}}}) AND (NPCType IN ({{{npctypes|"NPC"}}}))
|format=template
|format=template
|template=Npc/row
|template=Npc/row
|named args=yes
|named args=yes
|intro={{Npctable/head|{{{region|Region/Section Title}}}}}
|outro={{!}}}
}}
}}
|}
</includeonly><noinclude>
</includeonly>
 
<!-- ### Usage -->
<!-- ### Usage -->
<noinclude>
<pre>
<pre>
Renders name, icon, location and amount of quests as taken from the "NPCs" Cargo table, filtered by certain parameters listed below.
Renders name, icon, location and amount of quests as taken from the "NPCs" Cargo table, filtered by certain parameters listed below.
Line 21: Line 18:
Usage:
Usage:
{{KumaTest
{{KumaTest
|title=example
|region=example  
|areas="example","example"
|areas="example","example"
|npctypes="example","example" ("NPC", if omitted)
|npctypes="example","example" (If ommited, defaults to just "NPC")
}}
}}
</pre>
</pre>
[[Category:Table templates]]
[[Category:Table templates]]
</noinclude>
</noinclude>

Revision as of 23:51, 17 May 2023

Renders name, icon, location and amount of quests as taken from the "NPCs" Cargo table, filtered by certain parameters listed below.

Note: Areas and NPC types have to be wrapped with quotation marks, due to their usage in a cargo query, where missing quoation marks would otherwise break said query

Usage:
{{KumaTest
|region=example 
|areas="example","example"
|npctypes="example","example" (If ommited, defaults to just "NPC")
}}