Help:Boilerplate ammo: Difference between revisions

From PZwiki
(Further change to ammo boilerplate, indicating example code and where the code came from for anyone looking at finding it.)
(Noticed Nowiki text inside comment treated as nowiki code, changed to basic text without < > sides)
Line 28: Line 28:
<!--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 <nowiki> is used to display the text only, example used is shotgun shells.-->
<!--Comment: Example code taken from file. Items.txt and Newitems.txt are usually the source of the information at this time. Nowiki code is used to display the text only, example used is shotgun shells.-->
  <nowiki>
  <nowiki>
item ShotgunShells
item ShotgunShells
Line 75: Line 75:
<!--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 <nowiki> is used to display the text only, example used is shotgun shells.-->
<!--Comment: Example code taken from file. Items.txt and Newitems.txt are usually the source of the information at this time. Nowiki code is used to display the text only, example used is shotgun shells.-->
  <nowiki>
  <nowiki>
item ShotgunShells
item ShotgunShells

Revision as of 17:43, 21 February 2017


   Page Updated @ Version: 36.40   
   Navigation - Main Index -> Community -> Templates -> Boilerplates -> Boilerplate Ammo   
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}}
{{header|The Game World|Items|Ammo|version=Version 36|incver=40}}
<!--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-->
{{Ammo
|image = Image.png 
|weapontype = List of weapons the ammo is used with
}}
<!--Comment: Description of Item and General Information-->
A description of the item. Include [[Shotgun|links]] (example link is to Shotgun article, as it could be ammunition for it for example) 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. 
<!--Comment: <br> spacing is for the ammo info box to not overlap the code bar-->
<br><br><br><br><br><br><br><br><br><br><br>

== 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. Nowiki code is used  to display the text only, example used is shotgun shells.-->
 
	item ShotgunShells
		Count			= 6,
		Weight			= 0.1,
		AlwaysWelcomeGift	= TRUE,
		Type			= Normal,
		DisplayCategory 	= Ammo,
		DisplayName		= Shotgun Shells,
		Icon			= ShotgunAmmo,
		MetalValue 		= 1,


==See Also==
<!--Comment: Location of links to relevant guides eg: Weapons guide, construction etc-->
<!--Comment: Navbox placement here code example = {{Navbox/Weapons}}, (see all current navboxs via the template section)-->
{{Navbox/Weapons}}



This code would produce the following:



   Page Updated @ Version: 36.40   
   Navigation - Main Index -> The Game World -> Items -> Ammo -> Boilerplate Ammo   

Template:Ammo A description of the item. Include links (example link is to Shotgun article, as it could be ammunition for it for example) 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.












Code

From items.txt (Project Zomboid directory/media/scripts/)

	item ShotgunShells
		Count			= 6,
		Weight			= 0.1,
		AlwaysWelcomeGift	= TRUE,
		Type			= Normal,
		DisplayCategory 	= Ammo,
		DisplayName		= Shotgun Shells,
		Icon			= ShotgunAmmo,
		MetalValue 		= 1,


See Also

Template:Navbox/Weapons