Help:Boilerplate literature: Difference between revisions

From PZwiki
(Adjusted Consumable page for Literature before renaming page)
m (clean up, replaced: wikitable → pztable (7))
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{languages}}
{{languages}}
<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: #{{hc|Neutral}}; padding: 13px; text-align: left; font-size: 100%; color:#000000; border: 1px solid #{{hc|Neutral|border}}"> <!-- 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: #{{hc|Neutral}};border: 1px solid #{{hc|Neutral|border}}; 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_consumables|Boilerplate Consumables]]   </div><!-- Code for Navigation Bar at top, special blank char's before '''Navigation''' to give space -->
<div style="float: left;background: #{{hc|Neutral}};border: 1px solid #{{hc|Neutral|border}}; 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="pztable" 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|Help_talk:Boilerplate_consumables 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_consumables_literature|Help_talk:Boilerplate_consumables_literature 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 starting with !< -- and ends with --> is removable and will not affect the template.</small></center>
|}
|}
<br><br>
<br><br>
<pre>
<pre>
<!--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. -->
{{languages}}
{{languages|{{PAGENAME}}}}
{{header|The Game World|Items|Consumables|Literature|version=Version 36|incver=40}}
{{header|The Game World|Items|Literature|type=Literature|version=Version 39|incver=67.5}}
<!--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
{{Infobox literature
| image = Book.png
| image = Book_120px.png
| weight = 0.5
| weight = 0.5
| boredom = -50
| weight_bkg = 1
| unhappiness = -40
| unhappy_change = -40
| stress= -40
| boredom_change = -50
| boredom_change_bkg = 1
| stress_change = -40
| class_name = Base.Book
| class_name_bkg = 1
}}
}}
<!--Comment: Description of Item and General Information-->
<!--Comment: General introductory for the item-->
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.  
An introduction to the item. Include [[Nails|links]] (example link is to Nails article) to other pages within the wiki where appropriate.  
<!--Comment: br comment below is for spacing of article layout. Leave in for formatting unless you have enough information to cover-->
 
<br><br><br><br><br><br><br><br><br><br>
__TOC__
<!--Comment: This is where the 'Table Of Contents' will go if it is needed-->
 
== Usage ==
This section should contain all the uses for the item. Don't be afraid to separate topics into different sections, no matter how little information there might be.
 
=== Fuel ===
If the item can be used as a fuel, include that here along with how long it lasts.
 
=== Recipes ===
<!--Comment: Code in crafting template which uses item, see RecipeLookup Template for full list-->
{| class="pztable sortable" style="text-align:center;"
|-
{{Crafting table header}}
{{RecipeLookup|1008}}
{{Crafting table footer}}
 
 
 
== Item Distribution ==
<!--Comment: The locations this item can be found she be placed here. Precise values that can be put into tables can be found in the distribution.lua and vehicledistribution.lua files. -->
=== Buildings ===
{| class="pztable" 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="pztable" style="text-align:center;"
|-
!Profession
!Container
!Rolls
!Chance
|-
|Golf
|[[Trunk]]
|2
|3
|-
|Police
|[[Trunk]]
|4
|1
|-
|Taxi
|[[Trunk]]
|3
|2
|-
|}
 
== Code ==
== Code ==
<!--Comment: all the code related to the item found in txt files should be placed here-->
<!--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>
{{Retrieved|version=39|incver=67.5}}
<!--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 Book.-->
  <nowiki>
item Book
item Book
Weight = 0.5,
Weight = 0.5,
Line 39: Line 121:
StressChange = -40,
StressChange = -40,
Icon = Book,
Icon = Book,
BoredomChange = -50,
BoredomChange = -50,</nowiki>
</nowiki></nowiki>


==See Also==
==See also==
<!--Comment: Location of links to relevant guides eg: Weapons guide, construction etc-->
<!--Comment: Location of links to relevant guides or other pages that may not have been mentioned on this page but still relate to the item in some way. -->
* [[Skill Books]]
<!--Comment: Navbox placement here code example = {{Navbox/Consumables}}, (see all current navboxs via the template section)-->
<!--Comment: Navbox placement here code example = {{Navbox/Consumables}}, (see all current navboxs via the template section)-->
{{Navbox/Consumables}}
{{Navbox/Consumables}}
<!--Comment: Any categories that this item may belong to not included in the header can be listed here-->
</pre>
</pre>
</div>
</div>
Line 58: Line 142:


<!--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. -->
<!--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. -->
{{languages}}
{{languages|{{PAGENAME}}}}
<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 -->
{{header|The Game World|Items|Literature|type=Literature|version=Version 39|incver=67.5}}
<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:The Game World|The Game World]] -> [[:Category:Items|Items]] -> [[:Category:Consumables|Consumables]] -> [[:Category:Literature|Literature]] -> [[Help:Boilerplate_consumables_literature|Boilerplate Consumable Literature]]   </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
{{Infobox literature
| image = Book.png
| image = Book_120px.png
| weight = 0.5
| weight = 0.5
| boredom = -50
| weight_bkg = 1
| unhappiness = -40
| unhappy_change = -40
| stress= -40
| boredom_change = -50
| boredom_change_bkg = 1
| stress_change = -40
| class_name = Base.Book
| class_name_bkg = 1
}}
}}
<!--Comment: Description of Item and General Information-->
<!--Comment: General introductory for the item-->
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 it is used and how much of a bonus it gives.  
An introduction to the item. Include [[Nails|links]] (example link is to Nails article) to other pages within the wiki where appropriate.  
<!--Comment: br comment below is for spacing of article layout. Leave in for formatting unless you have enough information to cover-->
 
