Help:Boilerplate ammo

From PZwiki
Jump to: navigation, search
Language policy Language: English
   Page Updated @ Version: 39.67.5   
   Navigation - Main Index -> Community -> Templates -> Boilerplates -> Boilerplate Items   
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_ammo 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 -->
{{languages|{{PAGENAME}}}}
{{header|The Game World|Items|Weapons|Firearms|Ammo|type=Weapon|version=Version 39|incver=67.5}}<!--
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 items/newitems.txt file in [Zomboid Folder\media\scripts]. For more info on how to use the infobox, see: https://pzwiki.net/wiki/Template:Infobox_normal. 
-->{{Infobox normal
|image = 40calAmmoBox.png 
|alternate_image = HandgunAmmoBox.png
|alternate_name = Box of 9mm Bullets
|alternate_link = 
|weight = 0.1
|weight_bkg = 1
|primary_use = Ammo
|class_name = Base.Bullets9mm
|class_name_bkg = 1
}}
<!--Comment: Description of Item and General Information-->
A description of the item. Include [[Shotgun|links]] (example link is to Shotgun article) to other pages within the wiki where appropriate. Also try to mention how many uses it has, can it be boxed, and also where it was found. 

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

=== Weapons ===
Include a list of weapons this type of ammo can be used in.

=== Recipes ===
Include how many bullets go into a box in this section.
<!--Comment: Code in crafting template which uses item, see RecipeLookup Template for full list-->
{{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 ShotgunShells.-->
 <nowiki>
	item ShotgunShells
		Count			= 6,
		Weight			= 0.1,
		AlwaysWelcomeGift	= TRUE,
		Type			= Normal,
		DisplayCategory 	= Ammo,
		DisplayName		= Shotgun Shells,
		Icon			= ShotgunAmmo,
		MetalValue 		= 1,</nowiki>

== 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/Weapons}}-->
{{Navbox/Weapons}}

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



This code would produce the following:



Language policy Language: English
Boilerplate ammo
{{{display_name}}}
Box of 9mm Bullets
General
Category Item
Weight
Heavy Load
0.1
Function Ammo
Technical details
Base ID Base.Bullets9mm

A description of the item. Include links (example link is to Shotgun 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.

Weapons

Include a list of weapons this type of ammo can be used in.

Recipes

Include how many bullets go into a box in this section.

Product Recipe Description Skill Level
Wooden Crate.png
Crate x1
Hammer.png + Nails.png + Plank.png
Hammer x1 Nails x2 Wooden Plank x2
(consumed) (consumed)
A wooden crate used for storage. It is a craft-able storage item with its own inventory. Carpentry Level 3


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
Version 39.67.5
<nowiki>
	item ShotgunShells
		Count			= 6,
		Weight			= 0.1,
		AlwaysWelcomeGift	= TRUE,
		Type			= Normal,
		DisplayCategory 	= Ammo,
		DisplayName		= Shotgun Shells,
		Icon			= ShotgunAmmo,
		MetalValue 		= 1,</nowiki>

See also

Weapons vde
Blunt Bare HandsBaseball BatCrowbarFishing RodFishing Rod Without LineFishing Rod (crafted)Frying PanGolfclubHammerHockey StickPlankPoolcueRolling PinSledgehammerShovelSpiked Baseball BatSpiked PlankStone HammerWooden Spear
Bladed Butter KnifeForkHunting KnifeIce PickKitchen KnifeLetter OpenerPenPencilScissorsScrewdriverSpoon
Axes AxeRaw Axe
Firearms Hunting RiflePistolSawn Off ShotgunShotgunVarmint Rifle
Throwables Aerosol BombAlarm ClockFlame TrapMolotov CocktailNoise MakerPipe BombSmoke Bomb
Ammo Shotgun Shells9mm Rounds.223 Ammo.308 Ammo
Weapon Parts 9mm MagazineAmmo StrapsChoke Tube ImprovedChoke Tube FullFiberglass StockIron SightsLaserRecoil PadRed DotSlingx2 Scopex4 Scopex8 Scope