Template:Navbox weapons: Difference between revisions

From PZwiki
m (Update navbox ID)
m (added error translation to doc)
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>}}

Revision as of 11:13, 19 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

Template:Navbox weapons/sandbox

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.