<br><br><br><br><br><br><br><br><br><br>
__TOC__
<!--Comment: This is where the 'Table Of Contents' will go if it is needed-->
 
== Usage ==
This section should contain all the uses for the item. Don't be afraid to separate topics into different sections, no matter how little information there might be.
 
=== Fuel ===
If the item can be used as a fuel, include that here along with how long it lasts.
 
=== Recipes ===
<!--Comment: Code in crafting template which uses item, see RecipeLookup Template for full list-->
{| class="pztable sortable" style="text-align:center;"
|-
{{Crafting table header}}
{{RecipeLookup|1008}}
{{Crafting table footer}}
 
 
 
== Item Distribution ==
<!--Comment: The locations this item can be found she be placed here. Precise values that can be put into tables can be found in the distribution.lua and vehicledistribution.lua files. -->
=== Buildings ===
{| class="pztable" 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="pztable" style="text-align:center;"
|-
!Profession
!Container
!Rolls
!Chance
|-
|Golf
|[[Trunk]]
|2
|3
|-
|Police
|[[Trunk]]
|4
|1
|-
|Taxi
|[[Trunk]]
|3
|2
|-
|}
 
== Code ==
== Code ==
<!--Comment: all the code related to the item found in txt files should be placed here-->
<!--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.-->
{{Retrieved|version=39|incver=67.5}}
<!--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 Book.-->
  <nowiki>
  <nowiki>
item Book
item Book
Line 86: Line 250:
StressChange = -40,
StressChange = -40,
Icon = Book,
Icon = Book,
BoredomChange = -50,
BoredomChange = -50,</nowiki>
</nowiki>


==See Also==
==See also==
<!--Comment: Location of links to relevant guides eg: Weapons guide, construction etc-->
<!--Comment: Location of links to relevant guides or other pages that may not have been mentioned on this page but still relate to the item in some way. -->
* [[Skill Books]]
<!--Comment: Navbox placement here code example = {{Navbox/Consumables}}, (see all current navboxs via the template section)-->
<!--Comment: Navbox placement here code example = {{Navbox/Consumables}}, (see all current navboxs via the template section)-->
{{Navbox/Consumables}}
{{Navbox/Consumables}}


[[Category:Boilerplates]]
<!--Comment: Any categories that this item may belong to not included in the header can be listed here-->
[[Category:Community]]
[[Category:Templates]]
[[Category:Version 36]]

Revision as of 14:42, 11 May 2019


   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_literature 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. -->
{{languages|{{PAGENAME}}}}
{{header|The Game World|Items|Literature|type=Literature|version=Version 39|incver=67.5}}
<!--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-->
{{Infobox literature
| image = Book_120px.png
| weight = 0.5
| weight_bkg = 1
| unhappy_change = -40
| boredom_change = -50
| boredom_change_bkg = 1
| stress_change = -40
| class_name = Base.Book
| class_name_bkg = 1
}}
<!--Comment: General introductory for the item-->
An introduction to the item. Include [[Nails|links]] (example link is to Nails article) to other pages within the wiki where appropriate. 

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

== Usage ==
This section should contain all the uses for the item. Don't be afraid to separate topics into different sections, no matter how little information there might be.

=== Fuel ===
If the item can be used as a fuel, include that here along with how long it lasts.

=== Recipes ===
<!--Comment: Code in crafting template which uses item, see RecipeLookup Template for full list-->
{| class="pztable sortable" style="text-align:center;" 
|- 
{{Crafting table header}}
{{RecipeLookup|1008}}
{{Crafting table footer}}



== Item Distribution ==
<!--Comment: The locations this item can be found she be placed here. Precise values that can be put into tables can be found in the distribution.lua and vehicledistribution.lua files. -->
=== Buildings ===
{| class="pztable" 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="pztable" style="text-align:center;"
|-
!Profession
!Container
!Rolls
!Chance
|-
|Golf
|[[Trunk]]
|2
|3
|-
|Police
|[[Trunk]]
|4
|1
|-
|Taxi
|[[Trunk]]
|3
|2
|-
|}

== Code ==
<!--Comment: all the code related to the item found in txt files should be placed here-->
<!--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.-->
{{Retrieved|version=39|incver=67.5}}
<!--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 Book.-->
 
	item Book
		Weight		= 0.5,
		Type		= Literature,
		UnhappyChange	= -40,
		DisplayName	= Book,
		StressChange	= -40,
		Icon		= Book,
		BoredomChange	= -50,

==See also==
<!--Comment: Location of links to relevant guides or other pages that may not have been mentioned on this page but still relate to the item in some way. -->
* [[Skill Books]]
<!--Comment: Navbox placement here code example = {{Navbox/Consumables}}, (see all current navboxs via the template section)-->
{{Navbox/Consumables}}

<!--Comment: Any categories that this item may belong to not included in the header can be listed here-->



This code would produce the following:



The Game WorldItemsLiteratureBoilerplate literature
Boilerplate literature
{{{display_name}}}
General
Encumbrance
Heavy Load
0.5
Effect
Unhappiness
Unhappiness
-40
Boredom
Boredom
-50
Stress
Stress
-40
Technical details
Base ID Base.Book

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

Usage

This section should contain all the uses for the item. Don't be afraid to separate topics into different sections, no matter how little information there might be.

Fuel

If the item can be used as a fuel, include that here along with how long it lasts.

Recipes

Template:Crafting table header












Template:Crafting table footer


Item 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

Code

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

	item Book
		Weight		= 0.5,
		Type		= Literature,
		UnhappyChange	= -40,
		DisplayName	= Book,
		StressChange	= -40,
		Icon		= Book,
		BoredomChange	= -50,

See also

Template:Navbox/Consumables