Template:Recipe Usage/doc

From 7 Days to Die Wiki
Jump to: navigation, search
Template-info.png Documentation


Description[edit source]

This template is used for searching through fields used in the Template:Recipe and returning a table based on matching fields and values.

Syntax[edit source]

{{Recipe Usage
| matchfield = 
| matchvalue = 
| brief = 
}}

Parameters[edit source]

Parameter Legal Value Default Description
matchfield <String> linkname The field that matchvalue will be checked against. If both matchfield and matchvalue are blank all Recipes will be returned. Currently it can be implement, workstation, or linkname. If it is linkname then it will search all ten versions of linkname that could be in the recipe.
matchvalue <String> {{PAGENAME}} The value that matchfield as to equal or start with.
brief No If this field exists and has a value then a table consisting of only the Image, Name and Required Items is returned. If this field exists the next five fields are ignored. This is the same as setting all the disable fields below.
disableworkstation No If this field exists and has a value, then the workstation field will not be displayed.
disableimplement No If this field exists and has a value, then the implement field will not be displayed.
disabletime No If this field exists and has a value, then the time field will not be displayed.
disablebook No If this field exists and has a value, then the book field will not be displayed.
disableskill No If this field exists and has a value, then the skill field will not be displayed.
noheader No If this field exists and has a value, then the default header will not be displayed.
collapsible No If this field exists and has a value, then the table will be able to be collapsed.

Usage[edit source]

Example 1[edit source]

Display all recipes that must use a Beaker, briefly.

{{Recipe Usage
| matchfield = implement
| matchvalue = Beaker
| brief = y
}}


Recipes

The following recipes require a Beaker:

Item Required Materials
Antibiotics.png Antibiotics MoldyBread.png Moldy Bread *4, PotassiumNitratePowder.png Nitrate Powder *3, BottledWater.png Bottled Water *1


Example 2[edit source]

Display all recipes that must use a Cement Mixer, but don't show the workstation column.

{{Recipe Usage
| matchfield = workstation
| matchvalue = Cement Mixer
| disableworkstation = y
}}


Recipes

The following recipes require a Cement Mixer: (NOTE: Times are based on a level one skill and the material that an object is crafted from, which is only reliable for food at the moment, so is rather difficult to calculate, this table is auto-generated):

Item Required Materials Implement Time Book Skill
Asphalt.png Asphalt CrushedSand.png Crushed Sand *8, RockSmall.png Small Stone *17, OilShale.png Oil Shale *5 - 8.5 - -
ConcreteMix.png Concrete Mix CrushedSand.png Crushed Sand *1, RockSmall.png Small Stone *2, Cement.png Cement *1 - 1 - -
CrushedSand.png Crushed Sand RockSmall.png Small Stone *1 - 0.5 - -
Gravel.png Gravel RockSmall.png Small Stone *10, CrushedSand.png Crushed Sand *10 - 5 - -
Sand.png Sand CrushedSand.png Crushed Sand *12 - 0 - -
Stone.png Stone CrushedSand.png Crushed Sand *10, RockSmall.png Small Stone *18, Cement.png Cement *4 - 9 - -


Example 3[edit source]

Display all recipes that use a Old Wood block in there creation.

{{Recipe Usage
| matchfield = linkname
| matchvalue = Old Wood
| brief = 
}}


Recipes

The following recipes require a Old Wood: (NOTE: Times are based on a level one skill and the material that an object is crafted from, which is only reliable for food at the moment, so is rather difficult to calculate, this table is auto-generated):

Item Required Materials Workstation Implement Time Book Skill


This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.