Help:Boilerplate food: Difference between revisions

From PZwiki
(Added recipe ingredients linkage to template)
m (Automated Formatting)
 
(28 intermediate revisions by 7 users not shown)
Line 1: Line 1:
__NOTOC__
{{Header|PZwiki|Help|Boilerplates}}
{{languages}}
{{Outdated}}
<div class="header" style="margin: 5px; align: right; background: #C3E4ED; padding: 13px; text-align: left; font-size: 100%; color:#000000; border: 1px solid #9AC0CD"> <!-- Code for Background Colour -->
''Last updated for version 41.78.16''
<div style="float: right;background: #C3E4ED;border: 1px solid #9AC0CD; margin: -30pt -10.5pt">   '''Page Updated @ Version: 36.40'''   </div><!-- Code for Version Tag at top -->
{| class="wikitable theme-red" width="100%"
<div style="float: left;background: #C3E4ED;border: 1px solid #9AC0CD; margin: -30pt -10.5pt">   '''Navigation''' - [[:Category:Main|Main Index]] -> [[:Category:Community|Community]] -> [[:Category:Templates|Templates]] -> [[:Category:Boilerplates|Boilerplates]] -> [[Help:Boilerplate_consumables_perishable_food|Boilerplate Consumables - Perishable Food]]   </div><!-- Code for Navigation Bar at top, special blank char's before '''Navigation''' to give space -->
 
{| class="wikitable" width="100%"
|-
|-
|<center><small> 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|Help_talk:Boilerplate consumables perishable food discussion page]].
|<center><small> 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 food|discussion page]].
<br>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.</small></center>
<br>The current code and result of the code are shown below. Anything between <nowiki><!--</nowiki> and <nowiki>--></nowiki> is a comment and can safely be discarded, and it will not affect the template.</small></center>
|}
|}
<br><br>
<nowiki><!--COMMENT: This section is for the language and the format of the page. The languages section is used for linking pages. The syntax for each page (regardless of language) will be: , linking every subpage with "/##" at the end, where "##" is the language code. E.g. "Nails/es" and "Nails/fr" even if there are redirects.-->
<pre>
<!--COMMENT: The header template goes below the language template, there should be NOTHING in between. The format can be seen in the header template with a working explanation. The header connects categories and Version number. PLEASE ENTER THE VERSION AND INCREMENT NUMBER WHEN YOU MAKE OR EDIT A PAGE. It helps everyone else know how old the page is version-wise.-->
__NOTOC__
{{Header|Project Zomboid|Items|Food|Fruit}}
<!--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. -->
{{Page version|41.78.16}}
{{languages}}
<!--COMMENT: Here is the infobox for the food. This is a quick lookup for the item's stats. For more information, see: https://pzwiki.net/wiki/Template:Infobox_item-->
{{header|The Game World|Items|Consumables|Perishable Food|type=food|version=Version 36|incver=40}}
{{Infobox item
<!--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-->
|name=?
|model=image.png
|icon=image.png{{!}}32px
|icon_name=?
<!--GENERAL-->
|category=?
|weight=?
|function=?
|packaged=?
|cant_be_frozen=?
|days_fresh=?
|days_rotten=?
<!--NUTRITION-->
|hunger_change=?
|thirst_change=?
|calories=?
|lipids=?
|proteins=?
|carbohydrates=?
<!--EFFECT-->
|unhappy_change=?
|boredom_change=?
|stress_change=?
|fatigue_change=?
|reduce_infection_power=?
|alcohol_power=?
|poison_power=?
<!--COOKING-->
|cook_minutes=?
|burn_minutes=?
|dangerous_uncooked=?
|bad_microwaved=?
|good_hot=?
|bad_cold=?
|spice=?
<!--TECHNICAL DETAILS-->
|item_id=?
}}
An introduction to the item. Include [[Nails|links]] (example link is to Nails article) to other pages within the wiki where appropriate.
 
<!--COMMENT: This is where the 'Table Of Contents' will go if it is needed.-->
__TOC__
 
==Usage==
What can the item be used for, also try to mention how many uses it has.
 
===Trapping===
{{Main|Trapping}}
If this item is used in trapping, include that here.
 
===Fishing===
{{Main|Fishing}}
If this item is used in fishing, include that here.
 
===Consumable properties===
<!--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.-->
{{Consumables
{{Consumables
|image = Image.png
|image=Chicken.png
|hunger = 1
|hunger=-35
|weight = 1.0
|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: 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 ==
==Crafting==
<!--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 -->
{{See|Crafting}}
{| border=0 align=left
 
|
===Obtaining===
{{Consumables2
The item is a precursor to making a [[cake]]
|image = Chicken.png
{{Crafting header|ing=7}}
|hunger = -35
{{Crafting cooking|108|ing=7}}
|perishable = 1
|}
|cookable = 1
 
|dangerous uncooked = 1
===What it makes===
|boredom = 0
{{Crafting header|ing=2}}
|unhappiness = 0
{{Crafting cooking|109|ing=2}}
|unrotten hunger = -26
|}
|unrotten unhappiness = +10
 
|unrotten boredom = +10
===Evolved recipes===
|rotten hunger = -15
<!--COMMENT: This section explains how much of the item can be used in cooking. (see the code for amounts).-->
|rotten unhappiness = +20
This item is an ingredient in the following evolved recipes.
|rotten boredom = +20
{{EvolvedRecipesForItem|soup=-9|stew=-9|salad=-9|stirfry=-9|roastedvegetables=-9|sandwich=-9|burger=-9|pie=-9|cake=-9|pastapot=-9|pastapan=-9|ricepot=-9|ricepan=-9|hotdrink=-9}}
|cooked hunger = -45
 
|cooked unhappiness = 0
==Distribution==
|cooked boredom = 0
<!--COMMENT: The locations this item can be found should be placed here. Precise values that can be put into tables can be found in the distribution.lua and vehicledistribution.lua files.-->
|unrottencooked hunger = -26
 
|unrottencooked unhappiness = +10
===Buildings===
|unrottencooked boredom = +10
{| class="wikitable theme-red" style="text-align:center;"
|rottencooked hunger = -15
|-
|rottencooked unhappiness = +20
!Building/Room
|rottencooked boredom = +20
!Container
|burned hunger = -11
!Rolls
|burned boredom = +20
!Chance
|burned unhappiness = +20
|-
|burned image = Chicken Overdone.png
|Fossoil
|rotten image = Chicken Rotten.png
|[[Containers#Counters|Counter]]
|cooked image = Chicken Cooked.png
|4
}}
|5
|-
|Grocery Store
|[[Containers#Counters|Counter]]
|4
|5
|-
|Storage Unit
|[[Containers|All]]
|3
|5
|-
|Zippee Store
|[[Containers#Counters|Counter]]
|1
|5
|}
|}
<!--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>
===Vehicles===
<!--Comment: Nutritional Section to explain how the food affects the player on a nutritional level -->
{| class="wikitable theme-red" style="text-align:center;"
'''It's Nutritional Values are as follows:'''<br>
|-
Carbohydrates = 25.13 <br>
!Profession
Proteins = 0.47 <br>
!Container
Lipids = 0.31 <br>
!Rolls
Calories = 95 <br><br>
!Chance
== Crafting ==
|-
<!--Comment: Code in crafting templates which displays what the item is used for, see RecipeLookup Template for full list, example shown below-->
|Golf
The item can be used an [[Recipe Ingredients|cake ingredient]].
|[[Trunk]]
{| class="wikitable sortable" style="text-align:center;"  
|2
|-  
|3
! Name
|-
! class="unsortable" | Recipe
|Police
! class="unsortable" | Description
|[[Trunk]]
{{RecipeLookup|2041}}
|4
|1
|-
|Taxi
|[[Trunk]]
|3
|2
|}
|}


