Template:Infobox/Weapon/StrategyEx: Difference between revisions

From Inkipedia, the Splatoon wiki
(nvm i'm bad at templates)
Tag: Manual revert
(uses flat icon for sub weapons when game is Splatoon 3 (line 16 is copied from line 32 of Template:Infobox/WeaponEx))
 
Line 14: Line 14:
{| style="border-spacing: 4px; text-align: left; width: 100%;"
{| style="border-spacing: 4px; text-align: left; width: 100%;"
{{Infobox/Property|color={{{color}}}|{{color-link|Competitive:Callouts#Weapon naming|black|Abbreviations}}|{{#if:{{{abbreviation|}}}|{{{abbreviation}}}}}}}
{{Infobox/Property|color={{{color}}}|{{color-link|Competitive:Callouts#Weapon naming|black|Abbreviations}}|{{#if:{{{abbreviation|}}}|{{{abbreviation}}}}}}}
{{Infobox/Property|color={{{color}}}|{{color-link|Sub weapon|black|Sub}}|{{#if:{{{sub|}}}|{{Weapon|{{#switch:{{{game|}}}
{{Infobox/Property|color={{{color}}}|{{color-link|Sub weapon|black|Sub}}|{{#if:{{{sub|}}}|{{#ifeq:{{{game|}}}|Splatoon 3|{{Weapon|{{GameShortened|{{{game|}}}}}|Sub|{{{sub}}}|var=Flat}}|{{Weapon|{{GameShortened|{{{game|}}}}}|Sub|{{{sub}}}}}}}}}}}
|Splatoon  = S
|Splatoon 2 = S2
|Splatoon 3 = S3
}}|Sub|{{{sub}}}}}}}}}
{{Infobox/Property|color={{{color}}}|{{color-link|Special weapon|black|Special}}|{{#if:{{{special|}}}|{{Weapon|{{#switch:{{{game|}}}
{{Infobox/Property|color={{{color}}}|{{color-link|Special weapon|black|Special}}|{{#if:{{{special|}}}|{{Weapon|{{#switch:{{{game|}}}
|Splatoon  = S
|Splatoon  = S

Latest revision as of 18:21, 13 March 2024


Displays an infobox for a weapon strategy. This template is a proxy that pre-evaluates parameters for Infobox/Weapon/Strategy.