Difference between revisions of "Template:Item name"

From Team Fortress Wiki
Jump to: navigation, search
m (documentation/description)
(added parameter "list" in accordance with template:Decorated_name for expanded content in Dictionary.)
 
(18 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>
+
{{dictionary/items/{{lc:{{{item|{{{weapon|{{{1|special:error}}}}}}}}}}}|{{#if:{{{lang|{{{force|}}}}}}|lang|null}}={{{lang|{{{force|}}}}}}|list={{{list|}}}}}<noinclude>
<!-- Check Weapons -->
+
{{dictionary/wrapper}}
{{#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|}}}}} |
 
        {{#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]]</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}}
 
 
 
* Switches the translations of item names names.
 
* {{tlx|Item name|scattergun}} when used on [[Scattergun/de]] generates "Schrotflinte".
 
* {{tlx|Item name|scattergun|3=force = fi}} generates "{{tlx|Item name|scattergun|force = fi}}" 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]].
 
 
</noinclude>
 
</noinclude>

Latest revision as of 09:27, 10 January 2024

error ('items') This is a wrapper template for a {{dictionary}} entry. No individual language strings are stored here.