Path of Exile Wiki:How to edit item acquisition

In Path of Exile there are quite a few items dropping in various places, some are random and some are restricted to certain areas. As the number of items and areas where it drops increases the harder it is to maintain multiple pages with the same information. To minimize the number of pages to manually edit it's been decided to store drop restriction information on the item pages only. Other pages then have to query for that information from a database. This will reduce repetitive edits across the wiki and increase accuracy for less popular pages.

What's the mechanic?
is supposed to show various ways the item can be obtained, if the :
 * only drops in a specific area then add the  to
 * is obtained through other items such as prophecy rewards, divination card rewards or vendor recipes use  (do not use this for generic recipes)
 * drops from certain monsters use.
 * drops from another mechanic, use.
 * it will also add quest and vendor reward information based on the data in Module:Quest reward.

For items that follow regular drop mechanics, no changes to the item template are required.

See for more information about how the parameters are used.

When to edit the area id
Drop restrictions for the area id should only be used for cases the item can only specifically appear in a particular area.

This means if it is obtained from specific monsters found in specific areas, that information should go to  and not. Likewise, for items that just happen to have a high drop level requirement, this parameter should not be used.

At the time of writing only Divination cards and atlas base items have drop area restrictions.

Get the area id
Before being able to specify how an item is acquired (say from a map), you will need to make note of the place's.

It can be found on the wiki page for the area, in an infobox beside the  column. For example, for the id is.



You cannot add the item into the area, instead you add the area to the item.

Please note that area ids for War for the Atlas and newer map series are identical.

Edit the item page
To add or modify where an item is acquired, you must edit the infobox on that item's page (e.g. ).

First edit the page using  or   (make sure to switch it to   in the editor dropdown menu)



Edit the Item infobox data
Find the section starting with, and the first line that reads.

This is a comma separated list of area ids. Add the new area id you made note of above (say  for the Graveyard Map) to the list. Do not replace old areas, they're still relevant for old areas. The tables will filter them out instead in the future.



Save your changes
Save your changes, specifying where you got the information in the  box (e.g. Personal drop)

Thank you for contributing to the wiki!

Adding vendor recipes and upgrade paths
Vendor recipes and upgrade paths can be added as parameter to the template by using the   set of parameters. Those parameters must be edited on the page the vendor recipe or upgrade path produces, and not the ingredients. After the recipe has been correctly added, it will show up on all ingredient pages accordingly using the template.

For example, can be created by selling a normal, a rare , a  with at least 1% quality and an. It can however also be obtained via the divination card as random draw.

Sets
This means we'll have two sets to add to the upgraded_from_parameters. Naturally we start each set at 1 and increment by one for each:
 * upgraded_from_set1
 * upgraded_from_set2

The sets will appear in the order given here, so set1 will appear before set2 in the template. Generally we go from most-specific to least-specific here, meaning that we add the vendor recipe first (because it's specific to Hyrri's Bite) and the divination card last (because it can drop any unique item with just a tiny chance of one of those being a Hyrri's Bite),

Groups
Groups are used to for each particular ingredient in a recipe. The vendor recipe for hyrri's bite has 4 ingredients:


 * upgraded_from_set1_group1
 * upgraded_from_set1_group2
 * upgraded_from_set1_group3
 * upgraded_from_set1_group4
 * upgraded_from_set2

Now we need to tell the template which items we're looking for. There 3 ways to do this;
 * by item name using
 * by the page on the wiki using
 * by the metadata id using _metadata_id

Generally speaking the name works as long there is only one item with a name. If there isn't, we need to use page (for cases like Two-Stone Rings for example, which has 3 variants). In our case we don't have any pages with duplicates, so we can simply use the name:


 * upgraded_from_set1_group1_item_name = Sharktooth Arrow Quiver
 * upgraded_from_set1_group2_item_name = Onyx Amulet
 * upgraded_from_set1_group3_item_name = Rain of Arrows
 * upgraded_from_set1_group4_item_name = Orb of Chance
 * upgraded_from_set2

The template now knows which items are being used, but now how many of them. Now we just add the amount with the  parameter for each group:


 * upgraded_from_set1_group1_item_name = Sharktooth Arrow Quiver
 * upgraded_from_set1_group1_amount   = 1
 * upgraded_from_set1_group2_item_name = Onyx Amulet
 * upgraded_from_set1_group2_amount   = 1
 * upgraded_from_set1_group3_item_name = Rain of Arrows
 * upgraded_from_set1_group3_amount   = 1
 * upgraded_from_set1_group4_item_name = Orb of Chance
 * upgraded_from_set1_group4_amount   = 1
 * upgraded_from_set2

There are some special conditions for some of items we haven't covered yet. The conditions are just additional text that is displayed to the user for additional information about the recipe. Those are added with the  parameter. These arguments can also contain other templates, for example the colour template.

It's easier for people to recognize that we mean normal and rare items when we use the colour. Compare:
 * normal vs
 * rare vs

There is nothing noteworthy about the Orb of Chance so we just leave the parameter out.

With all that in mind, we can now add the notes:


 * upgraded_from_set1_group1_item_name = Sharktooth Arrow Quiver
 * upgraded_from_set1_group1_amount   = 1
 * upgraded_from_set1_group1_notes    =
 * upgraded_from_set1_group2_item_name = Onyx Amulet
 * upgraded_from_set1_group2_amount   = 1
 * upgraded_from_set1_group2_notes    =
 * upgraded_from_set1_group3_item_name = Rain of Arrows
 * upgraded_from_set1_group3_amount   = 1
 * upgraded_from_set1_group3_notes    = 1%+ quality
 * upgraded_from_set1_group4_item_name = Orb of Chance
 * upgraded_from_set1_group4_amount   = 1
 * upgraded_from_set2

We're done with the first set at this point. Next we add Jack in the Box, similar to above we fill out the parameters. This is set 2 and the groups naturally start at 1 again with Jack in the Box being the only item being added.


 * upgraded_from_set1_group1_item_name = Sharktooth Arrow Quiver
 * upgraded_from_set1_group1_amount   = 1
 * upgraded_from_set1_group1_notes    =
 * upgraded_from_set1_group2_item_name = Onyx Amulet
 * upgraded_from_set1_group2_amount   = 1
 * upgraded_from_set1_group2_notes    =
 * upgraded_from_set1_group3_item_name = Rain of Arrows
 * upgraded_from_set1_group3_amount   = 1
 * upgraded_from_set1_group3_notes    = 1%+ quality
 * upgraded_from_set1_group4_item_name = Orb of Chance
 * upgraded_from_set1_group4_amount   = 1
 * upgraded_from_set2_text            = random  item
 * upgraded_from_set2_group1_item_name = Jack in the Box
 * upgraded_from_set2_group1_amount   = 4

That's it! Now we just need to place that within the template on the page. See also

Common issues

 * When previewing pages, templates that queries data cannot display data that hasn't already been stored to the database. Make sure the page edit is correct and save the page anyway.
 * Sometimes pages that queries data doesn't update immediately. Null edit the page to force an immediate update.