Destiny 2 Wiki

We've Moved! Just as Gamepedia has joined forces with Fandom, this wiki had joined forces with our Fandom equivalent. The wiki has been archived and we ask that readers and editors move to the now combined wiki on Fandom. Click to go to the new wiki.

READ MORE

Destiny 2 Wiki
Advertisement

This template performs a number of functions:

  • It draws information about an item from a data page if it finds one for an item. It can also draw information directly from its parameters like a typical infobox.
  • It displays an infobox using that information by calling {{Item infobox}}. Note that the visual and layout code is in that template with the exception of the multiple data page warning.
  • It sets properties and categories, which are used to create automated lists such as the one used by {{Item table}}.

Finding the data page[]

The template finds a data page for an item in one of four ways:

{{Item}}

When the name, datapage, and testdatapage parameters are not given values, the infobox looks for a data page in Category:Imported item data where Property:Has name is the same as the name of the page the infobox is being used on.

{{Item
  |name=item name
}}

When the name parameter is given a value but datapage is not, the infobox looks for a data page in Category:Imported item data where Property:Has name has that value.

{{Item
  |datapage=data subpage name
}}

When datapage is given a value, the infobox looks for that page, but will return it only if the page is in Category:Imported item data. When using this, specify only the subpage name of the data page. For example, for "Data:Items/EXAMPLE", just specify "EXAMPLE".

Note that an item data page should be set up with {{Item data}} (once per item), {{Talent cell data}} (once per each talent cell), and {{Talent data}} (once per each talent), and the name parameter on that template sets the value of Property:Has name. If the name parameter doesn't get a value, Property:Has name is set to the subpage name.

{{Item
  |testdatapage=full data page name
}}

testdatapage works the same as datapage except that it requires the full name of the data page, including the namespace. This is useful for testing data pages set up in a user namespace.

Other values[]

Some information is not available from the imported data and must be supplied to the template separately, as shown below:

{{Item
  |devonly=yes or no
  |available=yes or no
}}

Setting ingame to no flags that an item is not available in the game, even though it is in the game data. Setting available to no indicates that the item is not available to players even if it is in the game, such as something only available to gamemasters or other staff.

This can be used with any of the other parameters.

When there is no data page[]

If an item doesn't have a data page for some reason, you can treat this as a normal infobox and supply the values yourself.

{{Item
  |name=name of the item
  |description=item's in-game description
  |type=the item's type
  |stats=
stat name;stat value
...one stat name and value per line
  |category=the in-game category of the item, as opposed to wiki categories
  |tier=the tier of the item
  |supercategory=the in-game supercategory of the item
  |icon=filename of the item icon
  |quality_level=quality level of the item
  |item_levels=a list of item levels separated by commas
}}

Note that if a data page for the item is imported later, the values of these parameters will be ignored.

Overriding data page values[]

If necessary, it is possible to override the values pulled from the data page. When data is simply outdated, it's probably better to just change it on the data page itself, as it would probably have been corrected in the next data import anyway. But if for some reason imports seem to be consistently bringing in incorrect data, you can override it by using the force parameters:

{{Item
  |force_name=name of the item
  |force_description=item's in-game description
  |force_type=the item's type
  |force_stats=
stat name;stat value
...one stat name and value per line
  |force_category=the in-game category of the item, as opposed to wiki categories
  |force_tier=the tier of the item
  |force_supercategory=the in-game supercategory of the item
  |force_icon=filename of the item icon
  |force_quality_level=quality level of the item
  |force_item_levels=a list of item levels separated by commas
}}


This template defines the table "Items". View table.

Advertisement