Template:Contains

From Guild Wars 2 Wiki
Jump to navigationJump to search

Skill.pngItem

Description[edit]

Identifies what item is received upon opening a container (page uses {{item infobox}} at the top). Sets a subobject with the Property:Contains item, Property:Has contained item quantity, and Property:Has contained item chance properties.

This template can be used together with {{Account unlocks header}} to provide an API check bar, that grey out already obtained items, format using {{Contains/account unlocks result format}}.

Usage[edit]

{{contains|<item name>}}

Parameters[edit]

1 (unnamed parameter)
Required. Name of the item.
2 (unnamed parameter)
Optional. Link text to display. Defaults to <Item name>. Do not use this to pluralize the name.
icon
Optional. Can be set to a file name to change the icon shown. If set to "no", no icon is shown.
qty
Optional. Item quantity. Defaults to 1. Stored as text, hence number ranges or full text are allowed. Not shown if equal to 1.
chance
Optional. Denotes the chance of obtaining the given item from the parent container. Options: Guaranteed, Choice, or Chance (defaults to Chance)
Note that the output is not directly displayed on the container page; instead it will add a suffix to the result displayed in {{Contained in}}.
notes
Optional. Can be used to add a note to the subobject, which will be displayed as an additional suffix when queried with {{contained in}}.
no subobject
If set to anything, prevents the template from setting the container subobject.

Examples[edit]

{{contains|Crushed Skull}}

{{contains|Green Wood Dowel|qty=2|chance=guaranteed}}

See also[edit]