Template:Infobox Scenery/doc

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to navigation Jump to search
Information icon-grey.svg
This is a documentation subpage for Template:Infobox Scenery.
It contains usage information, categories, and other content that is not part of the original template page.
Template:Infobox Scenery invokes function main in Module:Infobox Scenery using Lua.

The standard infobox for scenery (objects).

For quick copy/paste

{{Infobox Scenery
|name = 
|image = 
|release = 
|update = 
|members = 
|quest = 
|location = 
|actions = 
|examine = 
|map = 
|id = 

Standard parameters

This template uses Module:Infobox, and as such the following standard parameters apply.


This template supports versioning. To make a versioned infobox, simply add version# parameters, starting at 1 and increasing until all required versioned are covered. The value of the version parameter is the name given to the version, which applies to the button/option to select the version, as well as to any SMW subobjects used.

For example, |version1=used|version2=broken.

Other parameters can (and at least some should) be versioned, and can be done by appending corresponding integers to the parameter name (e.g. |name1=Superior tetsu body|name2=Superior tetsu body (broken)).

If a version name is set to a value that results in an invalid name for a subobject, the subobject name will be modified and Category:Pages with an invalid subobject name will be added to the page.


This sets the Semantic MediaWiki subobject(s) that the infobox (or current infobox version) should set the parameters into. This is only required when the infobox version name is not the intended destination of semantic properties, or if an unversioned infobox needs to set properties into a specific subobject (e.g. when versioned and unversioned infoboxes (of different types, like Item and Bonuses) are used on the same page).

By default if the page has versions, properties are set into named subobjects, where the names are the version names; if the page does not have versions, the properties are set on to the page itself. Setting smwname overrides the default behaviour - the properties will be set to the specified subobjects and only the specified subobjects.

Multiple subobjects can be specified by separating the subobject names with the broken bar ¦ - the properties will be set in all of the subobjects specified.

smwname can be versioned to change where specific infobox versions set the properties.


If __dump__ is present with any value, rather than displaying the infobox as normal, a string version of the infobox object is dumped to the page. This is for debugging the infobox and should only be used by previewing the page; it should never be saved in a mainspace page. Setting this adds Category:Dumping infoboxes to the page.

Specifically, this applies when the infobox is converted to a string, which will always occur when the module finally returns, but may occur earlier in the code. The object is dumped using mw.dumpObject(box). Dumping will not prevent a script error occuring.



Name of the scenery. This should be the object's name in game exactly.


Alternative name of the scenery. Avoid duplicate and derivative alternates.


Image of the object.


Optional. Adds a dark background for the image if the value is "yes"


Release date of the scenery object. Should follow the format [[DD Month]] [[YYYY]]. ([[6 June]] [[2012]] etc).


Update page that the object was released with. Do not include brackets ([[ & ]]) or the Update: prefix.


Optional. Date the object was removed from game. Should follow the format [[DD Month]] [[YYYY]].


Optional. Update page that the object was removed with. Do not include brackets ([[ & ]]) or the Update: prefix.


Whether or not the scenery item is members only.


Optional. Quest requirement involved with the scenery. Defaults to No.


Location of the scenery


Right-click options that the object provides. Should be a comma separated list, bullet generation is handled internally. Specify None if its only option is Examine.


The thieving level required. Used for locked doors, thievable chests, thievable stalls etc.


The examine text of the scenery.


Deprecated: All maps should now use the map param.


An interactive map location for the scenery. Use {{Object map}} to create the map, for example:

|intmap = {{Object map
|objectname=Acadia tree

If the object is in many locations, and not on the same map (eg some on surface, some in a dungeon etc) use the map param and a #Locations section in the page prose.

Depreciated: A map of the scenery. Use no to hide the map, name to use Page title location.png or you can use text such as See [[#Location|location]] section below


Deprecated: All maps should now use the map param.


Optional. Defines the location restriction applied to an object. An object (or more accurately, a specific version of an object) is considered restricted if it only appears within the bounds of the definition and not before/after/elsewhere.

Can be one of the following possible values:

  • surface - default - parameter can be removed for this value
  • quest - objects that only appear in quests, not before/after
  • minigame - objects that only appear within minigames, not elsewhere
  • dungeoneering - objects that only appear within Daemonheim
  • removed - objects that have been removed from the game
  • limited - objects that are only available during Treasure Hunter or Squeal of Fortune - this is primarily to maintain parity with Template:Infobox Item and Template:Infobox Monster new


The objects internal game ID. This parameter must be a number, delimited by commas if there are multiple ID's for the object. Use no only when the subject of the infobox is a non-player character and it has no object variants. See the npcid parameter for more information.


If the subject of the infobox is actually a non-player character (yellow name when hovering, instead of cyan), inform the NPC's internal game ID. Use this infobox when the NPC acts like an object (such as floating essence). This parameter must be a number, delimited by commas if there are multiple ID's for the NPC.

Using switching values


Infobox Scenery can be used to support multiple values for each of parameters with JavaScript-run switching. Alternate versions must be named and defined with the respective "version#" parameter to appear; each version parameter should be unique and sufficiently descriptive. Infobox Scenery will only look up to the highest consecutive value, starting at 1.

Parameters can be assigned different values in different versions by adding an index after the name. For example, if we want the 2nd version to be called "Object 2", we would add "|name2 = Object 2". If left blank or undefined, alternate values will default to the original value (the one without an index defined).

If there are more than 5 versions, the buttons will turn into a dropdown.

Alternative versions are not visible or accessible when Javascript is disabled, or using the mobile skin.


If the same parameter is used in multiple versions (but not the default, e.g. a shared image), the parameter can be set to a reference to another version of the parameter using the format $versionNumber. For example, if the image of version 4 is the same as the image in version 2, we use |image4=$2. Utilising references is only suggested for the image parameter, as using them for a numerical parameters will often result in a parsing error in the module.


If you wish to link to a page and have an alternative infobox appear, you can use a hash value, as if you were linking to a section. The hash value is the version name, as defined by the relevant version# parameter. For example, to link to the variant of a monster with |version3=Level 64, you can use [[Example#Level 64]].