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..."
 
 
Line 2: Line 2:


== Functions ==
== 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_recipes</code> will return all crafting recipes that involve the item with the current page title.
Eg.<code>#invoke:Recipes|get_item_recipes|id=Plainwood Log</code> will return all crafting recipes that involve a Plainwood Log.

Latest revision as of 16:37, 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

[edit source]