Difference between revisions of "Template:Item name"
m (documentation/description) |
(rewritten to remove unnecessary line breaks and spaces in output.) |
||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly><!-- |
− | <!-- | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | <noinclude> | + | // Check weapons. |
+ | |||
+ | -->{{#if:{{Item name/weapon|{{{1|}}}|force={{{force|}}}}} | ||
+ | | {{Item name/weapon|{{{1|}}}|force={{{force|}}}}} | ||
+ | | <!-- | ||
+ | |||
+ | // Check hats. | ||
+ | |||
+ | -->{{#if:{{Item name/hat|{{{1|}}}|force={{{force|}}}}} | ||
+ | | {{Item name/hat|{{{1|}}}|force={{{force|}}}}} | ||
+ | | <!-- | ||
+ | |||
+ | // Check other. | ||
+ | |||
+ | -->{{#if:{{Item name/other|{{{1|}}}|force={{{force|}}}}} | ||
+ | | {{Item name/other|{{{1|}}}|force={{{force|}}}}} | ||
+ | | <span class="error small">Error {{tl|hat name}}: "{{{1|}}}" is not a valid item.[[Category:ERROR Item name]]</span> | ||
+ | }} | ||
+ | }} | ||
+ | }}</includeonly><noinclude> | ||
{{translation switching|ar, cs, de, es, fi, fr, hu, it, ja, ko, nl, pl, pt, pt-br, ro, ru, sv, zh-hans, zh-hant}} | {{translation switching|ar, cs, de, es, fi, fr, hu, it, ja, ko, nl, pl, pt, pt-br, ro, ru, sv, zh-hans, zh-hant}} | ||
Revision as of 21:40, 21 December 2010
This template uses translation switching. The correct language will be displayed automatically. Localized versions of this template (e.g. Template:Item name/ru) are not necessary. Add your translations directly to this template by editing it. Supported languages for this template: ar, cs, de, es, fi, fr, hu, it, ja, ko, nl, pl, pt, pt-br, ro, ru, sv, zh-hans, zh-hant (add) |
- Switches the translations of item names names.
{{Item name|scattergun}}
when used on Scattergun/de generates "Schrotflinte".{{Item name|scattergun|force = fi}}
generates "{{Item name|scattergun}}
" on any page.- Translation data is located:
- Template:Item_name/hat (All hat translations)
- Template:Item_name/weapon (All weapon translations)
- Template:Item_name/other (All other translations, such as metal, tools, etc)
Deprecates Template:hat_name and Template:weapon_name.