Template:Notable NPCs renders the "Notable NPCs" wikitable on a map page by querying the npcs Cargo table for every NPC whose map or location field matches the current page. The template takes no parameters and stores nothing. It is intended to replace the hand-typed wikitable + {{NPC row}} pattern that earlier map pages used: instead of map-page authors keeping the list in sync by hand, the list is now driven entirely by each NPC's own {{Infobox NPC}} declaration. Creating a new NPC page that sets map=Ellinia automatically makes that NPC appear in Ellinia's Notable NPCs table on next render. Contents 1 Usage 2 Columns 3 Matching rule 4 Empty state 5 Cross-references Usage Place a single call on the map page, under an == Notable NPCs == heading: == Notable NPCs == {{Notable NPCs}} No parameters; the template reads {{ROOTPAGENAME}} internally so it works correctly on translated subpages (e.g. Ellinia/ko) too. Columns Image — small portrait, rendered by Module:Icon using the NPC's page name. Falls back to no image if no file with that stem is uploaded. Name — bold link to the NPC's page. When the NPC's map field is a sub-map of the current page (e.g. Grendel stands in Magic Library but his location is Ellinia), an italic "in " suffix is appended on a second line. Role — the NPC's role field (free-text classification like "Magician job instructor", "Cab driver"). Summary — the NPC's summary field (one-sentence description of what the NPC offers a passing player). Matching rule An NPC appears in the table when either of these holds: npcs.map = Notable NPCs — the NPC stands directly in this map npcs.location = Notable NPCs — the NPC stands in a sub-map but is logically part of this town/area This means a town page (e.g. Ellinia) shows both its overworld NPCs and NPCs nested in sub-maps within it (Magic Library, hair salons, instances). A sub-map page (e.g. Magic Library) shows only the NPCs that stand directly in that sub-map. Empty state When no NPCs match, the template renders an italic "No NPCs have been recorded for this map yet" line with a pointer to {{Infobox NPC}}. This is the signal to either populate NPCs or remove the section from the map page. Cross-references Template:Infobox NPC — declares the npcs row each NPC contributes. Template:Notable NPCs/row — the row helper invoked by this template's #cargo_query. Module:Icon — resolves NPC portraits by page-name lookup.
Template:Notable NPCs
From the MapleStory Classic Wiki, mirrored inside MPStorys
This article could not be fully rendered. Showing plain text from the mirror.View on MapleStory Classic Wiki