Template:Infobox weapon: Difference between revisions

From TF2 Classic Wiki
Jump to navigation Jump to search
(localization support)
(Changed images back to 200px)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="infobox" width=200px
{| class="infobox" width=320px
|+
|+
! colspan="2" class="infobox-title" | {{{title|{{BASEPAGENAME}}}}}
! colspan="2" class="infobox-title" | {{{title|{{ROOTPAGENAME}}}}}
{{#ifexist: File:Backpack {{{image|{{BASEPAGENAME}}}}}.png |
{{#ifexist: File:Backpack {{{image|{{ROOTPAGENAME}}}}}.png |
{{!}}-
{{!}}-
{{!}} colspan="2" style="padding:10px" class="infobox-image" {{!}}
{{!}} colspan="2" style="padding:10px" class="infobox-image" {{!}}
Line 9: Line 9:
{{#ifexist: File:killicon_{{lc:{{{kill-icon|{{BASEPAGENAME}}}}}}}.png |
{{#ifexist: File:killicon_{{lc:{{{kill-icon|{{BASEPAGENAME}}}}}}}.png |
{{!}}+
{{!}}+
! colspan="2" {{!}} Kill Icons
! colspan="2" {{!}} {{lang
|fr=Icône de Frag
|Kill Icons}}
{{!}}-
{{!}}-
{{!}} colspan="2" class="killicon" {{!}} [[File:killicon_{{lc:{{{kill-icon|{{BASEPAGENAME}}}}}}}.png|center|frameless]]
{{!}} colspan="2" class="killicon" {{!}} [[File:killicon_{{lc:{{{kill-icon|{{BASEPAGENAME}}}}}}}.png|center|frameless]]
Line 30: Line 32:
{{#if: {{{kill-icon-6|}}}|
{{#if: {{{kill-icon-6|}}}|
{{!}}-
{{!}}-
{{!}} colspan="2" class="killicon" {{!}} [[File:killicon_{{{{kill-icon-6}}}.png|center|frameless]]
{{!}} colspan="2" class="killicon" {{!}} [[File:killicon_{{{kill-icon-6}}}.png|center|frameless]]
}}
}}
{{#if: {{{kill-icon-7|}}}|
{{#if: {{{kill-icon-7|}}}|
Line 67: Line 69:
{{#if: {{{ammo-loaded|}}} |
{{#if: {{{ammo-loaded|}}} |
{{!}}+
{{!}}+
! colspan="2" {{!}} Ammo
! colspan="2" {{!}} {{lang
|fr=Munitions
|Ammo}}
{{!}}-
{{!}}-
{{!}} {{lang
{{!}} {{lang
Line 91: Line 95:
|Loadout Stats}}
|Loadout Stats}}
{{!}}-
{{!}}-
{{!}} colspan="2" class="loadout-tooltip-container" {{!}} {{Loadout name|{{#if: {{{loadout-propername|}}}|The}} {{{loadout-name|{{{title|{{PAGENAME}}}}}}}}|{{#if: {{{loadout-2|}}}|{{{used-by}}}}}}}{{Loadout type|{{{loadout-kind|{{PAGENAME}}}}}}}{{#if: {{{loadout-attributes|}}}|{{{loadout-attributes}}}}}
{{!}} colspan="2" class="loadout-tooltip-container" {{!}} {{Loadout name|{{#if: {{{loadout-propername|}}}|The}} {{{loadout-name|{{{title|{{BASEPAGENAME}}}}}}}}|{{#if: {{{loadout-2|}}}|{{{used-by}}}}}}}{{Loadout type|{{{loadout-kind|{{{title|{{BASEPAGENAME}}}}}}}}}}{{#if: {{{loadout-attributes|}}}|{{{loadout-attributes}}}}}
{{#if: {{{loadout-2|}}} |
{{#if: {{{loadout-2|}}} |
{{!}}-
{{!}}-
{{!}} colspan="2" class="loadout-tooltip-container" {{!}} {{Loadout name|{{#if: {{{loadout-propername|}}}|The}} {{{loadout-name|{{{title|{{PAGENAME}}}}}}}}|{{{used-by-2}}}}}{{Loadout type|{{{loadout-kind|{{PAGENAME}}}}}}}{{#if: {{{loadout-2-attributes|}}}|{{{loadout-2-attributes}}}}}
{{!}} colspan="2" class="loadout-tooltip-container" {{!}} {{Loadout name|{{#if: {{{loadout-propername|}}}|The}} {{{loadout-name|{{{title|{{BASEPAGENAME}}}}}}}}|{{{used-by-2}}}}}{{Loadout type|{{{loadout-kind|{{{title|{{BASEPAGENAME}}}}}}}}}}{{#if: {{{loadout-2-attributes|}}}|{{{loadout-2-attributes}}}}}
}}
}}
{{#if: {{{loadout-3|}}} |
{{#if: {{{loadout-3|}}} |
{{!}}-
{{!}}-
{{!}} colspan="2" class="loadout-tooltip-container" {{!}} {{Loadout name|{{#if: {{{loadout-propername|}}}|The}} {{{loadout-name|{{{title|{{PAGENAME}}}}}}}}|{{{used-by-3}}}}}{{Loadout type|{{{loadout-kind|{{PAGENAME}}}}}}}{{#if: {{{loadout-3-attributes|}}}|{{{loadout-3-attributes}}}}}
{{!}} colspan="2" class="loadout-tooltip-container" {{!}} {{Loadout name|{{#if: {{{loadout-propername|}}}|The}} {{{loadout-name|{{{title|{{BASEPAGENAME}}}}}}}}|{{{used-by-3}}}}}{{Loadout type|{{{loadout-kind|{{{title|{{BASEPAGENAME}}}}}}}}}}{{#if: {{{loadout-3-attributes|}}}|{{{loadout-3-attributes}}}}}
}}
}}
{{#if: {{{loadout-4|}}} |
{{#if: {{{loadout-4|}}} |
{{!}}-
{{!}}-
{{!}} colspan="2" class="loadout-tooltip-container" {{!}} {{Loadout name|{{#if: {{{loadout-propername|}}}|The}} {{{loadout-name|{{{title|{{PAGENAME}}}}}}}}|{{{used-by-4}}}}}{{Loadout type|{{{loadout-kind|{{PAGENAME}}}}}}}{{#if: {{{loadout-4-attributes|}}}|{{{loadout-4-attributes}}}}}
{{!}} colspan="2" class="loadout-tooltip-container" {{!}} {{Loadout name|{{#if: {{{loadout-propername|}}}|The}} {{{loadout-name|{{{title|{{BASEPAGENAME}}}}}}}}|{{{used-by-4}}}}}{{Loadout type|{{{loadout-kind|{{{title|{{BASEPAGENAME}}}}}}}}}}{{#if: {{{loadout-4-attributes|}}}|{{{loadout-4-attributes}}}}}
}}
}}
}}
}}

Latest revision as of 01:33, 3 September 2023

Infobox weapon


Basic Information



Example usage:

{{Infobox weapon
| title=Shotgun <!-- optional, uses the article's name! -->
| image=Shotgun <!-- optional, attempts to use the article's name! -->
| kill-icon=shotgun <!-- optional, attempts to get kill icon using the article's name! see [[Category:Kill icons]] for all kill icons -->
| kill-icon-2=taunt_pyro <!-- optional, to use whenever the weapon has multiple kill icons. can have up to 10 kill icons. -->
| used-by=Engineer <!-- must be a class name -->
| used-by-2=Soldier <!-- optional -->
| used-by-3=Pyro
| used-by-4=Heavy
| slot=Primary <!-- must be a weapon slot type -->
| slot-2=Secondary <!-- optional -->
| ammo-loaded=6
| ammo-carried=32
| reload-type=Single
| loadout=yes <!-- use to make the loadout shows up -->
| loadout-kind=Shotgun <!-- optional, uses the article's name by default. use whenever the weapon "type" is different ingame! -->
| loadout-propername=yes <!-- optional, to use whenever the weapon is shown as "The Shotgun" ingame! -->
| loadout-attributes= <!-- the attributes must match the ingame attributes -->
{{Loadout positive|+200% damage}}
{{Loadout negative|-50% fire speed}}
<br> <!-- new line -->
{{Loadout neutral|Sometimes, you just have to do things yourself.}}
| loadout-2=yes <!-- completely optional, only usable with multiple "used-by" tags -->
| loadout-2-attributes={{Loadout neutral|My shotgun disagrees with your will to live, maggot!}}
| loadout-3=yes
| loadout-4=yes
| loadout-4-attributes={{Loadout neutral|Heavy will make do with this.}}
}}