===Farming===
If this item is obtained through farming, include details about that here.


== Evolved Recipes ==
===Trapping===
<!--Comment: This section explains how much of the item can be used in cooking. (see the code for amounts).-->
If this item is obtained through trapping, include details about that here.
{{EvolvedRecipesForItem
|soup=9|stew=9|pie=9|stirfry=9|salad=9|roastedvegetables=9|ricepot=9|ricepan=9|pastapot=9|pastapan=9|}}


== Trapping ==
===Foraging===
<!--Comment: If the item can be used in trapping, include this section. Otherwise remove it. An example text is below-->
If this item is obtained through foraging, include details about that here.
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.
===Fishing===
If this item is obtained through fishing, include details about that here.


== Code ==
==Code==
<!--Comment: Current location of Code in directory for updating purposes. Example below shows how to lay it out. ''''' is for bold italic.-->
<!--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/)'''''
'''''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.-->
<!--COMMENT: Add the retrieved template so both visitors and editors can tell how old the code is and whether or not it may need to be updated.-->
<nowiki><nowiki>
<!--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.-->
<pre>
item Broccoli
item Broccoli
HungerChange = -9,
{
Weight = 0.2,
DisplayName = Broccoli,
Type = Food,
DisplayCategory = Food,
DaysTotallyRotten = 6,
Type = Food,
DisplayName = Broccoli,
Weight = 0.2,
Icon = Broccoli,
Icon = Broccoli,
DaysFresh = 4,
EvolvedRecipe = Pizza:9;Omelette:9;Soup:9;Stew:9;Pie:9;Stir fry Griddle Pan:9;Stir fry:9;Salad:9;Roasted Vegetables:9;RicePot:9;RicePan:9;PastaPot:9;PastaPan:9,
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,
FoodType   = Vegetables,
DaysFresh = 4,
        Carbohydrates = 2.06,
DaysTotallyRotten = 6,
        Proteins = 0.87,
HungerChange = -9,
        Lipids = 0.11,
ThirstChange = -4,
        Calories = 11,
Calories = 11,
</nowiki></nowiki>
Carbohydrates = 2.06,
Lipids = 0.11,
Proteins = 0.87,
StaticModel = CylinderFood_Green,
WorldStaticModel = Broccoli_Ground,
}
</pre>
 
==See also==
<!--COMMENT: Location of links to relevant guides eg: Weapons guide, construction etc.-->
*[[Recipe Ingredients|List of Recipe Ingredients]]


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


<!--COMMENT: Additional categories not already added in the header go here. E.g. [[Category:Perishable food]] or [[Category:Non-perishable food]].-->


<span style="font-size:188%">'''This will produce the following:'''</span>


<!--COMMENT: This section is for the language and the format of the page. The languages section is used for linking pages. The syntax for each page (regardless of language) will be: , linking every subpage with "/##" at the end, where "##" is the language code. E.g. "Nails/es" and "Nails/fr" even if there are redirects.-->
<!--COMMENT: The header template goes below the language template, there should be NOTHING in between. The format can be seen in the header template with a working explanation. The header connects categories and Version number. PLEASE ENTER THE VERSION AND INCREMENT NUMBER WHEN YOU MAKE OR EDIT A PAGE. It helps everyone else know how old the page is version-wise.-->
{{Header|Project Zomboid|Items|Food|Fruit}}
{{Page version|41.78.16|hidecat=true}}
<!--COMMENT: Here is the infobox for the food. This is a quick lookup for the item's stats. For more information, see: https://pzwiki.net/wiki/Template:Infobox_item-->
{{Infobox item
|name=?
|model=image.png
|icon=image.png{{!}}32px
|icon_name=?
<!--GENERAL-->
|category=?
|weight=?
|function=?
|packaged=?
|cant_be_frozen=?
|days_fresh=?
|days_rotten=?
<!--NUTRITION-->
|hunger_change=?
|thirst_change=?
|calories=?
|lipids=?
|proteins=?
|carbohydrates=?
<!--EFFECT-->
|unhappy_change=?
|boredom_change=?
|stress_change=?
|fatigue_change=?
|reduce_infection_power=?
|alcohol_power=?
|poison_power=?
<!--COOKING-->
|cook_minutes=?
|burn_minutes=?
|dangerous_uncooked=?
|bad_microwaved=?
|good_hot=?
|bad_cold=?
|spice=?
<!--TECHNICAL DETAILS-->
|item_id=?
}}
An introduction to the item. Include [[Nails|links]] (example link is to Nails article) to other pages within the wiki where appropriate.


<span style="font-size:188%">'''This code would produce the following:'''</span>
<!--COMMENT: This is where the 'Table Of Contents' will go if it is needed.-->
__TOC__


==Usage==
What can the item be used for, also try to mention how many uses it has.


===Trapping===
{{Main|Trapping}}
If this item is used in trapping, include that here.


===Fishing===
{{Main|Fishing}}
If this item is used in fishing, include that here.


<!--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. If food, put type=food. If non-food remove type section of header. -->
===Consumable properties===
{{languages}}
<!--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.-->
<div class="header" style="margin: 5px; align: right; background: #CEF2E0; padding: 13px; text-align: left; font-size: 100%; color:#000000; border: 1px solid #A3BFB1"> <!-- Code for Background Colour -->
<div style="float: right;background: #C3E4ED;border: 1px solid #A3BFB1; margin: -30pt -10.5pt">   '''Page Updated @ Version: 36.40'''   </div><!-- Code for Version Tag at top -->
<div style="float: left;background: #C3E4ED;border: 1px solid #A3BFB1; margin: -30pt -10.5pt">   '''Navigation''' - [[:Category:Main|Main Index]] -> [[:Category:The Game World|The Game World]] -> [[:Category:Items|Items]] -> [[:Category:Consumables|Consumables]] -> [[:Category:Food|Food]] -> [[:Category:Perishable Food|Perishable Foods]] -> [[Help:Boilerplate_consumables_perishable_food|Boilerplate Consumables - Perishable Food]]   </div><!-- Code for Navigation Bar at top, special blank char's before '''Navigation''' to give space -->
<!--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
{{Consumables
|image = Image.png
|image=Chicken.png
|hunger = 1
|hunger=-35
|weight = 1.0
|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: 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 ==
==Crafting==
<!--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 -->
<!--COMMENT: Code in crafting templates which displays what the item is used for, see Template:Crafting see also for full list, example shown below.-->
{| border=0 align=left
 
|
===Obtaining===
{{Consumables2
The item is a precursor to making a [[cake]]
|image = Chicken.png
{{Crafting header|ing=7}}
|hunger = -35
{{Crafting cooking|108|ing=7}}
|perishable = 1
|}
|cookable = 1
 
|dangerous uncooked = 1
===What it makes===
|boredom = 0
{{Crafting header|ing=2}}
|unhappiness = 0
{{Crafting cooking|109|ing=2}}
|unrotten hunger = -26
|}
|unrotten unhappiness = +10
 
|unrotten boredom = +10
===Evolved recipes===
|rotten hunger = -15
<!--COMMENT: This section explains how much of the item can be used in cooking. (see the code for amounts).-->
|rotten unhappiness = +20
This item is an ingredient in the following evolved recipes.
|rotten boredom = +20
{{EvolvedRecipesForItem|soup=-9|stew=-9|salad=-9|stirfry=-9|roastedvegetables=-9|sandwich=-9|burger=-9|pie=-9|cake=-9|pastapot=-9|pastapan=-9|ricepot=-9|ricepan=-9|hotdrink=-9}}
|cooked hunger = -45
 
|cooked unhappiness = 0
==Distribution==
|cooked boredom = 0
<!--COMMENT: The locations this item can be found should be placed here. Precise values that can be put into tables can be found in the distribution.lua and vehicledistribution.lua files.-->
|unrottencooked hunger = -26
 
|unrottencooked unhappiness = +10
===Buildings===
|unrottencooked boredom = +10
{| class="wikitable theme-red" style="text-align:center;"
|rottencooked hunger = -15
|-
|rottencooked unhappiness = +20
!Building/Room
|rottencooked boredom = +20
!Container
|burned hunger = -11
!Rolls
|burned boredom = +20
!Chance
|burned unhappiness = +20
|-
|burned image = Chicken Overdone.png
|Fossoil
|rotten image = Chicken Rotten.png
|[[Containers#Counters|Counter]]
|cooked image = Chicken Cooked.png
|4
}}
|5
|-
|Grocery Store
|[[Containers#Counters|Counter]]
|4
|5
|-
|Storage Unit
|[[Containers|All]]
|3
|5
|-
|Zippee Store
|[[Containers#Counters|Counter]]
|1
|5
|}
|}
<!--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>
===Vehicles===
<!--Comment: Nutritional Section to explain how the food affects the player on a nutritional level -->
{| class="wikitable theme-red" style="text-align:center;"
'''It's Nutritional Values are as follows:'''<br>
|-
Carbohydrates = 25.13 <br>
!Profession
Proteins = 0.47 <br>
!Container
Lipids = 0.31 <br>
!Rolls
Calories = 95 <br><br>
!Chance
== Crafting ==
|-
<!--Comment: Code in crafting templates which displays what the item is used for, see RecipeLookup Template for full list, example shown below-->
|Golf
The item can be used an [[Recipe Ingredients|cake ingredient]].
|[[Trunk]]
{| class="wikitable sortable" style="text-align:center;"  
|2
|-  
|3
! Name
|-
! class="unsortable" | Recipe
|Police
! class="unsortable" | Description
|[[Trunk]]
{{RecipeLookup|2041}}
|4
|1
|-
|Taxi
|[[Trunk]]
|3
|2
|}
|}


