<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://sankoquest.wiki/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ARecipe%2Fdoc</id>
	<title>Module:Recipe/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://sankoquest.wiki/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ARecipe%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://sankoquest.wiki/w/index.php?title=Module:Recipe/doc&amp;action=history"/>
	<updated>2026-08-17T06:56:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://sankoquest.wiki/w/index.php?title=Module:Recipe/doc&amp;diff=656&amp;oldid=prev</id>
		<title>GrizzledAlchemistb40f9cb5: module documentation</title>
		<link rel="alternate" type="text/html" href="https://sankoquest.wiki/w/index.php?title=Module:Recipe/doc&amp;diff=656&amp;oldid=prev"/>
		<updated>2026-07-05T17:17:18Z</updated>

		<summary type="html">&lt;p&gt;module documentation&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This is the documentation page for [[Module:Recipe]].&lt;br /&gt;
&lt;br /&gt;
Renders the visual recipe box (&amp;lt;code&amp;gt;div.sanko-recipe&amp;lt;/code&amp;gt;) shown by [[Template:Recipe]]: a row of metadata pills, up to six input item slots, an arrow, and an output slot. Item slots are drawn by [[Module:InventorySlot]] (&amp;lt;code&amp;gt;require&amp;lt;/code&amp;gt;d, via &amp;lt;code&amp;gt;_slot&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This module is display-only. The Cargo storage for recipes (a &amp;lt;code&amp;gt;Recipes&amp;lt;/code&amp;gt; row, plus &amp;lt;code&amp;gt;RecipeIngredients&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;RecipeOutputs&amp;lt;/code&amp;gt; rows stored via [[Template:RecipeIngredient]] and [[Template:RecipeOutput]]) is handled by the wikitext of [[Template:Recipe]] itself, not here.&lt;br /&gt;
&lt;br /&gt;
== Functions ==&lt;br /&gt;
=== box ===&lt;br /&gt;
Called from [[Template:Recipe]] as &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Recipe|box}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; with no explicit arguments: each parameter is taken from &amp;lt;code&amp;gt;frame.args&amp;lt;/code&amp;gt; when present there, otherwise from the parent frame&amp;#039;s (i.e. the template call&amp;#039;s) arguments; a value that is missing or empty after that lookup falls back to the default. (A parameter set to an empty string in &amp;lt;code&amp;gt;frame.args&amp;lt;/code&amp;gt; does not fall through to the parent frame — the parent is only consulted when the key is absent.)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sanko-table&amp;quot;&lt;br /&gt;
! Parameter !! Meaning !! Default&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;recipe_kind&amp;lt;/code&amp;gt; || Pill text; also switches output rendering (see below). || &amp;lt;code&amp;gt;Crafting&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;station&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;skill&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;element&amp;lt;/code&amp;gt; || Rendered as pills when non-empty. || omitted&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;level_req&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;xp&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;base_max_hit&amp;lt;/code&amp;gt; || Rendered as &amp;quot;Level N&amp;quot;, &amp;quot;N XP&amp;quot;, &amp;quot;Max hit N&amp;quot; pills when non-empty. || omitted&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;input1&amp;lt;/code&amp;gt;…&amp;lt;code&amp;gt;input6&amp;lt;/code&amp;gt; || Input item names; each non-empty one becomes an inventory slot. || omitted&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;input1_qty&amp;lt;/code&amp;gt;…&amp;lt;code&amp;gt;input6_qty&amp;lt;/code&amp;gt; || Quantity for the matching input. || &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;output&amp;lt;/code&amp;gt; (fallback &amp;lt;code&amp;gt;output_item&amp;lt;/code&amp;gt;) || Output item name. || —&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;output_qty&amp;lt;/code&amp;gt; || Output quantity. || &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used by ==&lt;br /&gt;
* [[Template:Recipe]] — the invocation is the last piece of the template, after its &amp;lt;code&amp;gt;#cargo_store&amp;lt;/code&amp;gt; calls. Articles use the template, e.g. from [[Air Missile]]:&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Recipe&lt;br /&gt;
|recipe_id=spell_air_missile&lt;br /&gt;
|recipe_kind=Spell&lt;br /&gt;
|output=Air Missile&lt;br /&gt;
|output_qty=1&lt;br /&gt;
|station=Spellbook&lt;br /&gt;
|skill=Magic&lt;br /&gt;
|level_req=1&lt;br /&gt;
|xp=&lt;br /&gt;
|element=air&lt;br /&gt;
|base_max_hit=2&lt;br /&gt;
|source=SankoQuest game data&lt;br /&gt;
|verification_status=Needs gameplay verification&lt;br /&gt;
|input1=Air Shard&lt;br /&gt;
|input1_qty=1&lt;br /&gt;
|input2=Spirit Shard&lt;br /&gt;
|input2_qty=1&lt;br /&gt;
}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
(&amp;lt;code&amp;gt;source&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;verification_status&amp;lt;/code&amp;gt; are consumed by Template:Recipe&amp;#039;s Cargo rows, not by this module.)&lt;br /&gt;
&lt;br /&gt;
== Notes and sharp edges ==&lt;br /&gt;
* When &amp;lt;code&amp;gt;recipe_kind&amp;lt;/code&amp;gt; is exactly &amp;lt;code&amp;gt;Spell&amp;lt;/code&amp;gt; (case-sensitive), the output is rendered as text in &amp;lt;code&amp;gt;div.sanko-spell-output&amp;lt;/code&amp;gt; instead of an item slot, with a small &amp;lt;code&amp;gt;xN&amp;lt;/code&amp;gt; suffix when &amp;lt;code&amp;gt;output_qty&amp;lt;/code&amp;gt; is not &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt; — useful for outputs that are not inventory items.&lt;br /&gt;
* Only six input slots exist; &amp;lt;code&amp;gt;input7&amp;lt;/code&amp;gt; and beyond are ignored.&lt;br /&gt;
* The arrow (&amp;lt;code&amp;gt;→&amp;lt;/code&amp;gt;) and the output area render even when inputs or output are empty, so a bare invocation still produces a (mostly empty) box.&lt;br /&gt;
* Input/output item names must match keys in [[Module:Sprite/Item]] or their slots show the missing-sprite &amp;lt;code&amp;gt;?&amp;lt;/code&amp;gt; placeholder.&lt;/div&gt;</summary>
		<author><name>GrizzledAlchemistb40f9cb5</name></author>
	</entry>
</feed>