Template:Maxprice

From Witcher Wiki
Jump to: navigation, search
Template-info.png Documentation

The template fetches the maximum price for an item. It is primarily used in the {{Infoboxitem3}} template, but can also be used directly, provided correct parameters are employed. It returns the price in integer value, without further formatting. See below for more details.

Parameters

Parameters in the template call are separated with |. All parameters are required for the template to work as intended.

No. Name Required? Description
#1 Type of service YesY The type of service. Options are:
  • sell
  • buy
#2 Base price YesY The item's base price (in Geralt's inventory). For example: 100.
#3 Tags YesY This is a field in the infobox code that isn't printed to screen, but is required by the template. It contains "tags" used by the game. When used on item pages, only use {{#var:tags}} as parameter value, to ensure correct info is passed. Though technically it is also possible to use entries such as mod_weapon, mod_valuable.

Example

* {{Maxprice|sell|100|mod_weapon}} {{crowns}}
* {{Maxprice|sell|100|mod_armor}} {{crowns}}
* {{Maxprice|sell|100|mod_armor, mod_legendary, mod_origin_nilfgaard}} {{crowns}}

Output

  • 41 crown(s)
  • 41 crown(s)
  • 91 crown(s)

Data source

The data material is taken from the economy_tagmodifiers.csv file. To access this file, it is required to uncook the game files first. The file contains a matrix of values, which represent different factors that affect the final price when Geralt sells or buys items from merchants in the game. This includes the type of item (for example armor, weapons or alchemy ingredients), the type of merchant (for example armorer or blacksmith) and the location of the merchant.

Formulas in the template uses values from the cells marked in green in the below image.

Data from the "economy_modifiers.csv" file

Please click for a larger version.

See also