Help:Boilerplate literature: Difference between revisions

From PZwiki
(First update of consumables. May change due to many variants of consumable)
(Slight changes in update.)
Line 3: Line 3:
<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 -->
<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 -->
<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 -->
<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 -->
<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_items|Boilerplate Items]]   </div><!-- Code for Navigation Bar at top, special blank char's before '''Navigation''' to give space -->
<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|Boilerplate Consumables]]   </div><!-- Code for Navigation Bar at top, special blank char's before '''Navigation''' to give space -->


{| class="wikitable" width="100%"
{| class="wikitable" width="100%"
Line 14: Line 14:
<!--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. Category is specific if it is perishable or not, remove as appropriate.  -->
<!--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. Category is specific if it is perishable or not, remove as appropriate.  -->
{{languages}}
{{languages}}
{{header|The Game World|Items|consumables|Perishable Food/Non-Perishable Food|type=food|version=Version 36|incver=40}}
{{header|The Game World|Items|Consumables|Perishable Food/Non-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-->
<!--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
Line 130: Line 130:
<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 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: 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_items|Boilerplate Items]]   </div><!-- Code for Navigation Bar at top, special blank char's before '''Navigation''' to give space -->
<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|Boilerplate Consumables]]   </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-->
<!--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

Revision as of 20:06, 22 February 2017


   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_items 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.



<!--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. Category is specific if it is perishable or not, remove as appropriate.  -->
{{languages}}
{{header|The Game World|Items|Consumables|Perishable Food/Non-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. 

== 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. If not food, remove this section. 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, or if not food, remove entirely -->
<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, remove this section if not food -->
'''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). If the item cannot be cooked, remove this section-->
{{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-->
<!--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.

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

Template:Navbox/Consumables