Guide: Contributing to the Wiki

Contributing to the Wiki can seem overwhelming, but it is easy once you understand some Wiki basics. One of the first things more complicated things you will encounter on the Wiki is the infobox. See the Nail gun page as an example.
[hr]
[center]This / turns into this:

/

With the use of an infobox template.[/center]
[hr]
Infoboxes allow regular presentation of the information and makes changes to the template easy across many pages. Here, changing the title from “As a Firearm” to “Firearm” is completed just on the template page and those changes are shown on every page that uses that infobox template. The information is still manually entered onto the actual page in this format so the magic needs some work behind it.

The template that is used in this case is the Firearm template.

Here you can see how the details that are laid out in the list on the page are translated into the data that shows up on the infobox. The first variable of header1=General is the first thing to show up under the name and symbol of the item. This shows how information in the template is made on this one template page, but shows up across all the pages that use it. In this case this “General” label isn’t passed anywhere in the information you type into the page, but is only set on the template and shows up on the individual pages.

The next item to review is the simplest version of using a variable on the item’s page and passing it into the infobox.

|label3=[[Volume]]
|data3={{{volume|0}}}

Here you see that the 3rd label, which the infobox is smart enough to lay out as the 3rd thing in its list of labels and data, is labeled as [[Volume]]. Things that have [[]] around them tell the Wiki to make that a URL link to a page with that name. This makes the Volume label in the infobox clickable to take the player to a page that talks more about volume. Next the |data3={{{volume|0}}} is what takes the information from the page and loads it into the infobox. The 0 in this case is the default value. On the Nail gun page this was set as |volume=4 in the page to load the 4 into the infobox. This is how variables that are set onto the page are captured and loaded into the infobox.

The other data variables are a little more complicated. The |id= variable uses the if function to determine if there is anything in that data. If there is not it doesn’t pass anything and so it does not create a blank label in the infobox, but otherwise it creates a link to the item browser. The data2 data is passed through 2 variables, here |mat1= and |mat2= use “lc” to make them lowercase and if there is a 2nd material then the more expanded 2-material list of data is used rather than just 1 with the “#switch” in the data.

These may be a little overwhelming at first, but understanding and using these templates will be the easiest hurdle to overcome and be able to confidently contribute, not only to the Wiki, but to contribute to creating high quality pages as well. For your reference this is a list of the current template types and “blank” versions you can paste into a page for a new item of that type and fill it in accordingly.

[hr]

You can use these as a pastebin to simply copy and past these blank templates into the Wiki page to get started. These include a few categories and navboxes as well. Your mileage will vary on the categories, but at least they’ll be a reminder even if they are not exact.

Like some of the Wiki these templates are not always up to speed with experimental. Firearm is a good example of a complete template that could use an update for the aim changes, but is otherwise very good at creating an interesting and complete page for an item.

