Help:Boilerplate items: Difference between revisions

From PZwiki
(First attempt at redesign of boilerplate, had to mix in header and old code to show exact result. Help: type pages are not part of the header template so worked around the issue with older coding.)
m (updated distribution format and main header)
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
__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 -->
{{header|PZwiki|Help|Boilerplates|type=neutral|hidever=true}}{{Protection}}
<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 -->


{| class="wikitable" width="100%"
{| 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_items|Help_talk:Boilerplate_items 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_items|'''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 <code><nowiki><</nowiki>!--</code> and ends with <code><nowiki>-</nowiki>-></code> 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 -->
<!--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: {{languages}}, linking every subpage with "/##" at the end, where "##" is the language code. E.g. "Nails/es" and "Nails/fr" even if there are redirects. -->
{{languages}}
{{languages}}
{{header|The Game World|Items|version=Version 36|incver=40}}
<!--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 -->
<!--Comment: This section is for the infobox which will be positioned on the right of the page. Image.png is the default question mark image-->
{{header|The Game World|Items|type=Default|version=Version 39|incver=67.5|hidecat=true}}
{{Items
<!--COMMENT: This section is for the infobox, which will be positioned on the right of the page. Image.png is the default question mark image. The information can be pulled from the relevant items.txt file in [Project Zomboid/media/scripts]. For more info on how to use the infobox, see: https://pzwiki.net/wiki/Template:Infobox_normal.
|image = Image.png  
-->{{Infobox normal
|weight = ?
|display_name=?
}}
|name_colour=See: [[Template:Infobox_nc]] for a list of available colour codes.
<!--Comment: Description of Item and General Information-->
|name_text_colour=See: [[Template:Infobox_nc]] for a list of available colour codes.
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.  
|image=image.png
|alternate_image=image.png{{!}}32px
|alternate_name=?
|alternate_link=
|category=?
|weight=?
|function=?
|can_store_water=?
|rain_factor=?
|bandage_power=?
|alcohol=?
|wet_cooldown=?
|remote_range=?
|class_name=?
}}<!--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.  
 
<!--COMMENT: This is where the 'Table Of Contents' will go if it is needed-->
__TOC__
 
== 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.


== Crafting ==
== Crafting ==
<!--Comment: Code in crafting template which uses item, see RecipeLookup Template for full list-->
<!--Comment: Code in crafting template which uses item, see RecipeLookup Template for full list-->
{| class="wikitable sortable" style="text-align:center;"
{{Crafting table header}}
|-
! Output
! class="unsortable" | Ingredients
! class="unsortable" | Description
! Skill Level
{{RecipeLookup|1008}}
{{RecipeLookup|1008}}
|}
{{Crafting table footer}}
 
== 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 ===
Can be found inside [[Containers#Counters|Counters]] in these buildings:
*Fossoil
*Grocery Store
*Storage Unit
*Zippee Store
 
=== Vehicles ===
Can be found in the trunk of [[vehicles]] with these professions:
*Golf
*Police
*Taxi
 
== Trivia ==
<!--Comment: a list of interesting facts directly related to the item-->
* A list of interesting facts would go here
 
== Gallery ==
<!--Comment: add relevant images into the container below, separated onto a different line. Captions are optional-->
<gallery>
Image.png|An example caption
Image.png|Another example caption
</gallery>


== Code ==
== Code ==
<!--Comment: Location of Code in directory for updating purposes. Example below shows how to lay it out. ''''' is for bold italic.-->
<!--Comment: all the code related to the item found in txt files should be placed here-->
'''''From ISBuildMenu.lua (media/lua/client/BuildingObjects/ISUI)'''''
<!--Comment: Current location of Code in directory for updating purposes. Example below shows how to lay it out. ''''' is for bold italic.-->
<nowiki>
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
Actual Code in file for comparison purposes.
<!--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=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 RoastingPan.-->
<pre> item RoastingPan
Weight = 1.3,
Type = Normal,
DisplayName = Roasting Pan,
Icon = Roastingpan,
MetalValue = 60,<nowiki><</nowiki>/pre>


==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. -->
<!--Comment: Navbox placement here code example = {{Navbox/Construction}}, (see all current navboxs via the template section)-->
* [[Survival Guide]]
<!--Comment: Navbox placement here code example = {{Navbox/Construction}}-->
{{Navbox/Construction}}
{{Navbox/Construction}}
<!--Comment: Any categories that this item may belong to, but are not included in the header can be listed here-->
[[Category:Boilerplates]]
</pre>
</pre>
</div>
</div>
</div>


Line 56: Line 107:




<!--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 -->
<!--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: {{languages}}, linking every subpage with "/##" at the end, where "##" is the language code. E.g. "Nails/es" and "Nails/fr" even if there are redirects. -->
{{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 -->
<!--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 -->
<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 -->
{{header|The Game World|Items|type=Default|version=Version 39|incver=67.5|hidecat=true}}
<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]] -> [[Help:Boilerplate_items|Boilerplate Items]]   </div><!-- Code for Navigation Bar at top, special blank char's before '''Navigation''' to give space -->
<!--COMMENT: This section is for the infobox, which will be positioned on the right of the page. Image.png is the default question mark image. The information can be pulled from the relevant items.txt file in [Project Zomboid/media/scripts]. For more info on how to use the infobox, see: https://pzwiki.net/wiki/Template:Infobox_normal.
<!--Comment: This section is for the infobox which will be positioned on the right of the page. Image.png is the default question mark image-->
-->{{Infobox normal
{{Items
|display_name=?
|image = Image.png  
|name_colour=See: [[Template:Infobox_nc]] for a list of available colour codes.
|weight = ?
|name_text_colour=See: [[Template:Infobox_nc]] for a list of available colour codes.
}}
|image=image.png
<!--Comment: Description of Item and General Information-->
|alternate_image=image.png{{!}}32px
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.  
|alternate_name=?
|alternate_link=
|category=?
|weight=?
|function=?
|can_store_water=?
|rain_factor=?
|bandage_power=?
|alcohol=?
|wet_cooldown=?
|remote_range=?
|class_name=?
}}<!--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.  
 
<!--COMMENT: This is where the 'Table Of Contents' will go if it is needed-->
__TOC__
 
== 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.


== Crafting ==
== Crafting ==
<!--Comment: Code in crafting template which uses item, see RecipeLookup Template for full list-->
<!--Comment: Code in crafting template which uses item, see RecipeLookup Template for full list-->
{| class="wikitable sortable" style="text-align:center;"
{{Crafting table header}}
|-
! Output
! class="unsortable" | Ingredients
! class="unsortable" | Description
! Skill Level
{{RecipeLookup|1008}}
{{RecipeLookup|1008}}
|}
{{Crafting table footer}}
 
== 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 ===
Can be found inside [[Containers#Counters|Counters]] in these buildings:
*Fossoil
*Grocery Store
*Storage Unit
*Zippee Store
 
=== Vehicles ===
Can be found in the trunk of [[vehicles]] with these professions:
*Golf
*Police
*Taxi
 
== Trivia ==
<!--Comment: a list of interesting facts directly related to the item-->
* A list of interesting facts would go here
 
== Gallery ==
<!--Comment: add relevant images into the container below, separated onto a different line. Captions are optional-->
<gallery>
Image.png|An example caption
Image.png|Another example caption
</gallery>


== Code ==
== Code ==
<!--Comment: Location of Code in directory for updating purposes. Example below shows how to lay it out. ''''' is for bold italic.-->
<!--Comment: all the code related to the item found in txt files should be placed here-->
'''''From ISBuildMenu.lua (media/lua/client/BuildingObjects/ISUI)'''''
<!--Comment: Current location of Code in directory for updating purposes. Example below shows how to lay it out. ''''' is for bold italic.-->
<nowiki>
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
Actual Code in file for comparison purposes.
<!--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=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 RoastingPan.-->
<pre> item RoastingPan
Weight = 1.3,
Type = Normal,
DisplayName = Roasting Pan,
Icon = Roastingpan,
MetalValue = 60,</pre>


==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. -->
* [[Survival Guide]]
<!--Comment: Navbox placement here code example = {{Navbox/Construction}}-->
<!--Comment: Navbox placement here code example = {{Navbox/Construction}}-->
{{Navbox/Construction}}
{{Navbox/Construction}}


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

Revision as of 08:59, 9 July 2019

PZwikiHelpBoilerplatesBoilerplate items
Lock-locked.png
This page has been put into protection by a PZwiki administrator.
Only users in the autoconfirmed user group may edit this page.
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 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. The syntax for each page (regardless of language) will be: {{languages}}, linking every subpage with "/##" at the end, where "##" is the language code. E.g. "Nails/es" and "Nails/fr" even if there are redirects. -->
{{languages}}
<!--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|The Game World|Items|type=Default|version=Version 39|incver=67.5|hidecat=true}}
<!--COMMENT: This section is for the infobox, which will be positioned on the right of the page. Image.png is the default question mark image. The information can be pulled from the relevant items.txt file in [Project Zomboid/media/scripts]. For more info on how to use the infobox, see: https://pzwiki.net/wiki/Template:Infobox_normal. 
-->{{Infobox normal
|display_name=?
|name_colour=See: [[Template:Infobox_nc]] for a list of available colour codes.
|name_text_colour=See: [[Template:Infobox_nc]] for a list of available colour codes.
|image=image.png
|alternate_image=image.png{{!}}32px
|alternate_name=?
|alternate_link=
|category=?
|weight=?
|function=?
|can_store_water=?
|rain_factor=?
|bandage_power=?
|alcohol=?
|wet_cooldown=?
|remote_range=?
|class_name=?
}}<!--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. 

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

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

== Crafting ==
<!--Comment: Code in crafting template which uses item, see RecipeLookup Template for full list-->
{{Crafting table header}}
{{RecipeLookup|1008}}
{{Crafting table footer}}

== 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 ===
Can be found inside [[Containers#Counters|Counters]] in these buildings:
*Fossoil
*Grocery Store
*Storage Unit
*Zippee Store

=== Vehicles ===
Can be found in the trunk of [[vehicles]] with these professions:
*Golf
*Police
*Taxi

== Trivia ==
<!--Comment: a list of interesting facts directly related to the item-->
* A list of interesting facts would go here

== Gallery ==
<!--Comment: add relevant images into the container below, separated onto a different line. Captions are optional-->
<gallery>
Image.png|An example caption
Image.png|Another example caption
</gallery>

== 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 RoastingPan.-->
<pre>	item RoastingPan
		Weight		= 1.3,
		Type		= Normal,
		DisplayName	= Roasting Pan,
		Icon		= Roastingpan,
		MetalValue 	= 60,</pre>

== 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. -->
* [[Survival Guide]]
<!--Comment: Navbox placement here code example = {{Navbox/Construction}}-->
{{Navbox/Construction}}

<!--Comment: Any categories that this item may belong to, but are not included in the header can be listed here-->
[[Category:Boilerplates]]



This code would produce the following:



The Game WorldItemsBoilerplate items
?
?
?
General
Category ?
Encumbrance
Heavy Load
?
Function ?
Can store water ?
Rain factor ?
Bandage power
Bleeding
?
Alcohol
Drunk
?
Time to dry
Wet
?
Remote range ? tiles
Technical details
Base ID ?

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.

Crafting

Template:Crafting table header |- |
| | | ||
||
||
||
||
||
||
||
||
||
||
Template:Crafting table footer

Distribution

Buildings

Can be found inside Counters in these buildings:

  • Fossoil
  • Grocery Store
  • Storage Unit
  • Zippee Store

Vehicles

Can be found in the trunk of vehicles with these professions:

  • Golf
  • Police
  • Taxi

Trivia

  • A list of interesting facts would go here

Gallery

Code

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

	item RoastingPan
		Weight		= 1.3,
		Type		= Normal,
		DisplayName	= Roasting Pan,
		Icon		= Roastingpan,
		MetalValue 	= 60,

See also

Template:Navbox/Construction