Difference between revisions of "Template:Item infobox"

From Team Fortress Wiki
Jump to: navigation, search
m (*facepalm*)
(added code to hide Giftability for Untradable items; removed doc template, as template documentation was deleted 3 months ago)
Line 668: Line 668:
 
     // they aren't tradable/giftable unless they are renamed.
 
     // they aren't tradable/giftable unless they are renamed.
 
     -->
 
     -->
  | {{#ifeq:{{lc:{{{type|}}}}}|taunt|{{ns:0}}<!-- NULL: can't trade taunts -->
+
  | {{#ifeq:{{lc:{{{type|}}}}}|taunt|{{ns:0}}<!-- NULL: can't trade or gift taunts -->
 
   | <tr><!--  
 
   | <tr><!--  
  
Line 707: Line 707:
 
  }}</td>
 
  }}</td>
 
   </tr>
 
   </tr>
  }}{{#ifeq:{{lc:{{{type|}}}}}|taunt|{{ns:0}}<!-- NULL: can't gift taunts either -->
+
  {{#ifeq:{{lc:{{{trade|}}}}}|no|{{ns:0}}<!-- NULL: can't gift untradable items -->
 
  | <tr><!--  
 
  | <tr><!--  
  
Line 742: Line 742:
 
  | no  = {{common string|no}}
 
  | no  = {{common string|no}}
 
  | #default = {{{gift|}}}
 
  | #default = {{{gift|}}}
  }}</td></tr>}}<!--  
+
  }}</td></tr>}}}}<!--  
  
 
   // 'craft'
 
   // 'craft'
Line 1,472: Line 1,472:
 
| contents = This template '''MUST NOT''' be used on User pages. Please use [[Template:User item infobox]] instead.
 
| contents = This template '''MUST NOT''' be used on User pages. Please use [[Template:User item infobox]] instead.
 
}}
 
}}
{{documentation}}
 
 
[[Category:Infobox templates|Item infobox]]
 
[[Category:Infobox templates|Item infobox]]

Revision as of 02:19, 16 April 2017