Template:RecipeLookup: Difference between revisions
Template:RecipeLookup
No edit summary |
(Tutorial+IndexOverview) |
||
Line 350: | Line 350: | ||
}} | }} | ||
</includeonly> | </includeonly> | ||
<noinclude>This template allows for easy editing of any crafting recipe across all the pages it is included on. | <noinclude>This template allows for easy editing of any crafting recipe across all the pages it is included on.<br> | ||
Usage | == Usage == | ||
# insert the following snippet into your article:<br> | |||
< | #;<code><nowiki>{| class="wikitable sortable" style="text-align:center;" </nowiki></code><br> | ||
#;<code><nowiki>|- </nowiki></code><br> | |||
#;<code><nowiki>! Output</nowiki></code><br> | |||
#;<code><nowiki>! class="unsortable" | Ingredients</nowiki></code><br> | |||
#;<code><nowiki>! class="unsortable" | Description</nowiki></code><br> | |||
#;<code><nowiki>{{RecipeLookup|x}}</nowiki></code><br> | |||
#;<code><nowiki>|}</nowiki></code><br> | |||
# replace the <code>x</code> with the index of the specefic recipe you want to display.<br> | |||
# if the index represents some recipe, it is displayed like this:<br> | |||
{| class="wikitable sortable" style="text-align:center;" | |||
|- | |||
! Output | |||
! class="unsortable" | Ingredients | |||
! class="unsortable" | Description | |||
{{RecipeLookup|1000}} | |||
|} | |||
(a false index will result in <code>N/A</code>)<br><br><br> | |||
== Howto add new recipes == | |||
#rewrite the following snippet: | |||
#;<code><nowiki>|INDEX</nowiki></code><br> | |||
#;<code><nowiki>|PRODUCTNAME=</nowiki></code><br> | |||
#;<code><nowiki>{{Recipe|NUMBER_OF_ITEMS_NEEDED</nowiki></code><br> | |||
#;<code><nowiki>|item1=[[NAME_ITEM1]] |q1=xQUANTITY |picitem1=File:FILENAME_ITEM1 |tag1=(INFO)</nowiki></code><br> | |||
#;<code><nowiki>|item2=[[NAME_ITEM2]] |q2=xQUANTITY |picitem2=File:FILENAME_ITEM2 |tag2=(INFO)</nowiki></code><br> | |||
#;<code><nowiki>|item3=[[NAME_ITEM3]] |q3=xQUANTITY |picitem3=File:FILENAME_ITEM3 |tag3=(INFO)</nowiki></code><br> | |||
#;<code><nowiki>|item4=[[NAME_ITEM4]] |q4=xQUANTITY |picitem4=File:FILENAME_ITEM4 |tag4=(INFO)</nowiki></code><br> | |||
#;<code><nowiki>|item5=[[NAME_ITEM5]] |q5=xQUANTITY |picitem5=File:FILENAME_ITEM5 |tag5=(INFO)</nowiki></code><br> | |||
#;<code><nowiki>|product=[[PRODUCTNAME]] |q6=xQUANTITY |picproduct=File:FILENAME_PRODUCT</nowiki></code><br> | |||
#;<code><nowiki>|description=DESCRIPTION}}</nowiki></code><br> | |||
#;<br><br><br> | |||
#; Please consider the index categories [Carpentry,Food,Weapons,Misc] before you choose your index (Thx ^^) | |||
#<nowiki>The result should look like this:</nowiki> | |||
#;<code><nowiki>|1000</nowiki></code><br> | |||
#;<code><nowiki>|Barricade (Item)=</nowiki></code><br> | |||
#;<code><nowiki>{{Recipe|3</nowiki></code><br> | |||
#;<code><nowiki>|item1=[[Hammer]] |q1=x1 |picitem1=File:Smallhammer.png</nowiki></code><br> | |||
#;<code><nowiki>|item2=[[Nails]] |q2=x2 |picitem2=File:Smallnails.png |tag2=(consumed)</nowiki></code><br> | |||
#;<code><nowiki>|item3=[[Wooden Plank]] |q3=x2 |picitem3=File:Smallplank.png |tag3=(consumed)</nowiki></code><br> | |||
#;<code><nowiki>|product=[[Barricade (Item)]] |q6=x1 |picproduct=File:Smallbarricade.png</nowiki></code><br> | |||
#;<code><nowiki>|description=A full tile barricade.}}</nowiki></code> | |||
#<br>The displayed recipe looks like this: | |||
{| class="wikitable sortable" style="text-align:center;" | |||
|- | |||
! Output | |||
! class="unsortable" | Ingredients | |||
! class="unsortable" | Description | |||
{{RecipeLookup|1000}} | |||
|} | |||
<br><br><br><br> | |||
== All recipes contained in this template == | |||
=== Carpentry (Index: 1000-1999) === | |||
{| class="wikitable sortable" style="text-align:center;" | {| class="wikitable sortable" style="text-align:center;" | ||
|- | |- | ||
Line 382: | Line 426: | ||
{{RecipeLookup|1012}}|1012 | {{RecipeLookup|1012}}|1012 | ||
|} | |} | ||
=== Food (Index: 2000-2999) === | |||
{| class="wikitable sortable" style="text-align:center;" | {| class="wikitable sortable" style="text-align:center;" | ||
|- | |- | ||
Line 413: | Line 457: | ||
{{RecipeLookup|2022}}|2022 | {{RecipeLookup|2022}}|2022 | ||
|} | |} | ||
=== Weapons (Index: 3000-3999) === | |||
{| class="wikitable sortable" style="text-align:center;" | {| class="wikitable sortable" style="text-align:center;" | ||
|- | |- | ||
Line 425: | Line 469: | ||
{{RecipeLookup|3003}}|3003 | {{RecipeLookup|3003}}|3003 | ||
|} | |} | ||
=== Misc (Index: 4000-4999) === | |||
{| class="wikitable sortable" style="text-align:center;" | {| class="wikitable sortable" style="text-align:center;" | ||
|- | |- |
Revision as of 00:10, 17 November 2013
This template allows for easy editing of any crafting recipe across all the pages it is included on.
Usage
- insert the following snippet into your article:
{| class="wikitable sortable" style="text-align:center;"
|-
! Output
! class="unsortable" | Ingredients
! class="unsortable" | Description
{{RecipeLookup|x}}
|}
- replace the
x
with the index of the specefic recipe you want to display. - 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
- 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 ^^)
- 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.}}
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 |
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 |
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 |