Difference between revisions of "Template:Item name"

From Team Fortress Wiki
Jump to: navigation, search
m (documentation/description)
(rewritten to remove unnecessary line breaks and spaces in output.)
Line 1: Line 1:
<includeonly>
+
<includeonly><!--  
<!-- 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|}}}}} |
 
        {{#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>
+
// 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

Deprecates Template:hat_name and Template:weapon_name.