Template:Navbox weapons: Difference between revisions

From PZwiki
mNo edit summary
m (Remove sandbox elements)
(26 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<noinclude>{{languages}}</noinclude>{{Navbox/Core
<noinclude>
|collapsed = {{{collapsed|}}}
{{Documentation/sandbox|doc=
|size = wide
This template should be transcluded at the bottom of all {{ll|weapons}} pages.
|title = [[:Category:Weapons|<span style="color: white;">{{Translation|Weapons}}</span>]] <small><nowiki>[</nowiki>[[Steam#'I Will Back Up My Save' branch|<span style="color: white;">iwbums</span>]]]</small>
 
|template = Navbox weapons
==Parameters==
|group1 = {{Translation|Axe}}
The parameters are based on the type of article. The usable parameters are;<br>
|list1 = {{T|Hand Axe}} {{T|Stone Axe}} {{T|Axe}} • {{T|Wood Axe}}
*<code>axe</code>
|group2 = {{Translation|Long Blunt}}
*<code>blade</code>
|list2 = {{T|Acoustic Guitar}} • {{T|Badminton Racket}} • {{T|Barbell}} • {{T|Baseball Bat}} • {{T|Broom}} • {{T|Canoe Paddle}} • {{T|Canoe Paddle - Double-bladed}} {{T|Chainsaw}} • {{T|Crowbar}} {{T|Electric Bass}} {{T|Electric Guitar}} • {{T|Fishing Rod}} • {{T|Fishing Rod (crafted)}} • {{T|Fishing Rod|Fishing Rod without Line}} • {{T|Garden Hoe}} • {{T|Golf Club}} • {{T|Hockey Stick}} • {{T|Ice Hockey Stick}} • {{T|Keytar}} {{T|LaCrosse Stick}} • {{T|Leaf Rake}} • {{T|Nightstick}} • {{T|Pickaxe}} {{T|Plank}} • {{T|Pool Cue}} • {{T|Rake}} {{T|Saxophone}} • {{T|Shovel}} • {{T|Sledgehammer}} • {{T|Snow Shovel}} • {{T|Spiked Baseball Bat}} • {{T|Spiked Plank}} • {{T|Tennis Racket}} {{T|Trumpet}}
*<code>blunt</code>
|group3 = {{Translation|Short Blunt}}
*<code>spears</code>
|list3 =  {{T|Ball-peen Hammer}} • {{T|Banjo}} {{T|Chair Leg}} • {{T|Club Hammer}} • {{T|Dumbbell}} • {{T|Drumstick}} • {{T|Flute}} {{T|Frying Pan}} • {{T|Griddle Pan}} • {{T|Hammer}} {{T|Lead Pipe}} • {{T|Metal Bar}} • {{T|Metal Pipe}} • {{T|Plunger}} • {{T|Pipe Wrench}} • {{T|Pickaxe Handle}} • {{T|Rolling Pin}} • {{T|Saucepan}} • {{T|Spiked Pickaxe Handle}} • {{T|Stone Hammer}} • {{T|Table Leg}} • {{T|Violin}} • {{T|Wooden Mallet}} • {{T|Wrench}}
*<code>explosives</code>
|group4 = {{Translation|Long Blade}}
*<code>firearms</code>
|list4 = {{T|Machete}} • {{T|Katana}}
*<code>other</code><br>
|group5 = {{Translation|Short Blade}}
The parameters are not case-sensitive, but lowercase is recommended. Leaving parameters blank will result in all sub boxes remaining closed.
|list5 = {{T|Butter Knife}} • {{T|Bread Knife}} • {{T|Fork}} {{T|Hand Fork}} • {{T|Hand Scythe}} • {{T|Hunting Knife}} {{T|Ice Pick}} • {{T|Letter Opener}} • {{T|Kitchen Knife}} {{T|Meat Cleaver}} • {{T|Scalpel}} • {{T|Scissors}} • {{T|Screwdriver}} • {{T|Smashed Bottle}} • {{T|Spoon}} • {{T|Stake}} • {{T|Stone Knife}}
 
|group6 = {{Translation|Spear}}
==Usage==
|list6 = {{T|Umbrella|Closed Umbrella}} • {{T|Crafted Spear}} • {{T|Garden Fork}} • {{T|Spear with Bread Knife}} • {{T|Spear with Butter Knife}} • {{T|Spear with Fork}} • {{T|Spear with Hand Fork}} • {{T|Spear with Hunting Knife}} • {{T|Spear with Ice Pick}} • {{T|Spear with Knife}} • {{T|Spear with Letter Opener}} • {{T|Spear with Machete}} • {{T|Spear with Scalpel}} • {{T|Spear with Scissors}} • {{T|Spear with Screwdriver}} • {{T|Spear with Spoon}}
*{{tll|Navbox weapons|firearms}}
|group7 = {{Translation|Firearm}}
{{Navbox weapons|firearms}}
|list7 = {{T|D-E Pistol}} • {{T|Double Barrel Shotgun}} • {{T|JS-2000 Shotgun|JS-2000 Shotgun}} • {{T|M14 Single Shot Assault Rifle}} • {{T|M16 Assault Rifle}} • {{T|M1911 Pistol}} • {{T|M36 Revolver}} {{T|M625 Revolver}} • {{T|M9 Pistol|M9 Pistol}} • {{T|Magnum}} {{T|MSR700 Rifle|MSR700 Rifle}} • {{T|MSR788 Rifle|MSR788 Rifle}} • {{T|Sawed-off Double Barrel Shotgun}} • {{T|Sawed-off JS-2000 Shotgun|Sawed-off JS-2000 Shotgun}}
 
|group8 = {{Translation|Ammo}}
{{Translation guide|<syntaxhighlight lang="html">
|list8 = {{T|.223 Round}} • {{T|.308 Round}} • {{T|.38 Special Round}} {{T|.44 Magnum Round}} • {{T|.45 Auto Round}} • {{T|5.56mm Round}} • {{T|9mm Round}} • {{T|Shotgun Shells}}
{{#switch: {{{1|}}}
|group9 = {{Translation|Weapon mods}}
<!-- Title -->
|list9 = {{T|.223 Magazine}} • {{T|.308 Magazine}} • {{T|.44 Magazine}} • {{T|.45 Auto Magazine}} • {{T|5.56mm Magazine}} • {{T|9mm Magazine}} • {{T|Ammo Straps}} • {{T|Choke Tube Improved}} • {{T|Choke Tube Full}} • {{T|Fiberglass Stock}} • {{T|Iron Sights}} • {{T|Laser}} • {{T|Recoil Pad}} • {{T|Red Dot}} • {{T|Sling}} • {{T|x2 Scope}} • {{T|x4 Scope}} • {{T|x8 Scope}}
| weapons = Weapons
|group10 = {{Translation|Throwable}}
| firearms = Firearms
|list10 = {{T|Aerosol Bomb}} • {{T|Aerosol Bomb|Aerosol Bomb with Sensor}} • {{T|Aerosol Bomb|Aerosol Bomb with Timer}} {{T|Flame Trap}} • {{T|Flame Trap|Flame Trap with Sensor}} • {{T|Flame Trap|Flame Trap with Timer}} {{T|Molotov Cocktail}} • {{T|Noise Maker}} • {{T|Noise Maker|Noise Maker with Sensor}} {{T|Noise Maker|Noise Maker with Timer}} • {{T|Pipe Bomb}} • {{T|Pipe Bomb|Pipe Bomb with Sensor}} • {{T|Pipe Bomb|Pipe Bomb with Timer}} • {{T|Aerosol Bomb|Remote Aerosol Bomb}} • {{T|Flame Trap|Remote Flame Trap}} • {{T|Noise Maker|Remote Noise Maker}} • {{T|Pipe Bomb|Remote Pipe Bomb}} • {{T|Smoke Bomb|Remote Smoke Bomb}} • {{T|Smoke Bomb}} • {{T|Smoke Bomb|Smoke Bomb with Sensor}} • {{T|Smoke Bomb|Smoke Bomb with Timer}}
| blade_weapons = Blade weapons
|group11 = {{Translation|Other}}
| blunt_weapons = Blunt weapons
|list11 = {{T|Unarmed combat|Bare Hands}} • {{T|Pen|Blue Pen}} • {{T|Pen|Pen}} • {{T|Pencil}} • {{T|Pen|Red Pen}}
| axe = Axe
}}<noinclude><br>{{Documentation}}[[Category:Navbox]]</noinclude>
| spears = Spears
| explosives = Explosives
| other = Other
<!-- Groups -->
| ammo = Ammo
| weapon_parts = Weapon parts
| short_blade = Short blade
| long_blade = Long blade
| short_blunt = Short_blunt
| long_blunt = Long_blunt
| #default = {{Error|translation}}
}}
</syntaxhighlight>}}
 
==See also==
{{Navbox see also}}
 
}}
{{ll|Category:Navbox}}
</noinclude><includeonly>{{Navbox
| title = {{ll|:Category:Weapons|{{tt|name=Navbox weapons|default=Weapons|arg1=weapons}}}}
| collapsed = false
| content =
  {{Navbox
  | title = {{ll|:Category:Axes|{{tt|name=Navbox weapons|default=Axe|arg1=axe}}}}
  | collapsed = {{#ifeq:{{lc:{{{1|}}}}}|axe|false|true}}
  | content =
    {{Navbox/row
    | group = {{ll|:Category:Axes|{{tt|name=Navbox weapons|default=Axe|arg1=axe}}}}
    | list = {{ll|Hand Axe}} • {{ll|Stone Axe}} • {{ll|Axe}} • {{ll|Wood Axe}} • {{ll|Pick Axe}}
    }}
  | id = navbox_axe
  }}
  {{Navbox
  | title = {{ll|:Category:Melee weapons|{{tt|name=Navbox weapons|default=Blade weapons|arg1=blade_weapons}}}}
  | collapsed = {{#ifeq:{{lc:{{{1|}}}}}|blade|false|true}}
  | content =
    {{Navbox/row
    | group = {{ll|:Category:Short blade weapons|{{tt|name=Navbox weapons|default=Short blade|arg1=short_blade}}}}
    | list = {{ll|Butter Knife}} • {{ll|Bread Knife}} • {{ll|Fork}} • {{ll|Hand Fork}} • {{ll|Hand Scythe}} • {{ll|Hunting Knife}} • {{ll|Ice Pick}} • {{ll|Letter Opener}} • {{ll|Kitchen Knife}} • {{ll|Meat Cleaver}} • {{ll|Scalpel}} • {{ll|Scissors}} • {{ll|Screwdriver}} • {{ll|Smashed Bottle}} {{ll|Spoon}} {{ll|Stake}} • {{ll|Stone Knife}}
    }}
    {{Navbox/row
    | group = {{ll|:Category:Long blade weapons|{{tt|name=Navbox weapons|default=Long blade|arg1=long_blade}}}}
    | list = {{ll|Machete}} • {{ll|Katana}}
    }}
  | id = navbox_blade
  }}
  {{Navbox
  | title = {{ll|:Category:Melee weapons|{{tt|name=Navbox weapons|default=Blunt weapons|arg1=blunt_weapons}}}}
  | collapsed = {{#ifeq:{{lc:{{{1|}}}}}|blunt|false|true}}
  | content =
    {{Navbox/row
    | group = {{ll|:Category:Short blunt weapons|{{tt|name=Navbox weapons|default=Short blunt|arg1=short_blunt}}}}
    | list = {{ll|Ball-peen Hammer}} {{ll|Banjo}} • {{ll|Chair Leg}} • {{ll|Club Hammer}} • {{ll|Dumbbell}} • {{ll|Drumstick}} • {{ll|Flute}} • {{ll|Frying Pan}} • {{ll|Griddle Pan}} • {{ll|Hammer}} • {{ll|Lead Pipe}} • {{ll|Metal Bar}} • {{ll|Metal Pipe}} • {{ll|Nightstick}} • {{ll|Plunger}} • {{ll|Pipe Wrench}} • {{ll|Pickaxe Handle}} {{ll|Rolling Pin}} {{ll|Saucepan}} • {{ll|Spiked Pickaxe Handle}} • {{ll|Stone Hammer}} • {{ll|Table Leg}} • {{ll|Violin}} • {{ll|Wooden Mallet}} • {{ll|Wrench}}
    }}
    {{Navbox/row
    | group = {{ll|:Category:Long blunt weapons|{{tt|name=Navbox weapons|default=Long blunt|arg1=long_blunt}}}}
    | list = {{ll|Acoustic Guitar}} • {{ll|Badminton Racket}} • {{ll|Barbell}} • {{ll|Baseball Bat}} {{ll|Broom}} {{ll|Canoe Paddle}} • {{ll|Canoe Paddle - Double-bladed}} • {{ll|Chainsaw}}{{Sup|Future}} • {{ll|Crowbar}} • {{ll|Electric Bass}} • {{ll|Electric Guitar}} • {{ll|Fishing Rod}} {{ll|Fishing Rod (crafted)}} {{ll|Garden Hoe}} • {{ll|Golf Club}} • {{ll|Hockey Stick}} • {{ll|Ice Hockey Stick}} • {{ll|Keytar}} • {{ll|Lacrosse_Stick|Lacrosse Stick}} • {{ll|Leaf Rake}} • {{ll|Plank}} • {{ll|Pool Cue}} • {{ll|Rake}} • {{ll|Saxophone}} • {{ll|Shovel}} • {{ll|Sledgehammer}} • {{ll|Snow Shovel}} • {{ll|Spiked Baseball Bat}} • {{ll|Spiked Plank}} • {{ll|Tennis Racket}} • {{ll|Trumpet}}
    }}
  | id = navbox_blunt
  }}
  {{Navbox
  | title = {{ll|:Category:Spears|{{tt|name=Navbox weapons|default=Spears|arg1=spears}}}}
  | collapsed = {{#ifeq:{{lc:{{{1|}}}}}|spears|false|true}}
  | content =
    {{Navbox/row
    | group = {{ll|:Category:Spears|{{tt|name=Navbox weapons|default=Spears|arg1=spears}}}}
    | list = {{ll|Umbrella|Closed Umbrella}} • {{ll|Crafted Spear}} • {{ll|Garden Fork}} • {{ll|Spear with Bread Knife}} • {{ll|Spear with Butter Knife}} • {{ll|Spear with Fork}} • {{ll|Spear with Hand Fork}} • {{ll|Spear with Hunting Knife}} • {{ll|Spear with Ice Pick}} • {{ll|Spear with Knife}} • {{ll|Spear with Letter Opener}} • {{ll|Spear with Machete}} • {{ll|Spear with Scalpel}} • {{ll|Spear with Scissors}} • {{ll|Spear with Screwdriver}} • {{ll|Spear with Spoon}} • {{ll|Wooden Spear}}
    }}
  | id = navbox_spears
  }}
  {{Navbox
  | title = {{ll|:Category:Firearms|{{tt|name=Navbox weapons|default=Firearms|arg1=firearms}}}}
  | collapsed = {{#ifeq:{{lc:{{{1|}}}}}|firearms|false|true}}
  | content =
    {{Navbox/row
    | group = {{ll|:Category:Firearms|{{tt|name=Navbox weapons|default=Firearms|arg1=firearms}}}}
    | list = {{ll|D-E Pistol}} • {{ll|Double Barrel Shotgun}} • {{ll|JS-2000 Shotgun}} • {{ll|M9 Pistol}} • {{ll|M14 Rifle}} • {{ll|M16 Assault Rifle}} • {{ll|M36 Revolver}} • {{ll|M625 Revolver}} • {{ll|M1911 Pistol}} • {{ll|Magnum}} • {{ll|MSR700 Rifle}} • {{ll|MSR788 Rifle}} • {{ll|Sawed-off Double Barrel Shotgun}} • {{ll|Sawed-off JS-2000 Shotgun}}
    }}
    {{Navbox/row
    | group = {{ll|:Category:Ammo|{{tt|name=Navbox weapons|default=Ammo|arg1=ammo}}}}
    | list = {{ll|.223 Round}} • {{ll|.308 Round}} • {{ll|.38 Special Round}} • {{ll|.44 Magnum Round}} • {{ll|.45 Auto Round}} • {{ll|5.56mm Round}} • {{ll|9mm Round}} • {{ll|Shotgun Shells}} • {{ll|Magazine (firearms)|D-E Magazine}} • {{ll|Magazine (firearms)|M9 Magazine}} • {{ll|Magazine (firearms)|M14 Magazine}} • {{ll|Magazine (firearms)|M16 Magazine}} • {{ll|Magazine (firearms)|M1911 Auto Magazine}} • {{ll|Magazine (firearms)|MSR700 Magazine}} • {{ll|Magazine (firearms)|MSR788 Magazine}}
    }}
    {{Navbox/row
    | group = {{ll|Weapon parts|{{tt|name=Navbox weapons|default=Weapon parts|arg1=weapon_parts}}}}
    | list = {{ll|Ammo Straps}} • {{ll|Bayonet}}{{Sup|Future}} • {{ll|Choke Tube - Full}} • {{ll|Choke Tube - Improved}} • {{ll|Gun Light}}{{Sup|Future}} • {{ll|Fiberglass Stock}} • {{ll|Iron Sight}} • {{ll|Laser}} • {{ll|Recoil Pad}} • {{ll|Red Dot}} • {{ll|Sling}} • {{ll|x2 Scope}} • {{ll|x4 Scope}} • {{ll|x8 Scope}}
    }}
  | id = navbox_firearms
  }}
  {{Navbox
  | title = {{ll|:Category:Explosives|{{tt|name=Navbox weapons|default=Explosives|arg1=explosives}}}}
  | collapsed = {{#ifeq:{{lc:{{{1|}}}}}|explosives|false|true}}
  | content =
    {{Navbox/row
    | group = {{ll|:Category:Explosives|{{tt|name=Navbox weapons|default=Explosives|arg1=explosives}}}}
    | list = {{ll|Aerosol Bomb}} • {{ll|Aerosol Bomb|Aerosol Bomb with Sensor}} • {{ll|Aerosol Bomb|Aerosol Bomb with Timer}} • {{ll|Fire Bomb}} • {{ll|Fire Bomb|Fire Bomb with Sensor}} • {{ll|Fire Bomb|Fire Bomb with Timer}} • {{ll|Molotov Cocktail}} • {{ll|Noise Maker}} • {{ll|Noise Maker|Noise Maker with Sensor}} • {{ll|Noise Maker|Noise Maker with Timer}} • {{ll|Pipe Bomb}} • {{ll|Pipe Bomb|Pipe Bomb with Sensor}} • {{ll|Pipe Bomb|Pipe Bomb with Timer}} • {{ll|Aerosol Bomb|Remote Aerosol Bomb}} • {{ll|Fire Bomb|Remote Fire Bomb}} • {{ll|Noise Maker|Remote Noise Maker}} • {{ll|Pipe Bomb|Remote Pipe Bomb}} • {{ll|Smoke Bomb|Remote Smoke Bomb}} • {{ll|Smoke Bomb}} • {{ll|Smoke Bomb|Smoke Bomb with Sensor}} • {{ll|Smoke Bomb|Smoke Bomb with Timer}}
    }}
  | id = navbox_explosives
  }}
  {{Navbox
  | title = {{ll|:Category:Melee weapons|{{tt|name=Navbox weapons|default=Other|arg1=other}}}}
  | collapsed = {{#ifeq:{{lc:{{{1|}}}}}|other|false|true}}
  | content =
    {{Navbox/row
    | group = {{ll|:Category:Melee weapons|{{tt|name=Navbox weapons|default=Other|arg1=other}}}}
    | list = {{ll|Bare Hands}} • {{ll|Pen|Blue Pen}} • {{ll|Pen}} • {{ll|Pencil}} • {{ll|Pen|Red Pen}}
    }}
  | id = navbox_other
  }}
| id = navbox_weapons
}}</includeonly>

Revision as of 02:59, 20 March 2024

Notebook.pngTemplate Documentation

This template should be transcluded at the bottom of all weapons pages.

Parameters

The parameters are based on the type of article. The usable parameters are;

  • axe
  • blade
  • blunt
  • spears
  • explosives
  • firearms
  • other

The parameters are not case-sensitive, but lowercase is recommended. Leaving parameters blank will result in all sub boxes remaining closed.

Usage

How to translate

This template is translatable.

Template code

Paste the following code into the <includeonly> tag of the translated template and translate the text after each = sign (except for #default =).

{{#switch: {{{1|}}}
<!-- Title -->
| weapons = Weapons
| firearms = Firearms
| blade_weapons = Blade weapons
| blunt_weapons = Blunt weapons
| axe = Axe
| spears = Spears
| explosives = Explosives
| other = Other
<!-- Groups -->
| ammo = Ammo
| weapon_parts = Weapon parts
| short_blade = Short blade
| long_blade = Long blade
| short_blunt = Short_blunt
| long_blunt = Long_blunt
| #default = {{Error|translation}}
}}

Template documentation

Copy the code wrapped in the <noinclude> tag in this template and translate the text after doc = in the {{Documentation}} template.

{{Translation guide}} template should be removed from the translated documentation.

See also

Editors can experiment in this template's sandbox.