Predefinição:Mapa NPC/doc
Ir para navegação
Ir para pesquisar
Predefinição:Mapa NPC invoca a função npcmap em Módulo:Map/templates usando 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.
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}}
5 spawns show exact spawns
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 npcnpcid
- Id of the npcobjectid
- Object id of the npc (if represented as an object)respawn
- Respawn time for the itemversion
- 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 spawnscaption
- The text to show instead of # spawns before the linkalign
- The alignment, defaults to centerwidth
- Width of the map (in px)height
- height of the map (in px)zoom
- override default zoomx
- X-coordinate for the center of the mapy
- Y-coordinate for the center of the mapgroup
- Spawn grouptype
- Set tomaplink
to show a link to a map of pins, orpins
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 npcnpcid
- Id of the npcobjectid
- Object id of the npc (if represented as an object)respawn
- Respawn time for the itemversion
- 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