Template:Infobox weapon: Difference between revisions

From TF2 Classic Wiki
Jump to navigation Jump to search
(fix pagename)
(automatic categories)
Line 29: Line 29:
{{#if: {{{used-by|}}} |
{{#if: {{{used-by|}}} |
{{!}}-
{{!}}-
{{!}} Used by {{!!}} {{{used-by}}}
{{!}} Used by {{!!}} [[{{{used-by}}}]]{{#if: {{{used-by-2|}}} |, [[{{{used-by-2}}}]]}}{{#if: {{{used-by-3|}}} |, [[{{{used-by-3}}}]]}}{{#if: {{{used-by-4|}}} |, [[{{{used-by-4}}}]]}}
}}
}}
{{#if: {{{slot|}}} |
{{#if: {{{slot|}}} |
{{!}}-
{{!}}-
{{!}} Slot {{!!}} {{{slot}}}
{{!}} Slot {{!!}} [[{{{slot}}}]]{{#if: {{{slot-2|}}} |, [[{{{slot-2}}}]]}}
}}
}}
{{#if: {{{ammo-loaded|}}} |
{{#if: {{{ammo-loaded|}}} |
Line 56: Line 56:
}}
}}
|}
|}
<noinclude>
<includeonly>[[Category:Weapons]]
{{#if: {{{used-by|}}} |, [[Category:{{{used-by}}}]]}}
{{#if: {{{used-by-2|}}} |, [[Category:{{{used-by-2}}}]]}}
{{#if: {{{used-by-3|}}} |, [[Category:{{{used-by-3}}}]]}}
{{#if: {{{used-by-4|}}} |, [[Category:{{{used-by-4}}}]]}}
{{#if: {{{slot|}}} |, [[Category:{{{slot}}} weapons]]}}
{{#if: {{{slot-2|}}} |, [[Category:{{{slot-2}}} weapons]]}}</includeonly><noinclude>
Example usage:
Example usage:
<pre>
<pre>
Line 64: Line 70:
| kill-icon=shotgun
| kill-icon=shotgun
| kill-icon-2=taunt_pyro
| kill-icon-2=taunt_pyro
| used-by=[[Engineer]], [[Soldier]], [[Pyro]], [[Heavy]]
| used-by=Engineer
| slot=[[Primary]], [[Secondary]]
| used-by-2=Soldier
| used-by-3=Pyro
| used-by-4=Heavy
| slot=Primary
| slot-2=Secondary
| ammo-loaded=6
| ammo-loaded=6
| ammo-carried=32
| ammo-carried=32

Revision as of 19:17, 30 April 2022

Infobox weapon


Basic Information



Example usage:

{{Infobox weapon
| title=Shotgun
| image=Shotgun
| kill-icon=shotgun
| kill-icon-2=taunt_pyro
| used-by=Engineer
| used-by-2=Soldier
| used-by-3=Pyro
| used-by-4=Heavy
| slot=Primary
| slot-2=Secondary
| ammo-loaded=6
| ammo-carried=32
| reload=Single
}}