Module:Recipes/doc: Difference between revisions
From Guinea Isles Wiki
Created page with "'''Module:Recipes''' is a module designed around managing the data of in-game recipes of all kinds. It allows users to query Module:Recipes/data.json, which contains this information in JSON format. == Functions == === get_item_recipes=== <code>get_item_recipes(frame)</code> Returns the corresponding entry in data.json. <code>id</code> can be provided to search for a specific entry, otherwise the current page_id will be used. Eg.<code>#invoke:Recipes|get_item_reci..." |
(No difference)
|
Revision as of 15:52, 20 September 2025
Module:Recipes is a module designed around managing the data of in-game recipes of all kinds. It allows users to query Module:Recipes/data.json, which contains this information in JSON format.
Functions
get_item_recipes
get_item_recipes(frame) Returns the corresponding entry in data.json. id can be provided to search for a specific entry, otherwise the current page_id will be used.
Eg.#invoke:Recipes|get_item_recipes will return all crafting recipes that involve the item with the current page title.
Eg.#invoke:Recipes|get_item_recipes|id=Plainwood Log will return all crafting recipes that involve a Plainwood Log.