Help:Boilerplate item: Difference between revisions

From PZwiki
m (minor)
m (Add about and tooltip)
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Header|PZwiki|Help|Boilerplates}}
{{Header|PZwiki|Help|Boilerplates}}
{{Page version|41.78.16}}
{{Page version|41.78.16}}
{{Underconstruction}}
{{About|a generic item boilerplate|more specific boilerplates ([[Help:Boilerplate weapon|weapon]], [[Help:Boilerplate clothing|clothing]], [[Help:Boilerplate food|food]])|:Category:Boilerplates}}
{{About|a generic item boilerplate|more specific boilerplates ([[Help:Boilerplate weapon|weapon]], [[Help:Boilerplate clothing|clothing]], [[Help:Boilerplate food|food]])|:Category:Boilerplates}}
{| class="wikitable theme-red" style="width: 100%;"
{| class="wikitable theme-red" style="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.
|<center><small>This boilerplate is used for giving a new page a standard look. To copy the code, enter the [[{{fullurl:Help:Boilerplate item|action=edit}} editing mode]], copy the code between <nowiki><!--COPY CODE BETWEEN THESE COMMENTS--></nowiki>, and add it to your new page before changing to the relevant content. The result of the code are shown below.
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, feel free to remove them when finished with the page, until then, feel free to use the {{tlx|Underconstruction}} [[PZwiki:Mboxes|mbox]].
Anything between <nowiki><!--</nowiki> and <nowiki>--></nowiki> is a comment, and can safely be discarded, feel free to remove them when finished with the page, until then, feel free to use the {{tlx|Underconstruction}} [[PZwiki:Mboxes|Mbox]].
This boilerplate is in an early format, and some sections may change as time goes on. If you wish to suggest improvements to this boilerplate, please use the [[Help talk:Boilerplate tiles|discussion page]].</small></center>
This boilerplate is in an early format, and some sections may change as time goes on. If you wish to suggest improvements to this boilerplate, please use the [[Help talk:Boilerplate item|discussion page]].</small></center>
|}
|}
<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.-->
<!--COPY CODE BETWEEN THESE COMMENTS-->
<!--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: The header template goes on the very first line, there should be nothing above it except a possible {{DISPLAYTITLE}}. The header connects the categories. Directly underneath the header is the page version, this automatically categorizes the page as per the last version it was updated for. When creating a page, enter the version of the game the page is made for. This is usually the current version.-->
{{Header|Project Zomboid|Items|version=Version 41|incver=78.16}}
{{Header|Project Zomboid|Items|hidecat=true}}<!--COMMENT: Remove |hidecat=true on actual pages-->
<!--COMMENT: Here is the infobox for the item. This is a quick lookup for the item's stats. For more information, see: https://pzwiki.net/wiki/Template:Infobox_item-->
{{Page version|41.78.16}}
<!--COMMENT: Here is the infobox for the item. This is a quick lookup for the item's stats. Remove stats that are irrelevant, or add more stats based on the item type. For more information, see: https://pzwiki.net/wiki/Template:Infobox_item-->
{{Infobox item
{{Infobox item
| name =           <!-- or | display_name -->
|name=Rubber Duck
| model =           <!-- or | image -->
|model=RubberDucky_Model.png
| model_width =    <!-- or | image_width -->
|icon=Rubberducky.png
| model_caption =  <!-- or | image_caption -->
|weight=0.1
| icon =  
|function=Insert/remove [[battery]].
| icon_width =  
|item_id=Base.Rubberducky2
| icon_name =
| icon_link =
| category =
| weight =  
| item_id =  
}}
}}
{{About|decorative junk item|rubber duck with a [[battery]]|Rubber Duck (battery)}}<!--COMMENT: Add about in this place if you think page can be confused with another one)-->
{{Quote|text=If an item has a tooltip, it can be added here.|author=In-game tooltip}}
An introduction to the '''item'''. Include [[Nails|links]] (example link is to Nails article) to other pages within the wiki where appropriate.
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 automatically go, if there are enough headers.-->
==Overview==
A longer overview of the item, that may contain multiple paragraphs, but not include usage of the item. This section is not mandatory.


==Usage==
==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.
This section contains how the item can be used, including other stats that may not be in the infobox.<ref>[https://pzwiki.net/ Project Zomboid Wiki - PZwiki]</ref>


==Crafting==
==Crafting==
{{See|Crafting}}
This section is added if the item can be crafted, including subcategories for crafting types, with links to the main articles.
{{Crafting header|ing=2}}
{{Crafting/sandbox2
{{Crafting carpentry|301|ing=2}}
|battery
|}
|rubber_duck
}}


