Template:RecipeLookup: Difference between revisions

From PZwiki
Template:RecipeLookup
m (fix RecipeLookup/de -> RecipeLookup)
(added 6 recipes (4006-4012))
Line 405: Line 405:
|product=[[Empty Bottle (Whiskey)]]                                  |q6=x1  |picproduct=File:Smallemptybottle.png
|product=[[Empty Bottle (Whiskey)]]                                  |q6=x1  |picproduct=File:Smallemptybottle.png
|description=Empty Bottle of Whiskey}}
|description=Empty Bottle of Whiskey}}
|4006
|Sturdy stick=
{{Recipe|2
|item1=[[Saw]]            |q1=x1 |picitem1=File:Saw.png
|item2=[[Wooden Plank]]  |q2=x1 |picitem2=File:smallplank.png    |tag2=(consumed)
|product=[[Sturdy stick]] |q6=x1 |picproduct=File:Sturdy stick.png
|description= Crafted from Wooden Planks using the Saw. Used to make Tent Kits and kindling.}}
|4007
|Knotted board=
{{Recipe|2
|item1=[[Screwdriver]]        |q1=x1  |picitem1=File:Screwdriver.png
|item2=[[Wooden Plank]]        |q2=x1  |picitem2=File:Smallplank.png    |tag2=(consumed)
|product=[[Knotted board]]    |q6=x1  |picproduct=File:Knotted_Board.png
|description=Description needed!}}
|4008
|Kindle=
{{Recipe|2
|item1=[[Knotted board]]      |q1=x1  |picitem1=File:Knotted_Board.png    |tag1=(consumed)
|item2=[[Sturdy stick]]        |q2=x1  |picitem2=File:Sturdy_stick.png    |tag2=(consumed)
|product=[[Kindle]]            |q6=x1  |picproduct=File:Kindling.png
|description=Description needed!}}
|4009
|Campfire kit=
{{Recipe|2
|item1=[[Wooden Plank]]        |q1=x3  |picitem1=File:Smallplank.png                                            |tag1=(consumed)
|item2=[[bandage]]<br>or<br>[[sheet]]<br>or<br>[[book]]<br>or<br>[[magazine]]<br>or<br>[[newspaper]]  |q2=x1  |picitem2=File:Rag.png    |tag2=(consumed)
|product=[[Campfire kit]]    |q6=x1  |picproduct=File:Campfire_kit.png
|description=Description needed!}}
|4010
|Campfire=
{{Recipe|1
|item1=[[Campfire kit]]        |q1=x1  |picitem1=File:Campfire_kit.png    |tag1=(consumed)
|product=[[Campfire]]    |q6=x1  |picproduct=File:Campfire.png
|description=Description needed!}}
|4011
|Tent kit=
{{Recipe|3
|item1=[[Tent peg]]            |q1=x4  |picitem1=File:Tent_peg.png      |tag1=(consumed)
|item2=[[sheet]]              |q2=x4  |picitem2=File:Sheet.png          |tag2=(consumed)
|item3=[[Sturdy stick]]        |q3=x2  |picitem3=File:Sturdy_stick.png  |tag3=(consumed)
|product=[[Tent kit]]          |q6=x1  |picproduct=File:Tent_kit.png
|description=Description needed!}}
|4012
|Tent=
{{Recipe|1
|item1=[[Tent kit]]  |q1=x1  |picitem1=File:Tent_kit.png    |tag1=(consumed)
|product=[[Tent]]    |q6=x1  |picproduct=File:Tent.png
|description=Description needed!}}


}}
}}
Line 547: Line 595:
{{RecipeLookup|4004}}|4004
{{RecipeLookup|4004}}|4004
{{RecipeLookup|4005}}|4005
{{RecipeLookup|4005}}|4005
{{RecipeLookup|4006}}|4006
{{RecipeLookup|4007}}|4007
{{RecipeLookup|4008}}|4008
{{RecipeLookup|4009}}|4009
{{RecipeLookup|4010}}|4010
{{RecipeLookup|4011}}|4011
{{RecipeLookup|4012}}|4012
|}
|}
</noinclude>
</noinclude>

Revision as of 10:42, 19 November 2013

This template allows for easy editing of any crafting recipe across all the pages it is included on.

Usage

1. insert the following snippet into your article:

{| class="wikitable sortable" style="text-align:center;" 
|- 
! Output
! class="unsortable" | Ingredients<
! class="unsortable" | Description
{{RecipeLookup|x}}
|}

2. replace the x with the index of the specefic recipe you want to display.
3. if the index represents some recipe, it is displayed like this:

Output Ingredients Description
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none


      (a false index will result in N/A)


Howto add new recipes

1. rewrite the following snippet:

|INDEX
|PRODUCTNAME=
{{Recipe|NUMBER_OF_ITEMS_NEEDED
|item1=[[NAME_ITEM1]]    |q1=xQUANTITY |picitem1=File:FILENAME_ITEM1    |tag1=(INFO)
|item2=[[NAME_ITEM2]]    |q2=xQUANTITY |picitem2=File:FILENAME_ITEM2    |tag2=(INFO)
|item3=[[NAME_ITEM3]]    |q3=xQUANTITY |picitem3=File:FILENAME_ITEM3    |tag3=(INFO)
|item4=[[NAME_ITEM4]]    |q4=xQUANTITY |picitem4=File:FILENAME_ITEM4    |tag4=(INFO)
|item5=[[NAME_ITEM5]]    |q5=xQUANTITY |picitem5=File:FILENAME_ITEM5    |tag5=(INFO)
|product=[[PRODUCTNAME]] |q6=xQUANTITY |picproduct=File:FILENAME_PRODUCT
|description=DESCRIPTION}}



Please consider the index categories [Carpentry,Food,Weapons,Misc] before you choose your index (Thx ^^)

2. The result should look like this:

|1000
|Barricade (Item)=
{{Recipe|3
|item1=[[Hammer]]              |q1=x1  |picitem1=File:Smallhammer.png
|item2=[[Nails]]               |q2=x2  |picitem2=File:Smallnails.png     |tag2=(consumed)
|item3=[[Wooden Plank]]        |q3=x2  |picitem3=File:Smallplank.png     |tag3=(consumed)
|product=[[Barricade (Item)]]  |q6=x1  |picproduct=File:Smallbarricade.png
|description=A full tile barricade.}}


3. The displayed recipe looks like this:

Output Ingredients Description
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none






All recipes contained in this template

Carpentry (Index: 1000-1999)

Output Ingredients Description Index
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 1000
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 1001
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 1002
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 1003
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 1004
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 1005
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 1006
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 1007
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 1008
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 1009
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 1010
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 1011
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 1012
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 1013
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 1014
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 1015

Food (Index: 2000-2999)

Output Ingredients Description Index
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 2000
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 2001
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 2002
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 2003
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 2004
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 2005
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 2006
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 2007
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 2008
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 2009
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 2010
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 2011
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 2012
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 2013
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 2014
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 2015
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 2016
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 2017
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 2018
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 2019
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 2020
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 2021
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 2022
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 2023
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 2024
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 2025

Weapons (Index: 3000-3999)

Output Ingredients Description Index
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 3000
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 3001
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 3002
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 3003

Misc (Index: 4000-4999)

Output Ingredients Description Index
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 4000
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 4001
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 4002
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 4003
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 4004
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 4005
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 4006
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 4007
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 4008
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 4009
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 4010
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 4011
[[File:{{{product_image}}}|64x64px|class=pixelart link=[[{{{product_name}}}]]]]
[[{{{product_name}}}]]
none none none none 4012