Template:NPC map

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to: navigation, search
Template documentation
This documentation is transcluded from Template:NPC map/doc. [edit] [purge]
Template:NPC map invokes function npcmap in Module:Map using Lua.

Generates an area map for npc spawns, with a link to show the specific spawn points (if multiple are present).

Single

{{NPC map|npcname=Aemad|npcid=590|x=2613|y=3294|caption=Aemad's location}} The caption is optional, for all other available parameters see below.

Aemad's location

Multiple

Multiple spawns can be combined, npcid and npcname can be set for all, or each spawn individually. For all other available parameters see below. Pins should be represented as unnamed arguments in the format |param:value,param2:value...|

{{NPC map|npcname=Greater demon|npcid:4701,x:3286,y:3875|npcid:83,x:3286,y:3882|npcid:4698,x:3288,y:3888|npcid:4699,x:3289,y:3897|npcid:4700,x:3299,y:3886}}

Parameters

Template

  • mapID - Map id (see RuneScape:Map/mapIDs for a list) defaults to 28 (surface)
  • plane - The map plane (0 is surface)
  • npcname - Name of the npc
  • npcid - Id of the npc
  • objectid - Object id of the npc (if represented as an object)
  • respawn - Respawn time for the item
  • version - The version name (anchor) for the version that spawns. (Should match the version in the infobox)
  • text - The text to show as a link instead of show exact spawns
  • caption - The text to show instead of # spawns before the link
  • align - The alignment, defaults to center
  • width - Width of the map (in px)
  • height - height of the map (in px)
  • zoom - override default zoom
  • x - X-coordinate for the center of the map
  • y - Y-coordinate for the center of the map
  • group - Spawn group
  • nopreprocess - Any value causes the template to output the html element and json instead of rendering the map/link

Per Pin

Will override the common params

  • plane - The map plane (0 is surface)
  • npcname - Name of the npc
  • npcid - Id of the npc
  • objectid - Object id of the npc (if represented as an object)
  • respawn - Respawn time for the item
  • version - The version name (anchor) for the version that spawns. (Should match the version in the infobox)
  • notes - Additional notes to add to the pin description