Template:Splatfest: Difference between revisions

From Inkipedia, the Splatoon wiki
m (Adding optional link parameter to customize the link on the icon)
(Added Splatoon 3 support so that the template will link to List of Splatfests in Splatoon 3 if "S3" is specified.)
 
Line 1: Line 1:
<includeonly>[[File:{{{1}}}_Splatfest_Icon_{{{2}}}.png|{{#ifeq:{{{3|}}}|icononly|24|{{{3|24}}}}}px|link={{{link|List of Splatfests in {{#switch:{{{1}}}|S2=Splatoon 2|future game=future game}}}}}]]{{#ifeq:{{{3}}}|icononly||{{#ifeq:{{{4}}}|icononly||&#32;{{{2}}}}}}}</includeonly><noinclude>{{Splatfest/doc}}</noinclude>
<includeonly>[[File:{{{1}}}_Splatfest_Icon_{{{2}}}.png|{{#ifeq:{{{3|}}}|icononly|24|{{{3|24}}}}}px|link={{{link|List of Splatfests in {{#switch:{{{1}}}|S2=Splatoon 2|S3=Splatoon 3}}}}}]]{{#ifeq:{{{3}}}|icononly||{{#ifeq:{{{4}}}|icononly||&#32;{{{2}}}}}}}</includeonly><noinclude>{{Splatfest/doc}}</noinclude>

Latest revision as of 02:36, 17 February 2023

Displays an inline Splatfest team icon next to the Splatfest team's name.

Usage

{{Splatfest|<game>|<name>|<size>|<icononly>}}

Parameters

Parameter Type Status Description
game Unnamed Required The game that the Splatfest team belongs to. Must be one of the following:
  • S2 for Splatoon 2
  • future game code for a future game
name Unnamed Required The English name of the Splatfest team.
  • Logo can be used here to get the Splatfest logo.
size Unnamed Optional The pixel width for the icon. The default size is 24.
icononly Unnamed Optional If present, the text label will be omitted.
link Named Optional If present, sets the link on the image to a custom value

Examples

Markup

* {{Splatfest|S2|Ketchup}}
* {{Splatfest|S2|Ketchup|icononly}}
* {{Splatfest|S2|Ketchup|64|icononly}}
* {{Splatfest|S2|Ketchup|icononly|link=Mayo vs. Ketchup}}
* {{Splatfest|S2|Logo|icononly}}

Output

  • S2 Splatfest Icon Ketchup.png Ketchup
  • S2 Splatfest Icon Ketchup.png
  • S2 Splatfest Icon Ketchup.png
  • S2 Splatfest Icon Ketchup.png
  • S2 Splatfest Icon Logo.png