Template:Infobox/Gear: Difference between revisions

From Inkipedia, the Splatoon wiki
m (Converting to Template: namespace)
m (introduced is misleading to when it was first revealed rather then when it got added which is what is stated in the parameter.)
 
(46 intermediate revisions by 11 users not shown)
Line 1: Line 1:
<includeonly><templatestyles src="Infobox/common.css" />
<includeonly><templatestyles src="Infobox/common.css" />
<div class="infobox {{#switch:{{ToGameCode|{{{game}}}}}|S2=s2|S3=s3|#default=s}}">
<div class="infobox {{GameShortened|{{{game}}}|Default=}}">
<div class="infobox-title">{{{name}}}</div>
<div class="infobox-title">{{{name|{{PAGENAME}}}}}</div>
<div class="infobox-image">[[File:{{ToGameCode|{{{game}}}}}_Gear_{{{category}}}_{{{name}}}.png|128x128px|{{{name}}}]]</div>
<div class="infobox-image">[[File:{{#if:{{{image|}}}|{{{image|}}}|{{GameShortened|{{{game}}}}}_Gear_{{{category}}}_{{{name|{{PAGENAME}}}}}.png}}|128x128px|{{{name|{{PAGENAME}}}}}]]</div>
<div class="infobox-table">
<div class="infobox-table">
<div class="infobox-label">Category</div><div>{{GearCategory|{{{category}}}}}</div>
<div class="infobox-label">Category</div><div>{{GearCategory|{{{category}}}}}</div>{{
<div class="infobox-label">Brand</div><div>{{Brand|{{ToGameCode|{{{game}}}}}|{{{brand}}}}}</div>
#if:{{{brand|}}}|<div class="infobox-label">Brand</div><div>{{Brand|{{GameShortened|{{{game}}}}}|{{{brand}}}}}</div>}}{{
<div class="infobox-label">Ability</div><div>{{Ability|{{ToGameCode|{{{game}}}}}|{{{ability}}}}}</div>{{
#if:{{{ability|}}}|<div class="infobox-label">Ability</div><div>{{Ability|{{GameShortened|{{{game}}}}}|{{{ability}}}}}</div>}}{{
#if:{{{cost|}}}|<div class="infobox-label">Cost</div><div>{{Cost|{{ToGameCode|{{{game}}}}}|{{{cost}}}}}</div>}}{{
#if:{{{cost|}}}|<div class="infobox-label">Cost</div><div>{{Cost|{{GameShortened|{{{game}}}}}|{{{cost}}}|{{{currency}}}}}</div>}}{{
#if:{{{splatnet2|}}}|<div class="infobox-label">SplatNet 2</div><div>{{Cost|S2|{{{splatnet2}}}}}</div>}}{{
#if:{{{splatnet2|}}}|<div class="infobox-label">SplatNet 2</div><div>{{Cost|S2|{{{splatnet2}}}}}</div>}}{{
#if:{{{splatnet3|}}}|<div class="infobox-label">SplatNet 3</div><div>{{Cost|S3|{{{splatnet3}}}}}</div>}}{{
#if:{{{adjustable|}}}|<div class="infobox-label">Adjustable</div><div>Yes</div>}}{{
#if:{{{availability|}}}|<div class="infobox-label">Availability</div><div>{{Availability|{{{availability}}}|game={{{game|S}}}}}</div>}}{{
#if:{{{availability|}}}|<div class="infobox-label">Availability</div><div>{{Availability|{{{availability}}}|game={{{game|S}}}}}</div>}}{{
#if:{{{amiibo|}}}|<div class="infobox-label">amiibo</div><div>{{#switch:{{{amiibo}}}
#if:{{{amiibo|}}}|{{Infobox/Gear/amiibo|amiibo={{{amiibo}}}|game={{{game|}}}|amiiboext={{{amiiboext|png}}} }}
|Callie          = {{amiibo|Callie}}
}} {{
|Marie          = {{amiibo|Marie}}
#if:{{{stars|}}}
|Inkling Boy    = {{amiibo|Inkling Boy}}
|<div class="infobox-label">{{#switch:{{{game|}}}
|Inkling Girl    = {{amiibo|Inkling Girl}}
|Splatoon|Splatoon 2 = Star count
|Inkling Squid  = {{amiibo|Inkling Squid}}
|Splatoon 3|#default = Star power
|Inkling Boy 2  = {{amiibo|Inkling Boy (Splatoon 2)}}
}}</div><div>{{Stars|{{{stars|}}}|total={{#switch:{{{game|}}}
|Inkling Girl 2  = {{amiibo|Inkling Girl (Splatoon 2)}}
|Splatoon|Splatoon 2 = 3
|Inkling Squid 2 = {{amiibo|Inkling Squid (Splatoon 2)}}
|Splatoon 3|#default = 5
|Pearl          = {{amiibo|Pearl}}
}}}}</div>}}{{
|Marina          = {{amiibo|Marina}}
#if:{{{introduced|}}}|<div class="infobox-label">Added in</div><div>{{Availability|{{{introduced}}}}}</div>}}
|Octoling Boy    = {{amiibo|Octoling Boy}}
</div>
|Octoling Girl  = {{amiibo|Octoling Girl}}
</div>{{#ifeq:{{{suppress category}}}
|Octoling Octopus= {{amiibo|Octoling Octopus}}
|true
|#default       = [[amiibo|{{{amiibo}}}]]
|
}}{{#if:{{{amiibo2|}}}|<br>{{#switch:{{{amiibo2}}}
|[[Category:{{{game}}} gear]]
|Callie          = {{amiibo|Callie}}
[[Category:{{{game}}} {{lc:{{{category}}}}}]]
|Marie          = {{amiibo|Marie}}
{{#if:{{{brand|}}}|[[Category:{{{brand}}} gear]]}}
|Inkling Boy    = {{amiibo|Inkling Boy}}
{{#if:{{{ability|}}}|[[Category:{{{category}}} with {{{ability}}}]]}}
|Inkling Girl    = {{amiibo|Inkling Girl}}
{{#if:{{{stars|}}}|[[Category:{{{game}}} {{{stars|}}}-star gear]]|[[Category:{{{game}}} gear with random star power]]}}
|Inkling Squid  = {{amiibo|Inkling Squid}}
}}</includeonly><noinclude>__NOTOC__ __NOEDITSECTION__
|Inkling Boy 2  = {{amiibo|Inkling Boy (Splatoon 2)}}
Displays an infobox for a [[gear]] item.
|Inkling Girl 2  = {{amiibo|Inkling Girl (Splatoon 2)}}
|Inkling Squid 2 = {{amiibo|Inkling Squid (Splatoon 2)}}
|Pearl          = {{amiibo|Pearl}}
|Marina          = {{amiibo|Marina}}
|Octoling Boy    = {{amiibo|Octoling Boy}}
|Octoling Girl  = {{amiibo|Octoling Girl}}
|Octoling Octopus= {{amiibo|Octoling Octopus}}
|#default        = [[amiibo|{{{amiibo}}}]]
}}}}</div>}}
<div class="infobox-label">Rarity</div><div>{{Rarity|{{{rarity}}}}}</div>
</div>
</div></includeonly><noinclude>__NOTOC__ __NOEDITSECTION__
Displays an infobox for a [[Gear]] item.


=== Parameters ===
=== Parameters ===
{|
{|
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>game</code>|| ||The game the [[Gear]] item belongs to. Must be one of the following:
|<code>game</code>|| ||The game the [[gear]] item belongs to. Must be one of the following:
*Splatoon
*Splatoon
*Splatoon 2
*Splatoon 2
Line 59: Line 48:
*Shoes
*Shoes
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>brand</code>|| ||The English name of the [[Brand]] the item is made by.
|<code>brand</code>|| ||The English name of the [[gear brand]] the item is made by.
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>rarity</code>|| ||The item's rarity. Must be 1, 2, or 3.
|<code>stars</code>||Optional||The item's starting [[star power]].
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>name</code>||Optional||The English name of the item. If absent, the page name will be used.
|<code>name</code>||Optional||The English name of the item. If absent, the page name will be used.
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>ability</code>||Optional.||The primary [[Ability]] the item will have when purchased in shops.
|<code>ability</code>||Optional.||The item's default primary [[gear ability]].
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>amiibo</code>||Optional.||The [[amiibo]] that unlocks the item. Must be one of the following:
|<code>amiibo</code>||Optional.||The [[amiibo]] that unlocks the item. Only list the base amiibo if the item can also be unlocked by the amiibo's recolor(s) or its future counterparts. Must be one of the following:
*{{amiibo|Callie|icononly}} Callie
*{{amiibo|Callie|icononly}} Callie
*{{amiibo|Inkling Boy|icononly}} Inkling Boy
*{{amiibo|Inkling (Yellow)|icononly}} Inkling (Yellow)
*{{amiibo|Inkling Boy 2|icononly}} Inkling Boy 2
*{{amiibo|Inkling Boy|icononly}} Inkling Boy (Splatoon)
*{{amiibo|Inkling Girl|icononly}} Inkling Girl
*{{amiibo|Inkling Boy 2|icononly}} Inkling Boy (Splatoon 2)
*{{amiibo|Inkling Girl 2|icononly}} Inkling Girl 2
*{{amiibo|Inkling Girl|icononly}} Inkling Girl (Splatoon)
*{{amiibo|Inkling Squid|icononly}} Inkling Squid
*{{amiibo|Inkling Girl 2|icononly}} Inkling Girl (Splatoon 2)
*{{amiibo|Inkling Squid 2|icononly}} Inkling Squid 2
*{{amiibo|Inkling Squid|icononly}} Inkling Squid (Splatoon)
*{{amiibo|Inkling Squid 2|icononly}} Inkling Squid (Splatoon 2)
*{{amiibo|Marie|icononly}} Marie
*{{amiibo|Marie|icononly}} Marie
*{{amiibo|Marina|icononly}} Marina
*{{amiibo|Marina|icononly}} Marina
*{{amiibo|Pearl|icononly}} Pearl
*{{amiibo|Octoling (Blue)|icononly}} Octoling (Blue)
*{{amiibo|Octoling Boy|icononly}} Octoling Boy
*{{amiibo|Octoling Boy|icononly}} Octoling Boy
*{{amiibo|Octoling Girl|icononly}} Octoling Girl
*{{amiibo|Octoling Girl|icononly}} Octoling Girl
*{{amiibo|Octoling Octopus|icononly}} Octoling Octopus
*{{amiibo|Octoling Octopus|icononly}} Octoling Octopus
*{{amiibo|Pearl|icononly}} Pearl
*{{amiibo|Smallfry|icononly}} Smallfry
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>amiibo2</code>||Optional.||When two amiibos are available, the name of the second amiibo using the same values as above.
|<code>adjustable</code>||Optional.||Adds a "yes" listing. For noting which pieces of S3 gear may be [[Gear#Adjusting gear|adjusted]].
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>availability</code>||Optional.||The special means by which the item can be obtained. Must be one of the following:
|<code>availability</code>||Optional.||The special means by which the item can be obtained. Must be one of the following:
*[[File:S2 Icon Octo Canyon.png|20px|link=]] Octo Canyon
*[[File:S2 Icon Octo Canyon.png|20px|link=]] Octo Canyon
*[[File:Octo Expansion Icon.png|20px|link=]] Octo Expansion
*[[File:OE Icon Deepsea Metro.png|20px|link=]] Octo Expansion
*[[File:S Icon Octo Valley.png|20px|link=]] Octo Valley
*[[File:S Icon Octo Valley.png|20px|link=]] Octo Valley
*[[File:S3 Icon Return of the Mammalians.png|20px|link=]] Return of the Mammalians
*[[File:S2 Icon Grizzco.png|20px|link=]] Salmon Run
*[[File:S2 Icon Grizzco.png|20px|link=]] Salmon Run
*[[File:Splatfest Logo.png|20px|link=]] [[File:S2 Splatfest Logo.svg|20px|link=]] Splatfest
*[[File:S3 Icon Mr Grizz.png|20px|link=]] Salmon Run Next Wave
*[[File:Splatfest Logo.png|20px|link=]] [[File:S2 Splatfest Logo.svg|20px|link=]] [[File:S3 Splatfest Logo.svg|20px|link=]] Splatfest
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>cost</code>||Optional.||The numeric amount of [[Cash]] required to purchase the item from shops.
|<code>cost</code>||Optional.||The numeric amount of [[Cash]] required to purchase the item from shops.
|- style="vertical-align: top;"
|<code>currency</code>||Optional.||The type of currency required to purchase the item from shops per [[Template:Cost]]. If undefined, defaults to [[Cash]].
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>splatnet2</code>||Optional.||The numeric amount of [[Cash]] required to purchase the item from [[SplatNet 2]].
|<code>splatnet2</code>||Optional.||The numeric amount of [[Cash]] required to purchase the item from [[SplatNet 2]].
|- style="vertical-align: top;"
|<code>splatnet3</code>||Optional.||The numeric amount of [[Cash]] required to purchase the item from [[SplatNet 3]].
|- style="vertical-align: top;"
|<code>introduced</code>||Optional||The [[version]] in which the piece of gear was added to the game.
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>suppress category</code>||Optional.||Categories are prevented from being added by this template. Must be <code>true</code>.
|<code>suppress category</code>||Optional.||Categories are prevented from being added by this template. Must be <code>true</code>.
Line 100: Line 100:
=== Example ===
=== Example ===


{{InfoboxGear
{{Infobox/Gear
|game=Splatoon 2
|game         = Splatoon 3
|category=Headgear
|category     = Headgear
|name=FishFry Visor
|name         = FishFry Visor
|brand=Firefin
|brand       = Firefin
|ability=Special Charge Up
|ability     = Special Charge Up
|cost=500
|cost         = 500
|splatnet2=1,234
|splatnet2   = 1,234
|availability=Splatfest
|availability = Splatfest
|amiibo=Inkling Boy
|amiibo       = Inkling Boy
|amiibo2=Inkling Boy 2
|amiibo2     = Inkling Boy 2
|rarity=1
|stars        = 3
|suppress category=true
|introduced  = {{Ver|S3|1.1.0}}
}}
}}
<pre style="border: none; background: none;"><nowiki>{{InfoboxGear
<pre style="border: none; background: none;"><nowiki>{{Infobox/Gear
|game=Splatoon 2
|game         = Splatoon 3
|category=Headgear
|category     = Headgear
|name=FishFry Visor
|name         = FishFry Visor
|brand=Firefin
|brand       = Firefin
|ability=Special Charge Up
|ability     = Special Charge Up
|cost=500
|cost         = 500
|splatnet2=1,234
|splatnet2   = 1,234
|availability=Splatfest
|availability = Splatfest
|amiibo=Inkling Boy
|amiibo       = Inkling Boy
|amiibo2=Inkling Boy 2
|amiibo2     = Inkling Boy 2
|rarity=1
|stars        = 3
|introduced  = {{Ver|S3|1.1.0}}
}}</nowiki></pre>
}}</nowiki></pre>
{{clr}}
{{clr}}[[Category:Infobox templates]]
</noinclude>
</noinclude>

Latest revision as of 12:33, 11 March 2024

Displays an infobox for a gear item.

Parameters

game The game the gear item belongs to. Must be one of the following:
  • Splatoon
  • Splatoon 2
  • Splatoon 3
category The item's category. Must be one of the following:
  • Clothing
  • Headgear
  • Shoes
brand The English name of the gear brand the item is made by.
stars Optional The item's starting star power.
name Optional The English name of the item. If absent, the page name will be used.
ability Optional. The item's default primary gear ability.
amiibo Optional. The amiibo that unlocks the item. Only list the base amiibo if the item can also be unlocked by the amiibo's recolor(s) or its future counterparts. Must be one of the following:
  • Callie Callie
  • Inkling (Yellow) Inkling (Yellow)
  • Inkling Boy Inkling Boy (Splatoon)
  • Inkling Boy 2 Inkling Boy (Splatoon 2)
  • Inkling Girl Inkling Girl (Splatoon)
  • Inkling Girl 2 Inkling Girl (Splatoon 2)
  • Inkling Squid Inkling Squid (Splatoon)
  • Inkling Squid 2 Inkling Squid (Splatoon 2)
  • Marie Marie
  • Marina Marina
  • Pearl Pearl
  • Octoling (Blue) Octoling (Blue)
  • Octoling Boy Octoling Boy
  • Octoling Girl Octoling Girl
  • Octoling Octopus Octoling Octopus
  • Smallfry Smallfry
adjustable Optional. Adds a "yes" listing. For noting which pieces of S3 gear may be adjusted.
availability Optional. The special means by which the item can be obtained. Must be one of the following:
  • S2 Icon Octo Canyon.png Octo Canyon
  • OE Icon Deepsea Metro.png Octo Expansion
  • S Icon Octo Valley.png Octo Valley
  • S3 Icon Return of the Mammalians.png Return of the Mammalians
  • S2 Icon Grizzco.png Salmon Run
  • S3 Icon Mr Grizz.png Salmon Run Next Wave
  • Splatfest Logo.png S2 Splatfest Logo.svg S3 Splatfest Logo.svg Splatfest
cost Optional. The numeric amount of Cash required to purchase the item from shops.
currency Optional. The type of currency required to purchase the item from shops per Template:Cost. If undefined, defaults to Cash.
splatnet2 Optional. The numeric amount of Cash required to purchase the item from SplatNet 2.
splatnet3 Optional. The numeric amount of Cash required to purchase the item from SplatNet 3.
introduced Optional The version in which the piece of gear was added to the game.
suppress category Optional. Categories are prevented from being added by this template. Must be true.

Example

FishFry Visor
FishFry Visor
Category
Brand
Ability
Cost
Cash 500
SplatNet 2
Cash 1,234
Availability
amiibo
Star power
Star-full.pngStar-full.pngStar-full.pngStar-empty.pngStar-empty.png
Added in
{{Infobox/Gear
|game         = Splatoon 3
|category     = Headgear
|name         = FishFry Visor
|brand        = Firefin
|ability      = Special Charge Up
|cost         = 500
|splatnet2    = 1,234
|availability = Splatfest
|amiibo       = Inkling Boy
|amiibo2      = Inkling Boy 2
|stars        = 3
|introduced   = {{Ver|S3|1.1.0}}
}}