Template:Base ingredients lookup

From Guild Wars 2 Wiki
Jump to: navigation, search


Creates a list of base ingredients from a given recipe. The recipe can be specified by its recipe id, or more commonly, by the name of the item to be created. If an item is specified, the template will look up the recipe and use the first recipe it finds. A discipline can be used to favor using a specific profession when deciding which recipe to use for crafting ingredients. The template defines #var:base_ingredient_list to store the list of base ingredients. For example, the variable value is then passed to {{base ingredients table}}.

{{base ingredients lookup|<item>}}
{{base ingredients lookup|id=<id>}}
{{base ingredients lookup|<item>|<quantity>|discipline=<discipline>}}
{{base ingredients lookup|id=<id>|<quantity>|discipline=<discipline>}}
base_ingredient_list - The list is stored in in the form of ~<item>~<item>...<item> and should be processed using #arraymap with "~" as the delimiter.


Unnamed parameter 1
Required. The output item to generate a list of base ingredients for. The template will look up the recipe that outputs the item. If an item has multiple recipes, the first recipe is used. If discipline is specified, the recipe requiring the discipline is prioritized. If id is specified, the parameter is ignored.
Unnamed parameter 2
Optional. The quantity of the item to create.
The recipe id of the recipe to generate the list of base ingredients for.
Optional. The discipline (Property:Requires discipline) to prefer for crafting recipes.The template will look for item recipes for the specific profession. By default, the template will pick the first recipe found for the item.


{{base ingredients lookup|Potent Superior Sharpening Stone|1}}
{{base ingredients table
|item=Potent Superior Sharpening Stone
Quantity Material Buy price (each) Material cost
6 Pile of Crystalline Dust.png Pile of Crystalline Dust ... ...
4 Orichalcum Ore.png Orichalcum Ore ... ...
Total cost ...

  • #var:base_ingredient_list: ~Pile of Crystalline Dust~Orichalcum Ore
  • #var:processed_ingredient_list: ~Potent Superior Sharpening Stone~Orichalcum Ingot~Pile of Crystalline Dust~Superior Sharpening Stone~Orichalcum Ore
{{base ingredients lookup|Iron Ingot|1}}
{{base ingredients table
|item=Iron Ingot

Quantity Material Buy price (each) Material cost
3 Iron Ore.png Iron Ore ... ...
Total cost ...

  • #var:base_ingredient_list: ~Iron Ore
  • #var:processed_ingredient_list: ~Iron Ingot~Iron Ore