Template:Navbox weapons: Difference between revisions
m (Update navbox ID) |
m (Remove sandbox elements) |
||
(One intermediate revision by one other user not shown) | |||
Line 15: | Line 15: | ||
==Usage== | ==Usage== | ||
*{{tll|Navbox weapons | *{{tll|Navbox weapons|firearms}} | ||
{{Navbox weapons | {{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 = | | #default = {{Error|translation}} | ||
}} | }} | ||
</syntaxhighlight>}} | </syntaxhighlight>}} |
Revision as of 02:59, 20 March 2024
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
{{Navbox weapons|firearms}}
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.