Template:RegionalNPCs: Difference between revisions
From IdleOn MMO Wiki
mNo edit summary |
Kiokurashi (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>=={{{region|Region Name}}}== | |||
<includeonly> | |||
{{ | |||
{{#cargo_query:tables=NPCs | {{#cargo_query:tables=NPCs | ||
|fields=_pageName=%PAGE%,MapLocation=location,QuestCount=noquest | |fields=_pageName=%PAGE%,MapLocation=location,QuestCount=noquest | ||
|where= | |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 --> | ||
<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 | ||
| | |region=example | ||
|areas="example","example" | |areas="example","example" | ||
|npctypes="example","example" ("NPC" | |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") }}