==Distribution==
==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 Distributions.lua, ProceduralDistributions.lua, SuburbsDistributions.lua, VehicleDistributions.lua as well as farming_vegetableconf.lua, fishing_properties.lua, forageDefinitions.lua, ScavengeDefinition.lua, TrapDefinition.lua files.-->
<!--COMMENT: The locations this item can be found should be placed here. Automated distribution tables can be added with [https://github.com/CalvyPZ/pz-distribution-to-wikitable this script]. Any other distribution location should be added manually-->
 
<!--BOT FLAG|Rubberducky|41.78.16-->
===Buildings===
{{Clear}}
Can be found inside [[Containers#Counters|Counters]] in these buildings:
<div class="togglebox theme-red">
*Fossoil
    <div>Rubberducky distribution
*Grocery Store
        <span class="mw-customtoggle-togglebox-Rubberducky" title="{{int:show}} / {{int:hide}}" style="float: right; padding-right: 30px; padding-top: 4px; font-size: 0.7em; font-weight: normal;">{{int:show}} / {{int:hide}}</span></div>
*Storage Unit
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Rubberducky">
*Zippee Store
    Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the [[lucky]] and [[unlucky]] traits.   <div class="toggle-content">
 
<div class="pz-container">
===Vehicles===
<div id="containers" style="flex-basis:30%">
Can be found in the trunk of [[vehicles]] with these professions:
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
*Golf
    |+ {{ll|Containers}}
*Police
    ! Building/Room
*Taxi
    ! Container
    ! Effective chance
    |-
    | bathroom
    | {{ll|counter}}
    | 10.78%
    |-
    | bathroom
    | {{ll|shelves}}
    | 10.78%
    |-
    | bedroom
    | {{ll|crate}}
    | 0.65%
    |-
    | closet
    | {{ll|crate}}
    | 0.65%
    |-
    | closet
    | {{ll|crate}}
    | 10.78%
    |-
    | garagestorage
    | {{ll|crate}}
    | 0.65%
    |-
    | garagestorage
    | {{ll|crate}}
    | 10.78%
    |-
    | kennels
    | {{ll|counter}}
    | 10.78%
    |-
    | storageunit
    | {{ll|crate}}
    | 0.65%
    |-
    | storageunit
    | {{ll|crate}}
    | 10.78%
    |-
    | storageunit
    | {{ll|metal_shelves}}
    | 0.65%
    |-
    | storageunit
    | {{ll|metal_shelves}}
    | 10.78%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-Rubberducky" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Rubberducky|41.78.16-->


==Trivia==
==Trivia==
<!--COMMENT: a list of interesting facts directly related to the item.-->
*Any interesting facts about the item should be bullet-pointed <code>*</code> in this section
*A list of interesting facts would go here.


==Gallery==
==Gallery==
<!--COMMENT: add relevant images into the container below, separated onto a different line. Captions are optional.-->
<!--COMMENT: Here is a list of images that cannot fit, or are not relevant to the infobox. This section is often uneeded.-->
<gallery>
<gallery>
Image.png|An example caption.
Image.png|An example caption
Image.png|Another example caption.
Image.png|Another example caption
</gallery>
</gallery>


==Code==
==Code==
<!--COMMENT: all the code related to the item found in txt files should be placed here.-->
<!--COMMENT: all the code related to the tile found in the game's files should be placed here. Use a combination of Template:CodeBox and Template:CodeSnip.-->
<!--COMMENT: example code taken from file. Items.txt and Newitems.txt are usually the source of the information at this time for basic items.-->
<!--COMMENT: The CodeSnip template is used to neatly align the code, and standardize the layout. This template includes the source location, the version it was retrieved from, and the code itself. See [[Template:CodeBox]] and [[Template:CodeSnip]] for more information about usage.-->
{{CodeBox|
{{CodeBox
{{CodeSnip
| {{CodeSnip
|lang=java
  | lang = java
|line=true
  | line = true
|start=92
  | start = 1049
|source=items.txt
  | source = newitems.txt
|retrieved=true
  | retrieved = true
|version=41.78.16
  | version = 41.78.16
|code= item BucketEmpty
  | code =
{
item Rubberducky2
    DisplayCategory = WaterContainer,
    {
Weight = 1,
        DisplayCategory = Junk,
CanStoreWater = TRUE,
        Weight = 0.1,
Type = Normal,
        Type = Drainable,
DisplayName = Bucket,
         UseDelta = 0.003,
Icon = MetalBucket,
         DisplayName = Rubber Duck,
         ReplaceOnUseOn = WaterSource-BucketWaterFull,
         Icon = Rubberducky,
         MetalValue = 20,
         WorldStaticModel = Rubberducky,
         RainFactor = 1,
         cantBeConsolided = TRUE,
Tooltip = Tooltip_item_RainFromGround,
    }
         EatType = Bucket,
         SurvivalGear = TRUE,
        WorldStaticModel = Bucket_Ground,
}
}}
}}
}}
}}


==See also==
==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.-->
<!--COMMENT: Location of links to relevant pages that may not have been mentioned on this page but still relate to the item in some way.-->
*[[Survival Guide]]
*[[Rubber Duck]]
 
<!--COMMENT: Navbox placement goes here. Code example = {{Navbox equipment}}, (see all current navboxes via the template section).-->
{{Navbox equipment}}</nowiki>
 
<span style="font-size: 188%;">'''This code would 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|version=Version 41|incver=78.16|hidecat=true}}
<!--COMMENT: Here is the infobox for the item. This is a quick lookup for the item's stats. For more information, see: https://pzwiki.net/wiki/Template:Infobox_item-->
{{Infobox item
| name =            <!-- or | display_name -->
| model =          <!-- or | image -->
| model_width =    <!-- or | image_width -->
| model_caption =  <!-- or | image_caption -->
| icon =
| icon_width =
| icon_name =
| icon_link =
| category =
| weight =
| item_id =
}}
An introduction to the '''item'''. Include [[Nails|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==
{{See|Crafting}}
{{Crafting header|ing=2}}
{{Crafting carpentry|301|ing=2}}
|}


==Distribution==
==References==
<!--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 Distributions.lua, ProceduralDistributions.lua, SuburbsDistributions.lua, VehicleDistributions.lua as well as farming_vegetableconf.lua, fishing_properties.lua, forageDefinitions.lua, ScavengeDefinition.lua, TrapDefinition.lua files.-->
<!--COMMENT: References go there, if <ref></ref> tags were defined somewhere in the article. Skip if not needed-->
 
<references />
===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: example code taken from file. Items.txt and Newitems.txt are usually the source of the information at this time for basic items.-->
{{CodeBox|
{{CodeSnip
|lang=java
|line=true
|start=92
|source=items.txt
|retrieved=true
|version=41.78.16
|code= item BucketEmpty
{
    DisplayCategory = WaterContainer,
Weight = 1,
CanStoreWater = TRUE,
Type = Normal,
DisplayName = Bucket,
Icon = MetalBucket,
        ReplaceOnUseOn = WaterSource-BucketWaterFull,
        MetalValue = 20,
        RainFactor = 1,
Tooltip = Tooltip_item_RainFromGround,
        EatType = Bucket,
        SurvivalGear = TRUE,
        WorldStaticModel = Bucket_Ground,
}
}}
}}
 
==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 goes here. Code example = {{Navbox equipment}}, (see all current navboxes via the template section).-->
<!--COMMENT: Navbox placement goes here. Code example = {{Navbox items|junk}}, see [[Template:Navbox items]] for more info on using parameters.-->
{{Navbox equipment}}
{{Navbox items|junk}}


<!--COMMENT: Any additional categories should be added below the navbox, with one empty line in between.-->
<!--COPY CODE BETWEEN THESE COMMENTS-->
[[Category:Boilerplates]]
[[Category:Boilerplates]]

Latest revision as of 10:57, 1 May 2024

PZwikiHelpBoilerplatesBoilerplate item
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
PlushSpiffo.pngThis page is about a generic item boilerplate. For more specific boilerplates (weapon, clothing, food), see Category:Boilerplates.
This boilerplate is used for giving a new page a standard look. To copy the code, enter the [editing mode], copy the code between <!--COPY CODE BETWEEN THESE COMMENTS-->, and add it to your new page before changing to the relevant content. The result of the code are shown below.

Anything between <!-- and --> is a comment, and can safely be discarded, feel free to remove them when finished with the page, until then, feel free to use the {{Underconstruction}} Mbox.

This boilerplate is in an early format, and some sections may change as time goes on. If you wish to suggest improvements to this boilerplate, please use the discussion page.
Project ZomboidItemsBoilerplate item
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Rubber Duck
RubberDucky Model.png
General
Encumbrance
Moodle Icon HeavyLoad.png
0.1
Function
Insert/remove battery.
Technical
Item ID
Base.Rubberducky2
PlushSpiffo.pngThis page is about decorative junk item. For rubber duck with a battery, see Rubber Duck (battery).
If an item has a tooltip, it can be added here.
— In-game tooltip

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

Overview

A longer overview of the item, that may contain multiple paragraphs, but not include usage of the item. This section is not mandatory.

Usage

This section contains how the item can be used, including other stats that may not be in the infobox.[1]

Crafting

This section is added if the item can be crafted, including subcategories for crafting types, with links to the main articles.

Product Ingredients Tools Requirements Workstation XP
Battery.png
Battery
One of:
Flashlight.png Flashlight ×1
Flashlight2.png Hand Torch ×1
Rubberducky.png Rubber Duck ×1
none none none none
Rubberducky.png
Rubber Duck
Rubberducky.png Rubber Duck ×1
Battery.png Battery ×1
none none none none

Distribution

Rubberducky distribution Show / Hide
Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the lucky and unlucky traits.
Containers
Building/Room Container Effective chance
bathroom counter 10.78%
bathroom shelves 10.78%
bedroom crate 0.65%
closet crate 0.65%
closet crate 10.78%
garagestorage crate 0.65%
garagestorage crate 10.78%
kennels counter 10.78%
storageunit crate 0.65%
storageunit crate 10.78%
storageunit metal_shelves 0.65%
storageunit metal_shelves 10.78%

Trivia

  • Any interesting facts about the item should be bullet-pointed * in this section

Gallery

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item Rubberducky2
    {
        DisplayCategory = Junk,
        Weight	=	0.1,
        Type	=	Drainable,
        UseDelta	=	0.003,
        DisplayName	=	Rubber Duck,
        Icon	=	Rubberducky,
        WorldStaticModel = Rubberducky,
        cantBeConsolided = TRUE,
    }

See also

References