Module:Infobox Recipe/doc: Difference between revisions

show function of stopping recipe tree at buyable items
(add in the duration and kp parameters)
(show function of stopping recipe tree at buyable items)
Line 103:
| <code>showFull</code>
| ''boolean''
| Flag to display all steps of a recipe or only the step specified in the params. Will show all steps back to buyable materials.
| No
|-
Line 133:
|exp = 63
|kp = 1.5%
|duration = 28
|rawmat1 = 10% Preparation Healing
|rawmat2 = Bottle
Line 142 ⟶ 143:
This is an example that uses values from the 10% Potion Healing recipe. Notice that the parameters that have been passed to this example do not include 'Brown Kelp'
This is displayed because the <code>showFull</code> parameter has been set to <code>true</code>. This causes the Infobox Module to query smw data for each of the provided
raw materials to check if they have raw materials of their own. If they do, but cannot be bought from a shop, they are brought in to the recipe.
<pre>
{{Infobox Recipe
Line 155 ⟶ 156:
|output1 = 10% Potion Healing
|output1qty = 1
|showFull = true
}}
 
</pre>
{{Infobox Recipe
Line 169 ⟶ 170:
|output1 = 10% Potion Healing
|output1qty = 1
}}
 
===Show Full Recipe with buyable items===
This is an example that uses values from the Hammerfist (Basic). As before, the parameters passed to this example are only the materials used in the final step, and the <code>showFull</code> parameter caused the full recipe tree to be displayed. The 'Coarse Hickory Pole' can be bought, so even though it can be crafted from Coarse Hickory Logs, it was not replaced with its own recipe tree. This allows <code>showFull</code> to be used for recipes that would otherwise span multiple professions, since in this example only the Stonemason steps are shown.
<pre>
{{Infobox Recipe
|facility = One Handed Melee Workbench (stonemason)
|profession = Stonemason
|level = 0
|exp = 250
|kp = 3
|rawmat1 = Coarse Flint (Etched)
|rawmat1qty = 2
|rawmat2 = Coarse Hickory Pole
|output1 = Hammerfist (Basic)
|showFull = true
}}
 
</pre>
{{Infobox Recipe
|facility = One Handed Melee Workbench (stonemason)
|profession = Stonemason
|level = 0
|exp = 250
|kp = 3
|rawmat1 = Coarse Flint (Etched)
|rawmat1qty = 2
|rawmat2 = Coarse Hickory Pole
|output1 = Hammerfist (Basic)
|showFull = true
}}
 
 
==Blank infobox==
13,097

edits