Jump to content

Template:ItemType: Difference between revisions

From Deadlock Wiki
No edit summary
Added size changing
Line 1: Line 1:
<includeonly>
<includeonly>
{{#switch: {{{1|Weapon}}}
{{#switch: {{{1|Weapon}}}
| Weapon = [[File:Weapon Icon.png|25px|link={{#invoke:Dictionary|translate|Weapon Item|lang_code_override=en}}]] <b>[[Weapon Item|{{#invoke:Dictionary|translate|Weapon Item}}]]</b> {{{2|}}}
| Weapon = [[File:Weapon Icon.png|{{{size|25px}}}|link={{#invoke:Dictionary|translate|Weapon Item|lang_code_override=en}}]] <b>[[Weapon Item|{{#invoke:Dictionary|translate|Weapon Item}}]]</b> {{{2|}}}
| Armor = [[File:Vitality Icon.png|25px|link={{#invoke:Dictionary|translate|Armor Item|lang_code_override=en}}]] <b>[[Vitality Item|{{#invoke:Dictionary|translate|Armor Item}}]]</b> {{{2|}}}
| Armor = [[File:Vitality Icon.png|{{{size|25px}}}|link={{#invoke:Dictionary|translate|Armor Item|lang_code_override=en}}]] <b>[[Vitality Item|{{#invoke:Dictionary|translate|Armor Item}}]]</b> {{{2|}}}
| Tech = [[File:Spirit icon.png|25px|link={{#invoke:Dictionary|translate|Tech Item|lang_code_override=en}}]] <b>[[Spirit Item|{{#invoke:Dictionary|translate|Tech Item}}]]</b> {{{2|}}}
| Tech = [[File:Spirit icon.png|{{{size|25px}}}|link={{#invoke:Dictionary|translate|Tech Item|lang_code_override=en}}]] <b>[[Spirit Item|{{#invoke:Dictionary|translate|Tech Item}}]]</b> {{{2|}}}
| #default = [[File:Weapon Icon.png|25px|link={{#invoke:Dictionary|translate|Weapon Item|lang_code_override=en}}]] <b>[[Weapon Item|{{#invoke:Dictionary|translate|Weapon Item}}]]</b> {{{2|}}}
| #default = [[File:Weapon Icon.png|{{{size|25px}}}|link={{#invoke:Dictionary|translate|Weapon Item|lang_code_override=en}}]] <b>[[Weapon Item|{{#invoke:Dictionary|translate|Weapon Item}}]]</b> {{{2|}}}
}}
}}
</includeonly>
</includeonly>

Revision as of 22:33, 27 February 2025


Template documentation [view] [edit] [history] [purge]

Usage

{{ItemType|<Type>|<Additional Text>}}
{{ItemType|Tech}}

Spirit Item


{{ItemType|Armor}}

Vitality Item


{{ItemType|Weapon}}

Weapon Item


{{ItemType|Weapon|size=40px}}

Weapon Item


{{ItemType|Weapon|{{ItemIcon|Rapid Rounds}}}}

Weapon Item Rapid Rounds


Parameters

p1
Item type (required).
p2
Custom text (optional).
size
Custom icon size (optional).