Ammo[spoiler][code]
{{Row/Ammunition1
{{Ammo
|name=
|id=
|glyph=
|color=
|volume=
|weight=
|bash=
|cut=
|tohit=
|rarity=
|price=
|mat1=
|mat2=
|func=
|ammotype=
|damage=
|ap=
|range=
|recoil=
|accuracy=
|count=
|casing=
|effect1=
|description=
}}

== Notes ==

{{footer/ammunition}}

[[Category:Ammunition]]

[/code][/spoiler]
Book <noinclude>{{Book</noinclude> <includeonly>{{row/Books</includeonly> |name= |id= |description= |weight= |tohit= |color= |reqint= |glyph=<nowiki></nowiki> |mat1= |mat2= |volume= |bash= |cutting= |readtime= |fun= |skill= |price= |reqskill= |chapters= }} <noinclude> {{Books}} [[Category:Books]] </noinclude>
Clothes[spoiler][code]
{{Clothes
{{row/Clothing1
|name=
|glyph=
|color=
|volume=
|weight=
|bash=
|cut=
|tohit=
|rarity=
|price=
|mat1=
|mat2=
|func=
|encumber=
|storage=
|thickness=
|bashprotect=
|cutprotect=
|enviprotect=
|warmth=
|coverage=
|covers1=
|covers2=
|covers3=
|description=
|flag1=
|flag2=
|flag3=
}}

== Notes ==

== Changes ==

{{footer/clothing}}
[[Category:body]]

[/code][/spoiler]
Enemy[spoiler][code]
{{enemydescription
{{Row/Enemies1
|name=
|monsterId=
|glyph=
|color=
|hitpoints=
|species=
|size=
|material=
|difficulty=
|aggression=
|speed=
|meleesk=
|meleedamage=
|cutdamage=
|dodgesk=
|basharmor=
|cutarmor=
|dropchance=
|flag1=
|flag2=
|flag3=
|flag4=
|flag5=
|flag6=
|flag7=
|flag8=
|flag9=
|flag10=
|flag11=
|flag12=
|morale=
|ondeath=
|description=
}}
==Notes==

{{Enemies}}
[[Category:Zombies]]
[/code][/spoiler]
Explosive[spoiler][code]
{{Template:Row/Items1
{{Tool
|name=
|id=
|glyph=
|color=
|volume=
|weight=
|bash=
|cut=
|tohit=
|rarity=
|price=
|mat1=
|mat2=
|func=
|startammo=
|maxammo=
|ammotype=
|drainturns=
|revert_to=
|use_action=
|description=
|description_on=
}}

== Notes ==

{{footer/explosives}}
[[Category:Explosives]]
[[Category:electronics]]

[/code][/spoiler]
Firearm[spoiler][code]
{{Row/Firearms1
{{Firearm
|name=
|id=
|glyph=
|color=
|volume=
|weight=
|bash=
|cut=
|tohit=
|rarity=
|price=
|mat1=
|mat2=
|func=
|skill=
|ammotype=
|damage=
|accuracy=
|recoil=
|burst=
|reloadtime=
|clip=
|durability=
|image=
|description=
}}

== Notes ==

{{ranged}}
[[Category:Handguns]]

[/code][/spoiler]
Food[spoiler][code]
{{Food
|name=
|id=
|glyph=
|color=
|volume=
|weight=
|bash=
|cut=
|tohit=
|rarity=
|price=
|mat1=
|mat2=
|func=
|charges=
|container=
|quench=
|nutrition=
|spoils=
|stim=
|health=
|addiction=
|addictiontype=
|fun=
}}

{{Template:Liquids}}
[[Category:Drinks]]
[/code][/spoiler]
Gunmod[spoiler][code]
{{Template:Row/GunMods1
{{Gunmod
|name=
|id=
|glyph=
|color=
|volume=
|weight=
|bash=
|cut=
|tohit=
|rarity=
|price=
|mat1=
|mat2=
|func=
|accmod=
|dammod=
|noisemod=
|clipmod=
|recoilmod=
|burstmod=
|ammotype=
|permitpistol=
|permitsmg=
|permitrifle=
|permitshotgun=
|description=
|image=
}}

== Notes ==

{{footer/gunmods}}
[[Category:Gun mods]]

[/code][/spoiler] Map[spoiler][code] {{Map {{row/Map1 |name= |glyph= |color= |seecost= |extras= }}

[[Category:Map Tiles]]

[/code][/spoiler]
Melee weapon[spoiler][code]
{{Template:Row/Items1
{{Melee weapon
|name=
|id=
|glyph=
|color=
|volume=
|weight=
|bash=
|cut=
|tohit=
|rarity=
|price=
|mat1=
|mat2=
|func=
|description=
|flag1=
|technique1=
}}

== Notes ==

{{footer/melee}}
[[Category:Melee Weapons]]

[/code][/spoiler]
Tool[spoiler][code]
{{Tool
|name=
|id=
|glyph=
|color=
|volume=
|weight=
|bash=
|cut=
|tohit=
|rarity=
|price=
|mat1=
|mat2=
|startammo=
|maxammo=
|ammotype=
|func=
|drainturns=
|revert_to=
|use_action=
|description=
|description_on=
}}

== Notes ==

== Changes ==
{{Tools}}
[[Category:Tools]]
[/code][/spoiler]
Vehicle part {{Vehicle_part |id= |name= |description= |weight= |tohit= |min_bigness= |max_bigness= |color= |glyph=<nowiki></nowiki> |mat1= |mat2= |technique1= |volume= |bash= |cut= |price= |use_action= |flag1= |v_name= |glyph_installed= |color_installed= |glyph_broken= |color_broken= |damage_modifier= |durability= |range= |power= |epower= |fuel_type= |size= |item= |difficulty= |location= |folded_volume= |vflag1= }} [[Category:Components]] [[Category:Vehicle parts]] {{Vehicle}}

Wow. Thats a big help thanks. Can this get pinned please? This is great reference material. I don’t even bother to look at the wiki any more… but if I do, and I see somethign that needs work, or just feel something should be added, I’ll give it a spin. Thanks mattamue.

Great job on the recent changes! You are one of the most active people on the Wiki and we need more people like you!

+1