Difference between revisions of "Template:Backpack item/Sandbox"

From Team Fortress Wiki
Jump to: navigation, search
(its back!)
 
(added some fallbacks so warpaints display correctly)
Line 11: Line 11:
 
| [[File:{{{custom-icon}}}|90x90px{{#if:{{{file-link|yes}}}||{{!}}link={{{BASEPAGENAME}}}}}]]
 
| [[File:{{{custom-icon}}}|90x90px{{#if:{{{file-link|yes}}}||{{!}}link={{{BASEPAGENAME}}}}}]]
 
|{{#if: {{#if:{{{grade|}}}|{{{wear|}}}}} <!-- If grade AND wear are specified -->
 
|{{#if: {{#if:{{{grade|}}}|{{{wear|}}}}} <!-- If grade AND wear are specified -->
| [[File:Backpack {{{skin}}} {{{item-name}}} {{{wear}}}.png|90x90px{{#if:{{{file-link|yes}}}||{{!}}link={{{item-name|}}}}}]]
+
| {{#if:{{{skin|}}}
 +
  | [[File:Backpack {{{skin}}} {{{item-name}}} {{{wear}}}.png|90x90px{{#if:{{{file-link|yes}}}||{{!}}link={{{item-name|}}}}}]]
 +
  | [[File:Backpack {{{item-name}}} {{{item-kind}}} {{{wear}}}.png|90x90px{{#if:{{{file-link|yes}}}||{{!}}link={{{item-name|}}}}}]]
 +
}}
 
| [[File:Backpack {{{item-name|Unknownweapon}}}.png|90x90px{{#if:{{{file-link|yes}}}||{{!}}link={{{item-name|}}}}}]]
 
| [[File:Backpack {{{item-name|Unknownweapon}}}.png|90x90px{{#if:{{{file-link|yes}}}||{{!}}link={{{item-name|}}}}}]]
 
}}}}</div></center>
 
}}}}</div></center>
Line 506: Line 509:
 
[[Category:Formatting templates|Backpack item]]
 
[[Category:Formatting templates|Backpack item]]
 
[[Category:Image insertion templates|Backpack item]]
 
[[Category:Image insertion templates|Backpack item]]
</noinclude>
 

Revision as of 22:10, 24 October 2021