Help:Boilerplate food

From PZwiki
Revision as of 22:23, 22 February 2017 by MalonyJenkins (talk | contribs) (Added recipe ingredients linkage to template)


   Page Updated @ Version: 36.40   
This boilerplate is used for giving a new page a standard look. Copy the code below and add it to your new page before adding the relevant content. This boilerplate is currently in an early format and we are likely to add and change sections as time goes on. If you wish to suggest improvements to this boilerplate please use the Help_talk:Boilerplate consumables perishable food discussion page.
The current code and result of the code are shown below. Anything starting with !< -- and ends with --> is removable and will not affect the template.



__NOTOC__
<!--Comment: This section is for the language and the format of the page. The languages section is used for linking pages. So a example might be {{languages|Nails}} in which every page is connected with a /## on the end will link to that specific page. Eg: Nails/es Nails/fr even if there contain redirects. The header format can be seen in the header template with working explanation. The header connects categories and Version no. PLEASE ENTER THE VERSION AND INCREMENT No. WHEN YOU MAKE A PAGE. It helps everyone else know how old the page is versionwise. Boilerplate is specific that the food is perishable.  -->
{{languages}}
{{header|The Game World|Items|Consumables|Perishable Food|type=food|version=Version 36|incver=40}}
<!--Comment: This section is for the consumables infobox which will be positioned on the right of the page. Image.png is the default question mark image-->
{{Consumables
|image = Image.png
|hunger = 1
|weight = 1.0
}}
<!--Comment: Description of Item and General Information-->
A description of the item. Include [[Nails|links]] (example link is to Nails article) to other pages within the wiki where appropriate. Also try to mention how many uses it has and also where it was found. Also try to mention how long the food will last before becoming stale, then how long till it rots completely and becomes unusable without high cooking skill (if appropriate).

== Nutritional Information ==
<!--Comment: This section explains how the food values alter over time, ranging from fresh uncooked, to burnt, to rotten, fill in details as appropriate. Example used is Chicken -->
{| border=0 align=left
|
{{Consumables2
|image = Chicken.png
|hunger = -35
|perishable = 1
|cookable = 1
|dangerous uncooked = 1
|boredom = 0
|unhappiness = 0
|unrotten hunger = -26
|unrotten unhappiness = +10
|unrotten boredom = +10
|rotten hunger = -15
|rotten unhappiness = +20
|rotten boredom = +20
|cooked hunger = -45
|cooked unhappiness = 0
|cooked boredom = 0
|unrottencooked hunger = -26
|unrottencooked unhappiness = +10
|unrottencooked boredom = +10
|rottencooked hunger = -15
|rottencooked unhappiness = +20
|rottencooked boredom = +20
|burned hunger = -11
|burned boredom = +20
|burned unhappiness = +20
|burned image = Chicken Overdone.png
|rotten image = Chicken Rotten.png
|cooked image = Chicken Cooked.png
}}
|}
<!--Comment: <br>s below to format article due to nutritional table. Adjust accordingly by removing specific amounts -->
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<!--Comment: Nutritional Section to explain how the food affects the player on a nutritional level -->
'''It's Nutritional Values are as follows:'''<br>
Carbohydrates = 25.13 <br>
Proteins = 0.47 <br>
Lipids = 0.31 <br>
Calories = 95 <br><br>
== Crafting ==
<!--Comment: Code in crafting templates which displays what the item is used for, see RecipeLookup Template for full list, example shown below-->
The item can be used an [[Recipe Ingredients|cake ingredient]].
{| class="wikitable sortable" style="text-align:center;" 
|- 
! Name 
! class="unsortable" | Recipe 
! class="unsortable" | Description
{{RecipeLookup|2041}}
|}


== Evolved Recipes ==
<!--Comment: This section explains how much of the item can be used in cooking. (see the code for amounts).-->
{{EvolvedRecipesForItem
|soup=9|stew=9|pie=9|stirfry=9|salad=9|roastedvegetables=9|ricepot=9|ricepan=9|pastapot=9|pastapan=9|}}

== Trapping ==
<!--Comment: If the item can be used in trapping, include this section. Otherwise remove it. An example text is below-->
The item can be used in [[Trapping|traps]] to capture [[Dead_Rabbit|rabbits]], [[Dead_Rat|rats]] and [[Dead_Squirrel|squirrels]].

Refer to [[Trapping|trapping]] for further information.

== Code ==
<!--Comment: Current location of Code in directory for updating purposes. Example below shows how to lay it out. ''''' is for bold italic.-->
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
<!--Comment: Example code taken from file. Items.txt and Newitems.txt are usually the source of the information at this time for basic items. Nowiki is used to display the text only, example used is Broccoli.-->
 <nowiki>
	item Broccoli
		HungerChange		= -9,
		Weight			= 0.2,
		Type			= Food,
		DaysTotallyRotten	= 6,
		DisplayName		= Broccoli,
		Icon			= Broccoli,
		DaysFresh		= 4,
		EvolvedRecipe 		= Soup:9;Stew:9;Pie:9;Stir fry:9;Salad:9;Roasted Vegetables:9;RicePot:9;RicePan:9;PastaPot:9;PastaPan:9,
		FoodType    		= Vegetables,
        	Carbohydrates 		= 2.06,
        	Proteins 		= 0.87,
        	Lipids 			= 0.11,
        	Calories 		= 11,
</nowiki>

==See Also==
<!--Comment: Location of links to relevant guides eg: Weapons guide, construction etc-->
[[Recipe Ingredients|List of Recipe Ingredients]]
<!--Comment: Navbox placement here code example = {{Navbox/Consumables}}, (see all current navboxs via the template section)-->
{{Navbox/Consumables}}



This code would produce the following:



   Page Updated @ Version: 36.40   

A description of the item. Include links (example link is to Nails article) to other pages within the wiki where appropriate. Also try to mention how many uses it has and also where it was found. Also try to mention how long the food will last before becoming stale, then how long till it rots completely and becomes unusable without high cooking skill (if appropriate).

Nutritional Information

Template:Consumables2























It's Nutritional Values are as follows:
Carbohydrates = 25.13
Proteins = 0.47
Lipids = 0.31
Calories = 95

Crafting

The item can be used an cake ingredient.

Name Recipe Description













Evolved Recipes

Product Nutrition
Soup
Soup
9
Stew
Stew
9
Salad
Salad
9
Stir Fry
Stir Fry
9
Roasted Vegetables
Roasted Vegetables
9
Pie (savory)
Pie (savory)
9
Rice Pot/Saucepan
Rice Pot/Saucepan
9
Pasta Pot/Saucepan
Pasta Pot/Saucepan
9

Trapping

The item can be used in traps to capture rabbits, rats and squirrels.

Refer to trapping for further information.

Code

From items.txt (Project Zomboid directory/media/scripts/)

	item Broccoli
		HungerChange		= -9,
		Weight			= 0.2,
		Type			= Food,
		DaysTotallyRotten	= 6,
		DisplayName		= Broccoli,
		Icon			= Broccoli,
		DaysFresh		= 4,
		EvolvedRecipe 		= Soup:9;Stew:9;Pie:9;Stir fry:9;Salad:9;Roasted Vegetables:9;RicePot:9;RicePan:9;PastaPot:9;PastaPan:9,
		FoodType    		= Vegetables,
        	Carbohydrates 		= 2.06,
        	Proteins 		= 0.87,
        	Lipids 			= 0.11,
        	Calories 		= 11,

See Also

List of Recipe Ingredients Template:Navbox/Consumables