Template:RecipeBox
Example 1
The RecipeBox can be as simple as:
{{RecipeBox |1A Mat = Bark |1A Result = Fibers }}
![]() | |
---|---|
| |
![]() |
Example 2
Or the RecipeBox may be as complex as 4 different recipes with up to 4 ingredients and 2 crafting stations each.
{{RecipeBox |1A Mat = Rock |1A Val = 5 |1B Mat = Log |1B Val = 5 |1A Result = Firepit |- |2A Mat = Berry |2A Station = Campfire |2B Station = Firepit |2A Result = Roast Berries |- |3A Mat = Stick |3B Mat = Cord |3C Mat = Flint |3C Val = 2 |3A Station = Workbench |3A Result = Flint Pickaxe |- |4A Mat = Rolled Dough |4B Mat = Tomato Puree |4A Station = Oven |4A Result = Pizza |4A Result Val = 4 }}
![]() | |
---|---|
| |
![]() | |
| |
![]() | |
| |
![]() | |
| |
![]() |
Usage
I, BlackMelt, have created a simple way to make crafting recipe tables with images and links. It is quicker for the end user to understand at a glance and more aesthetically pleasing than the original Template:Recipe. You can have up to four recipes per table. Each recipe can have up to four materials, two stations, and one result. If you ever need more than that, the template can be easily expanded.
Parameters
Lets take a look at the table parameters.
- Mat = Material
- Val = Value
- 1A = First Recipe
- 2A = Second Recipe
- 3A = Third Recipe
- 4A = Fourth Recipe
Any parameter that is not needed in the recipe can simply be omitted!
{{RecipeBox |1A Mat = First material in recipe. (You must capitalize ALL words. For example, "Raw Meat".) |1A Val = Amount of first material. (Must be numerical value. For example, "3". May omit if "1".) |1B Mat = Second material. |1B Val = Second material amount. |1C Mat = Third material. |1C Val = Third material amount. |1D Mat = Fourth material. |1D Val = Fourth material amount. |- |1A Station = Crafting station used. (Omit if no station is required.) |1B Station = Additional crafting station. (Omit if no additional required.) |- |1A Result = Name of resulting item. (Omit if same a page name.) |1A Result Val = Amount of resulting item. (Omitting defaults to "1".) |- |2A Mat = |2A Val = |2B Mat = |2B Val = |2C Mat = |2C Val = |2D Mat = |2D Val = |2A Station = |2B Station = |2A Result = |2A Result Val = |- |3A Mat = (All parameters as above apply for Recipe #3.) |3A Val = |3A Station = |3A Result = |- |4A Mat = (All parameters as above apply for Recipe #4.) |4A Val = |4A Station = |4A Result = }}
Common Errors
You MUST include spaces in item names and the first letters MUST be capitalized for links and images to display properly. The image name MUST be the same as the item name.
For example, the template takes "Raw Meat" and creates:
[[File:Raw Meat t.png]]
If you had entered "Raw meat" it would create:
[[File:Raw meat t.png]]
which looks like:
File:Raw meat t.png
Old RecipeBox Code
{| cellpadding="4" cellspacing="4" style="width:725px; margin: 1em 0 1em 0; color:#4b1f10; background-color:#FEE19A; border:solid #D68646 4px; color:#4b1f10; text-align:left;" |- ! style="background-color:#D68646; font-size:130%; width:48%;" colspan="2" | Materials ! style="font-size:130%;width:1%" | + ! style="background-color:#D68646; font-size:130%; width:25%;" | Crafting Station ! style="font-size:130%;width:1%" | = ! style="background-color:#4b1f10; color:#D68646; font-size:130%; width:25%; text-align:center;" | Result |- | [[File:{{{1A Mat|}}}.png|45px|link={{{1A Mat|}}}]] {{{1A Val|}}} [[{{{1A Mat|}}}]] | {{#if: {{{1B Mat|}}} | [[File:{{{1B Mat|}}}.png|45px|link={{{1B Mat|}}}]] {{{1B Val|}}} [[{{{1B Mat|}}}]] |}} | | {{#if: {{{1A Station|}}} | [[File:{{{1A Station|}}}.png|45px|link={{{1A Station|}}}]] [[{{{1A Station|}}}]] | None}} | | rowspan="2" style="text-align:center;" | {{#if: {{{1A Result|}}} | [[File:{{{1A Result|}}}.png|center|link={{{1A Result|}}}]] {{{1A Result Val|}}} [[{{{1A Result|}}}]] | [[File:{{BASEPAGENAME}}.png|center]] {{{1A Result Val|}}} [[{{BASEPAGENAME}}]] }} |- | {{#if: {{{1C Mat|}}} | [[File:{{{1C Mat|}}}.png|45px|link={{{1C Mat|}}}]] {{{1C Val|}}} [[{{{1C Mat|}}}]] |}} | {{#if: {{{1D Mat|}}} | [[File:{{{1D Mat|}}}.png|45px|link={{{1D Mat|}}}]] {{{1D Val|}}} [[{{{1D Mat|}}}]] |}} | | {{#if: {{{1B Station|}}} | [[File:{{{1B Station|}}}.png|45px|link={{{1B Station|}}}]] [[{{{1B Station|}}}]] |}} |- {{#if: {{{2A Mat|}}} | | class="hidden" }} | colspan="9" style="background-color:#D68646; height:1px;" | |- {{#if: {{{2A Mat|}}} | | class="hidden" }} | [[File:{{{2A Mat|}}}.png|45px|link={{{2A Mat|}}}]] {{{2A Val|}}} [[{{{2A Mat|}}}]] | {{#if: {{{2B Mat|}}} | [[File:{{{2B Mat|}}}.png|45px|link={{{2B Mat|}}}]] {{{2B Val|}}} [[{{{2B Mat|}}}]] |}} | | {{#if: {{{2A Station|}}} | [[File:{{{2A Station|}}}.png|45px|link={{{2A Station|}}}]] [[{{{2A Station|}}}]] | None}} | | rowspan="2" style="text-align:center;" | {{#if: {{{2A Result|}}} | [[File:{{{2A Result|}}}.png|center|link={{{2A Result|}}}]] {{{2A Result Val|}}} [[{{{2A Result|}}}]] | [[File:{{BASEPAGENAME}}.png|center]] {{{2A Result Val|}}} [[{{BASEPAGENAME}}]] }} |- {{#if: {{{2A Mat|}}} | | class="hidden" }} | {{#if: {{{2C Mat|}}} | [[File:{{{2C Mat|}}}.png|45px|link={{{2C Mat|}}}]] {{{2C Val|}}} [[{{{2C Mat|}}}]] |}} | {{#if: {{{2D Mat|}}} | [[File:{{{2D Mat|}}}.png|45px|link={{{2D Mat|}}}]] {{{2D Val|}}} [[{{{2D Mat|}}}]] |}} | |{{#if: {{{2B Station|}}} | [[File:{{{2B Station|}}}.png|45px|link={{{2B Station|}}}]] [[{{{2B Station|}}}]] |}} |- {{#if: {{{3A Mat|}}} | | class="hidden" }} | colspan="9" style="background-color:#D68646; height:1px;" | |- {{#if: {{{3A Mat|}}} | | class="hidden" }} | [[File:{{{3A Mat|}}}.png|45px|link={{{3A Mat|}}}]] {{{3A Val|}}} [[{{{3A Mat|}}}]] | {{#if: {{{3B Mat|}}} | [[File:{{{3B Mat|}}}.png|45px|link={{{3B Mat|}}}]] {{{3B Val|}}} [[{{{3B Mat|}}}]] |}} | | {{#if: {{{3A Station|}}} | [[File:{{{3A Station|}}}.png|45px|link={{{3A Station|}}}]] [[{{{3A Station|}}}]] | None}} | | rowspan="2" style="text-align:center;" | {{#if: {{{3A Result|}}} | [[File:{{{3A Result|}}}.png|center|link={{{3A Result|}}}]] {{{3A Result Val|}}} [[{{{3A Result|}}}]] | [[File:{{BASEPAGENAME}}.png|center]] {{{3A Result Val|}}} [[{{BASEPAGENAME}}]] }} |- {{#if: {{{3A Mat|}}} | | class="hidden" }} | {{#if: {{{3C Mat|}}} | [[File:{{{3C Mat|}}}.png|45px|link={{{3C Mat|}}}]] {{{3C Val|}}} [[{{{3C Mat|}}}]] |}} | {{#if: {{{3D Mat|}}} | [[File:{{{3D Mat|}}}.png|45px|link={{{3D Mat|}}}]] {{{3D Val|}}} [[{{{3D Mat|}}}]] |}} | | {{#if: {{{3B Station|}}} | [[File:{{{3B Station|}}}.png|45px|link={{{3B Station|}}}]] [[{{{3B Station|}}}]] |}} |- {{#if: {{{4A Mat|}}} | | class="hidden" }} | colspan="9" style="background-color:#D68646; height:1px;" | |- {{#if: {{{4A Mat|}}} | | class="hidden" }} | [[File:{{{4A Mat|}}}.png|45px|link={{{4A Mat|}}}]] {{{4A Val|}}} [[{{{4A Mat|}}}]] | {{#if: {{{4B Mat|}}} | [[File:{{{4B Mat|}}}.png|45px|link={{{4B Mat|}}}]] {{{4B Val|}}} [[{{{4B Mat|}}}]] |}} | | {{#if: {{{4A Station|}}} | [[File:{{{4A Station|}}}.png|45px|link={{{4A Station|}}}]] [[{{{4A Station|}}}]] | None}} | | rowspan="2" style="text-align:center;" | {{#if: {{{4A Result|}}} | [[File:{{{4A Result|}}}.png|center|link={{{4a Result|}}}]] {{{4A Result Val|}}} [[{{{4A Result|}}}]] | [[File:{{BASEPAGENAME}}.png|center]] {{{4A Result Val|}}} [[{{BASEPAGENAME}}]] }} |- {{#if: {{{4A Mat|}}} | | class="hidden" }} | {{#if: {{{4C Mat|}}} | [[File:{{{4C Mat|}}}.png|45px|link={{{4C Mat|}}}]] {{{4C Val|}}} [[{{{4C Mat|}}}]] |}} | {{#if: {{{4D Mat|}}} | [[File:{{{4D Mat|}}}.png|45px|link={{{4D Mat|}}}]] {{{4D Val|}}} [[{{{4D Mat|}}}]] |}} | | {{#if: {{{4B Station|}}} | [[File:{{{4B Station|}}}.png|45px|link={{{4B Station|}}}]] [[{{{4B Station|}}}]] |}} |}
The above documentation is transcluded from Template:RecipeBox/doc. (edit | history)