===Farming===
If this item is obtained through farming, include details about that here.


== Evolved Recipes ==
===Trapping===
<!--Comment: This section explains how much of the item can be used in cooking. (see the code for amounts).-->
If this item is obtained through trapping, include details about that here.
{{EvolvedRecipesForItem
|soup=9|stew=9|pie=9|stirfry=9|salad=9|roastedvegetables=9|ricepot=9|ricepan=9|pastapot=9|pastapan=9|}}


== Trapping ==
===Foraging===
<!--Comment: If the item can be used in trapping, include this section. Otherwise remove it. An example text is below-->
If this item is obtained through foraging, include details about that here.
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.
===Fishing===
If this item is obtained through fishing, include details about that here.


== Code ==
==Code==
<!--Comment: Current location of Code in directory for updating purposes. Example below shows how to lay it out. ''''' is for bold italic.-->
<!--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/)'''''
'''''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.-->
<!--COMMENT: Add the retrieved template so both visitors and editors can tell how old the code is and whether or not it may need to be updated.-->
<nowiki>
{{Retrieved|version=41|incver=78.16}}
<!--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.-->
<pre>
item Broccoli
item Broccoli
HungerChange = -9,
{
Weight = 0.2,
DisplayName = Broccoli,
Type = Food,
DisplayCategory = Food,
DaysTotallyRotten = 6,
Type = Food,
DisplayName = Broccoli,
Weight = 0.2,
Icon = Broccoli,
Icon = Broccoli,
DaysFresh = 4,
EvolvedRecipe = Pizza:9;Omelette:9;Soup:9;Stew:9;Pie:9;Stir fry Griddle Pan:9;Stir fry:9;Salad:9;Roasted Vegetables:9;RicePot:9;RicePan:9;PastaPot:9;PastaPan:9,
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,
FoodType   = Vegetables,
DaysFresh = 4,
        Carbohydrates = 2.06,
DaysTotallyRotten = 6,
        Proteins = 0.87,
HungerChange = -9,
        Lipids = 0.11,
ThirstChange = -4,
        Calories = 11,
Calories = 11,
</nowiki>
Carbohydrates = 2.06,
Lipids = 0.11,
Proteins = 0.87,
StaticModel = CylinderFood_Green,
WorldStaticModel = Broccoli_Ground,
}
</pre>
 
==See also==
<!--COMMENT: Location of links to relevant guides eg: Weapons guide, construction etc.-->
*[[Recipe Ingredients|List of Recipe Ingredients]]
 
<!--COMMENT: Navbox placement goes here. Code example = {{Navbox food}}, (see all current navboxes via the template section).-->
{{Navbox food}}


==See Also==
<!--COMMENT: Additional categories not already added in the header go here. E.g. [[Category:Perishable food]] or [[Category:Non-perishable food]].-->
<!--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}}


[[Category:Boilerplates]]
[[Category:Boilerplates]]
[[Category:Community]]
[[Category:Templates]]
[[Category:Version 36]]

Latest revision as of 14:37, 14 April 2024

PZwikiHelpBoilerplatesBoilerplate food
AppleRotten.png
This page may be outdated.
Editors are encouraged to update this page with new information.

Last updated for version 41.78.16

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 discussion page.
The current code and result of the code are shown below. Anything between <!-- and --> is a comment and can safely be discarded, and it will not affect the template.
<!--COMMENT: This section is for the language and the format of the page. The languages section is used for linking pages. The syntax for each page (regardless of language) will be: , linking every subpage with "/##" at the end, where "##" is the language code. E.g. "Nails/es" and "Nails/fr" even if there are redirects.-->
<!--COMMENT: The header template goes below the language template, there should be NOTHING in between. The format can be seen in the header template with a working explanation. The header connects categories and Version number. PLEASE ENTER THE VERSION AND INCREMENT NUMBER WHEN YOU MAKE OR EDIT A PAGE. It helps everyone else know how old the page is version-wise.-->
{{Header|Project Zomboid|Items|Food|Fruit}}
{{Page version|41.78.16}}
<!--COMMENT: Here is the infobox for the food. This is a quick lookup for the item's stats. For more information, see: https://pzwiki.net/wiki/Template:Infobox_item-->
{{Infobox item
|name=?
|model=image.png
|icon=image.png{{!}}32px
|icon_name=?
<!--GENERAL-->
|category=?
|weight=?
|function=?
|packaged=?
|cant_be_frozen=?
|days_fresh=?
|days_rotten=?
<!--NUTRITION-->
|hunger_change=?
|thirst_change=?
|calories=?
|lipids=?
|proteins=?
|carbohydrates=?
<!--EFFECT-->
|unhappy_change=?
|boredom_change=?
|stress_change=?
|fatigue_change=?
|reduce_infection_power=?
|alcohol_power=?
|poison_power=?
<!--COOKING-->
|cook_minutes=?
|burn_minutes=?
|dangerous_uncooked=?
|bad_microwaved=?
|good_hot=?
|bad_cold=?
|spice=?
<!--TECHNICAL DETAILS-->
|item_id=?
}}
An introduction to the item. Include [[Nails|links]] (example link is to Nails article) to other pages within the wiki where appropriate.

<!--COMMENT: This is where the 'Table Of Contents' will go if it is needed.-->
__TOC__

==Usage==
What can the item be used for, also try to mention how many uses it has.

===Trapping===
{{Main|Trapping}}
If this item is used in trapping, include that here.

===Fishing===
{{Main|Fishing}}
If this item is used in fishing, include that here.

===Consumable properties===
<!--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.-->
{{Consumables
|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
}}

==Crafting==
{{See|Crafting}}

===Obtaining===
The item is a precursor to making a [[cake]]
{{Crafting header|ing=7}}
{{Crafting cooking|108|ing=7}}
|}

===What it makes===
{{Crafting header|ing=2}}
{{Crafting cooking|109|ing=2}}
|}

===Evolved recipes===
<!--COMMENT: This section explains how much of the item can be used in cooking. (see the code for amounts).-->
This item is an ingredient in the following evolved recipes.
{{EvolvedRecipesForItem|soup=-9|stew=-9|salad=-9|stirfry=-9|roastedvegetables=-9|sandwich=-9|burger=-9|pie=-9|cake=-9|pastapot=-9|pastapan=-9|ricepot=-9|ricepan=-9|hotdrink=-9}}

==Distribution==
<!--COMMENT: The locations this item can be found should be placed here. Precise values that can be put into tables can be found in the distribution.lua and vehicledistribution.lua files.-->

===Buildings===
{| class="wikitable theme-red" style="text-align:center;"
|-
!Building/Room
!Container
!Rolls
!Chance
|-
|Fossoil
|[[Containers#Counters|Counter]]
|4
|5
|-
|Grocery Store
|[[Containers#Counters|Counter]]
|4
|5
|-
|Storage Unit
|[[Containers|All]]
|3
|5
|-
|Zippee Store
|[[Containers#Counters|Counter]]
|1
|5
|}

===Vehicles===
{| class="wikitable theme-red" style="text-align:center;"
|-
!Profession
!Container
!Rolls
!Chance
|-
|Golf
|[[Trunk]]
|2
|3
|-
|Police
|[[Trunk]]
|4
|1
|-
|Taxi
|[[Trunk]]
|3
|2
|}

===Farming===
If this item is obtained through farming, include details about that here.

===Trapping===
If this item is obtained through trapping, include details about that here.

===Foraging===
If this item is obtained through foraging, include details about that here.

===Fishing===
If this item is obtained through fishing, include details about that here.

==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: Add the retrieved template so both visitors and editors can tell how old the code is and whether or not it may need to be updated.-->
<!--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.-->
<pre>
	item Broccoli
	{
		DisplayName = Broccoli,
		DisplayCategory = Food,
		Type = Food,
		Weight = 0.2,
		Icon = Broccoli,
		EvolvedRecipe = Pizza:9;Omelette:9;Soup:9;Stew:9;Pie:9;Stir fry Griddle Pan:9;Stir fry:9;Salad:9;Roasted Vegetables:9;RicePot:9;RicePan:9;PastaPot:9;PastaPan:9,
		FoodType = Vegetables,
		DaysFresh = 4,
		DaysTotallyRotten = 6,
		HungerChange = -9,
		ThirstChange = -4,
		Calories = 11,
		Carbohydrates = 2.06,
		Lipids = 0.11,
		Proteins = 0.87,
		StaticModel = CylinderFood_Green,
		WorldStaticModel = Broccoli_Ground,
	}
</pre>

==See also==
<!--COMMENT: Location of links to relevant guides eg: Weapons guide, construction etc.-->
*[[Recipe Ingredients|List of Recipe Ingredients]]

<!--COMMENT: Navbox placement goes here. Code example = {{Navbox food}}, (see all current navboxs via the template section).-->
{{Navbox food}}


This will produce the following:

Project ZomboidItemsFoodFruitBoilerplate food
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
?
Image.png
General
Category
?
Encumbrance
Moodle Icon HeavyLoad.png
?
Function
?
Properties
Packaged
?
Days fresh
? days
Days until rotten
? days
Nutrition
HungerMoodle Icon Hungry.png
?
ThirstMoodle Icon Thirsty.png
?
CaloriesCalories
?
CarbohydratesCarbohydrates
?
ProteinsProteins
?
FatFat
?
Effect
UnhappinessMoodle Icon Unhappy.png
?
BoredomMoodle Icon Bored.png
?
StressMoodle Icon Stressed.png
?
FatigueMoodle Icon Tired.png
?
Sterilize powerDisinfection
?
Antibiotic powerAntibiotics.png
?
PoisonPoison
?
Cooking
Time until cooked
? minutes
Time until burned
? minutes
Dangerous uncooked
?
Bad microwaved
?
Good hot
?
Bad cold
?
Spice
?
Technical
Item ID
?

An introduction to the item. Include links (example link is to Nails article) to other pages within the wiki where appropriate.

Usage

What can the item be used for, also try to mention how many uses it has.

Trapping

Main article: Trapping

If this item is used in trapping, include that here.

Fishing

Main article: Fishing

If this item is used in fishing, include that here.

Consumable properties

Fresh Stale Rotten
Uncooked

Chicken.png
Hunger: -35


Dangerous uncooked, may cause sickness.

Chicken.png
Hunger: -26
Boredom: +10
Unhappiness: +10
Dangerous uncooked, may cause sickness.

Chicken Rotten.png

Hunger: -15
Boredom: +20
Unhappiness: +20
Dangerous, will cause sickness.

Cooked

Chicken Cooked.png
Hunger: -45

Chicken Cooked.png
Hunger: -26
Boredom: +10
Unhappiness: +10

Chicken Cooked.png
Hunger: -15
Boredom: +20
Unhappiness: +20
Dangerous, will cause sickness.

Burned

Chicken Overdone.png
Hunger: -11
Boredom: +20
Unhappiness: +20
Dangerous, will cause sickness.

Crafting

Obtaining

The item is a precursor to making a cake

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3 Ingredient 4 Ingredient 5 Ingredient 6 Ingredient 7
CakeBatter.png
Cake Batter
2.5 Cooking none Chef
OR
Cook (trait)
OR
Good Cooking Magazine Vol. 1
Bowl.png
Bowl
(consumed)

(keep)

(1 unit)

(consumed)
Butter.png
Butter
(15 units)

(consumed)

(3 units)

(consumed)
One of:
Egg.png Egg
WildEggs.png Wild Eggs

(consumed)
Yeast.png
Yeast
(consumed)

What it makes

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2
Cake Preparation
Cake Preparation
0.75 Cooking none BakingPan.png
Baking Pan
(consumed)
CakeBatter.png
Cake Batter
(consumed)

Evolved recipes

This item is an ingredient in the following evolved recipes.

Product Nutrition
Soup
Soup
-9
Stew
Stew
-9
Salad
Salad
-9
Stir Fry
Stir Fry
-9
Roasted Vegetables
Roasted Vegetables
-9
Sandwich
Sandwich
-9
Burger
Burger
-9
Pie (savory)
Pie (savory)
-9
Cake
Cake
-9
Rice Pot/Saucepan
Rice Pot/Saucepan
-9
Pasta Pot/Saucepan
Pasta Pot/Saucepan
-9
Beverage
Beverage
-9

Distribution

Buildings

Building/Room Container Rolls Chance
Fossoil Counter 4 5
Grocery Store Counter 4 5
Storage Unit All 3 5
Zippee Store Counter 1 5

Vehicles

Profession Container Rolls Chance
Golf Trunk 2 3
Police Trunk 4 1
Taxi Trunk 3 2

Farming

If this item is obtained through farming, include details about that here.

Trapping

If this item is obtained through trapping, include details about that here.

Foraging

If this item is obtained through foraging, include details about that here.

Fishing

If this item is obtained through fishing, include details about that here.

Code

From items.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 41.78.16

	item Broccoli
	{
		DisplayName = Broccoli,
		DisplayCategory = Food,
		Type = Food,
		Weight = 0.2,
		Icon = Broccoli,
		EvolvedRecipe = Pizza:9;Omelette:9;Soup:9;Stew:9;Pie:9;Stir fry Griddle Pan:9;Stir fry:9;Salad:9;Roasted Vegetables:9;RicePot:9;RicePan:9;PastaPot:9;PastaPan:9,
		FoodType = Vegetables,
		DaysFresh = 4,
		DaysTotallyRotten = 6,
		HungerChange = -9,
		ThirstChange = -4,
		Calories = 11,
		Carbohydrates = 2.06,
		Lipids = 0.11,
		Proteins = 0.87,
		StaticModel = CylinderFood_Green,
		WorldStaticModel = Broccoli_Ground,
	}

See also