Template:RecipeLookup: Difference between revisions

From PZwiki
Template:RecipeLookup
m (added bar corner and element)
m (fix RecipeLookup/de -> RecipeLookup)
Line 418: Line 418:
! class="unsortable" | Ingredients<
! class="unsortable" | Ingredients<
! class="unsortable" | Description
! class="unsortable" | Description
{{RecipeLookup/de|x}}
{{RecipeLookup|x}}
|}
|}
</pre>
</pre>
Line 428: Line 428:
! class="unsortable" | Ingredients
! class="unsortable" | Ingredients
! class="unsortable" | Description
! class="unsortable" | Description
{{RecipeLookup/de|1000}}
{{RecipeLookup|1000}}
|}
|}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(a false index will result in <code>N/A</code>)<br><br><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(a false index will result in <code>N/A</code>)<br><br><br>
Line 460: Line 460:
! class="unsortable" | Ingredients
! class="unsortable" | Ingredients
! class="unsortable" | Description
! class="unsortable" | Description
{{RecipeLookup/de|1000}}
{{RecipeLookup|1000}}
|}
|}
<br><br><br><br>
<br><br><br><br>
Line 471: Line 471:
! class="unsortable" | Description
! class="unsortable" | Description
! class="unsortable" | Index
! class="unsortable" | Index
{{RecipeLookup/de|1000}}|1000
{{RecipeLookup|1000}}|1000
{{RecipeLookup/de|1001}}|1001
{{RecipeLookup|1001}}|1001
{{RecipeLookup/de|1002}}|1002
{{RecipeLookup|1002}}|1002
{{RecipeLookup/de|1003}}|1003
{{RecipeLookup|1003}}|1003
{{RecipeLookup/de|1004}}|1004
{{RecipeLookup|1004}}|1004
{{RecipeLookup/de|1005}}|1005
{{RecipeLookup|1005}}|1005
{{RecipeLookup/de|1006}}|1006
{{RecipeLookup|1006}}|1006
{{RecipeLookup/de|1007}}|1007
{{RecipeLookup|1007}}|1007
{{RecipeLookup/de|1008}}|1008
{{RecipeLookup|1008}}|1008
{{RecipeLookup/de|1009}}|1009
{{RecipeLookup|1009}}|1009
{{RecipeLookup/de|1010}}|1010
{{RecipeLookup|1010}}|1010
{{RecipeLookup/de|1011}}|1011
{{RecipeLookup|1011}}|1011
{{RecipeLookup/de|1012}}|1012
{{RecipeLookup|1012}}|1012
{{RecipeLookup/de|1013}}|1013
{{RecipeLookup|1013}}|1013
{{RecipeLookup/de|1014}}|1014
{{RecipeLookup|1014}}|1014
{{RecipeLookup/de|1015}}|1015
{{RecipeLookup|1015}}|1015
|}
|}
=== Food (Index: 2000-2999) ===
=== Food (Index: 2000-2999) ===
Line 495: Line 495:
! class="unsortable" | Description
! class="unsortable" | Description
! class="unsortable" | Index
! class="unsortable" | Index
{{RecipeLookup/de|2000}}|2000
{{RecipeLookup|2000}}|2000
{{RecipeLookup/de|2001}}|2001
{{RecipeLookup|2001}}|2001
{{RecipeLookup/de|2002}}|2002
{{RecipeLookup|2002}}|2002
{{RecipeLookup/de|2003}}|2003
{{RecipeLookup|2003}}|2003
{{RecipeLookup/de|2004}}|2004
{{RecipeLookup|2004}}|2004
{{RecipeLookup/de|2005}}|2005
{{RecipeLookup|2005}}|2005
{{RecipeLookup/de|2006}}|2006
{{RecipeLookup|2006}}|2006
{{RecipeLookup/de|2007}}|2007
{{RecipeLookup|2007}}|2007
{{RecipeLookup/de|2008}}|2008
{{RecipeLookup|2008}}|2008
{{RecipeLookup/de|2009}}|2009
{{RecipeLookup|2009}}|2009
{{RecipeLookup/de|2010}}|2010
{{RecipeLookup|2010}}|2010
{{RecipeLookup/de|2011}}|2011
{{RecipeLookup|2011}}|2011
{{RecipeLookup/de|2012}}|2012
{{RecipeLookup|2012}}|2012
{{RecipeLookup/de|2013}}|2013
{{RecipeLookup|2013}}|2013
{{RecipeLookup/de|2014}}|2014
{{RecipeLookup|2014}}|2014
{{RecipeLookup/de|2015}}|2015
{{RecipeLookup|2015}}|2015
{{RecipeLookup/de|2016}}|2016
{{RecipeLookup|2016}}|2016
{{RecipeLookup/de|2017}}|2017
{{RecipeLookup|2017}}|2017
{{RecipeLookup/de|2018}}|2018
{{RecipeLookup|2018}}|2018
{{RecipeLookup/de|2019}}|2019
{{RecipeLookup|2019}}|2019
{{RecipeLookup/de|2020}}|2020
{{RecipeLookup|2020}}|2020
{{RecipeLookup/de|2021}}|2021
{{RecipeLookup|2021}}|2021
{{RecipeLookup/de|2022}}|2022
{{RecipeLookup|2022}}|2022
{{RecipeLookup/de|2023}}|2023
{{RecipeLookup|2023}}|2023
{{RecipeLookup/de|2024}}|2024
{{RecipeLookup|2024}}|2024
{{RecipeLookup/de|2025}}|2025
{{RecipeLookup|2025}}|2025
|}
|}
=== Weapons (Index: 3000-3999) ===
=== Weapons (Index: 3000-3999) ===
Line 529: Line 529:
! class="unsortable" | Description
! class="unsortable" | Description
! class="unsortable" | Index
! class="unsortable" | Index
{{RecipeLookup/de|3000}}|3000
{{RecipeLookup|3000}}|3000
{{RecipeLookup/de|3001}}|3001
{{RecipeLookup|3001}}|3001
{{RecipeLookup/de|3002}}|3002
{{RecipeLookup|3002}}|3002
{{RecipeLookup/de|3003}}|3003
{{RecipeLookup|3003}}|3003
|}
|}
=== Misc (Index: 4000-4999) ===
=== Misc (Index: 4000-4999) ===
Line 541: Line 541:
! class="unsortable" | Description
! class="unsortable" | Description
! class="unsortable" | Index
! class="unsortable" | Index
{{RecipeLookup/de|4000}}|4000
{{RecipeLookup|4000}}|4000
{{RecipeLookup/de|4001}}|4001
{{RecipeLookup|4001}}|4001
{{RecipeLookup/de|4002}}|4002
{{RecipeLookup|4002}}|4002
{{RecipeLookup/de|4003}}|4003
{{RecipeLookup|4003}}|4003
{{RecipeLookup/de|4004}}|4004
{{RecipeLookup|4004}}|4004
{{RecipeLookup/de|4005}}|4005
{{RecipeLookup|4005}}|4005
|}
|}
</noinclude>
</noinclude>

Revision as of 01:57, 18 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