Template:NPC map/doc

From RuneScape Classic Wiki
Jump to: navigation, search
Information icon-grey.svg
This is a documentation subpage for Template:NPC map.
It contains usage information, categories, and other content that is not part of the original template page.
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}} Lua error in Module:Map at line 34: attempt to perform arithmetic on field 'x' (a nil value).

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; see Calculator:Coordinates
  • y - Y-coordinate for the center of the map; see Calculator:Coordinates
  • group - Spawn group
  • type - Set to maplink to show a link to a map of pins, or pins to show a pin map. (Instead of regular rectangle area map)
  • 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