Template:Navbox weapons: Difference between revisions

From PZwiki
(Deploy new weapons navbox)
m (Remove sandbox elements)
(2 intermediate revisions by 2 users not shown)
Line 15: Line 15:


==Usage==
==Usage==
*{{tll|Navbox weapons/sandbox|firearms}}
*{{tll|Navbox weapons|firearms}}
{{Navbox weapons/sandbox|firearms}}
{{Navbox weapons|firearms}}


{{Translation guide|<syntaxhighlight lang="html">
{{Translation guide|<syntaxhighlight lang="html">
Line 36: Line 36:
| short_blunt = Short_blunt
| short_blunt = Short_blunt
| long_blunt = Long_blunt
| long_blunt = Long_blunt
| #default = [[Category:Incorrect template usage]]
| #default = {{Error|translation}}
}}
}}
</syntaxhighlight>}}
</syntaxhighlight>}}
Line 135: Line 135:
   | id = navbox_other
   | id = navbox_other
   }}
   }}
| id = items
| id = navbox_weapons
}}</includeonly>
}}</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.