Module:Infobox Recipe/doc: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(add in the duration and kp parameters) |
(show function of stopping recipe tree at buyable items) |
||
Line 103: | Line 103: | ||
| <code>showFull</code> |
| <code>showFull</code> |
||
| ''boolean'' |
| ''boolean'' |
||
| Flag to display all steps of a recipe or only the step specified in the params |
| 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 |
| No |
||
|- |
|- |
||
Line 133: | Line 133: | ||
|exp = 63 |
|exp = 63 |
||
|kp = 1.5% |
|kp = 1.5% |
||
|duration = 28 |
|||
|rawmat1 = 10% Preparation Healing |
|rawmat1 = 10% Preparation Healing |
||
|rawmat2 = Bottle |
|rawmat2 = Bottle |
||
Line 142: | Line 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 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 |
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, they are brought in to the recipe. |
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> |
<pre> |
||
{{Infobox Recipe |
{{Infobox Recipe |
||
Line 155: | Line 156: | ||
|output1 = 10% Potion Healing |
|output1 = 10% Potion Healing |
||
|output1qty = 1 |
|output1qty = 1 |
||
⚫ | |||
}} |
}} |
||
</pre> |
</pre> |
||
{{Infobox Recipe |
{{Infobox Recipe |
||
Line 169: | Line 170: | ||
|output1 = 10% Potion Healing |
|output1 = 10% Potion Healing |
||
|output1qty = 1 |
|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 |
|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) |
|||
⚫ | |||
}} |
|||
==Blank infobox== |
==Blank infobox== |