Template:Object map

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

Generates a map for object (scenery) locations, where each location point is marked.

Single

{{Object map|objectname=Photo booth|objectid=46396|x=2928|y=3323|caption=Location of the [[photo booth]]}} The caption is optional, for all other available parameters see below.

Location of the photo booth

Multiple

Multiple object locations can be combined, objectid and objectname can be set for all, or each location individually. For all other available parameters see below. Pins should be represented as unnamed arguments in the format |param:value,param2:value...|

{{Object map
|objectname=Acadia tree
|objectid:109007,x:3180,y:2753
|objectid:109007,x:3192,y:2753
|objectid:109007,x:3180,y:2747
|objectid:109007,x:3192,y:2747
|objectid:109001,x:3179,y:2736
|objectid:109001,x:3194,y:2736
|objectid:109001,x:3183,y:2722
|objectid:109001,x:3189,y:2722
|objectid:109001,x:3183,y:2716
|objectid:109001,x:3195,y:2716
|objectid:109001,x:3196,y:2708
|objectid:109001,x:3180,y:2704
}}

Parameters

Template

  • mapID - Map id (see RuneScape:Map/mapIDs for a list) defaults to 28 (surface)
  • plane - The map plane (0 is surface)
  • objectname - Name of the object
  • objectid - Id of the object
  • respawn - Respawn time for the object (if it respawns)
  • version - The version name (anchor) for the version of the object. (Should match the version in the infobox)
  • caption - Optional caption
  • 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
  • show - Allows showing groups in addition to the group set above, or if no group is set, show only the groups listed. A single group, or comma separated list of group names
  • type - Accepts maplink to create a link instead of the map
    • text - Alternate text for link
  • 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)
  • objectname - Name of the object
  • objectid - Id of the object
  • respawn - Respawn time for the object (if it respawns)
  • npcid - NPC id of the object (if represented as an NPC)
  • version - The version name (anchor) for the version of the object. (Should match the version in the infobox)
  • notes - Additional notes to add to the pin description

See also