Template:LocLine

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

The LocLine templates are used to list a monster's locations. Three templates are used to form the locations table:

  • {{LocTableHead}} - Contains table headers for the top of the locations table
  • {{LocLine}} - Template for all of the individual location lines
  • {{LocTableBottom}} - Contains table footers for the bottom of the locations table

Usage

{{LocTableHead}}
{{LocLine
|name        = <!-- (Optional) Name of monster, defaults to article's title -->
|loc         = <!-- Location -->
|lvls        = <!-- Level(s) of the monster spawns at this location -->
|mem         = <!-- (Optional) "yes" if location is members-only, defaults to "no" -->
|mapID       = <!-- (Optional) The interactive map ID; see Template:Map for more info -->
|plane       = <!-- (Optional) The interactive map plane; see Template:Map for more info -->
|(coordN)      <!-- One or more coordinates given as unnamed parameters; see Template:Map for more info -->
}}
{{LocTableBottom}}

Unfilled location lines for quick copy-paste

{{LocTableHead}}
{{LocLine
|loc = 
|lvls = 
|mem = 
|mapID = 
|plane = 

}}
{{LocTableBottom}}

Parameter details

name

Optional. Name of the monster/NPC. Defaults to the title of the page on which the template is placed. Used as a title in the tooltips that appear when clicking on the pins of the interactive map.

loc

Text, typically an article link, used to name a given location row.

lvls

The level or levels (typically given as a comma-separated list of numbers and/or ranges) of the monster spawns at the given location.

mem

Optional. A "yes" or "no" value indicating whether or not the given location is members-only. Defaults to "no".

mapID

Optional. The interactive map ID. See {{Map}} for more info.

plane

Optional. The inteactive map plane. See {{Map}} for more info.

Unnamed parameters

One or more coordinates given as unnamed parameters. See {{Map}} for more info. Note that both the (x,y) form (e.g. |1234,4567) and the key-value pair form (e.g. |desc:A description for the pin,x:1234,y:4567) are accepted.

Note: When using the key-value pair form, passing an npcid value without specifying a pin description (via a desc value) will generate a pin description in the form of: NPC ID: 1234. This mirrors the behavior used by {{Monster map}} and {{NPC map}}.