Template:Infobox/Gear: Difference between revisions
From Inkipedia, the Splatoon wiki
GuyPerfect (talk | contribs) 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 {{ | <div class="infobox {{GameShortened|{{{game}}}|Default=}}"> | ||
<div class="infobox-title">{{{name}}}</div> | <div class="infobox-title">{{{name|{{PAGENAME}}}}}</div> | ||
<div class="infobox-image">[[File:{{ | <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|{{ | #if:{{{brand|}}}|<div class="infobox-label">Brand</div><div>{{Brand|{{GameShortened|{{{game}}}}}|{{{brand}}}}}</div>}}{{ | ||
<div class="infobox-label">Ability</div><div>{{Ability|{{ | #if:{{{ability|}}}|<div class="infobox-label">Ability</div><div>{{Ability|{{GameShortened|{{{game}}}}}|{{{ability}}}}}</div>}}{{ | ||
#if:{{{cost|}}}|<div class="infobox-label">Cost</div><div>{{Cost|{{ | #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|}}}| | #if:{{{amiibo|}}}|{{Infobox/Gear/amiibo|amiibo={{{amiibo}}}|game={{{game|}}}|amiiboext={{{amiiboext|png}}} }} | ||
| | }} {{ | ||
| | #if:{{{stars|}}} | ||
|<div class="infobox-label">{{#switch:{{{game|}}} | |||
|Splatoon|Splatoon 2 = Star count | |||
| | |Splatoon 3|#default = Star power | ||
| | }}</div><div>{{Stars|{{{stars|}}}|total={{#switch:{{{game|}}} | ||
| | |Splatoon|Splatoon 2 = 3 | ||
| | |Splatoon 3|#default = 5 | ||
}}}}</div>}}{{ | |||
#if:{{{introduced|}}}|<div class="infobox-label">Added in</div><div>{{Availability|{{{introduced}}}}}</div>}} | |||
| | </div> | ||
</div>{{#ifeq:{{{suppress category}}} | |||
| | |true | ||
|#default | | | ||
}}{{#if:{{{ | |[[Category:{{{game}}} gear]] | ||
[[Category:{{{game}}} {{lc:{{{category}}}}}]] | |||
| | {{#if:{{{brand|}}}|[[Category:{{{brand}}} gear]]}} | ||
| | {{#if:{{{ability|}}}|[[Category:{{{category}}} with {{{ability}}}]]}} | ||
{{#if:{{{stars|}}}|[[Category:{{{game}}} {{{stars|}}}-star gear]]|[[Category:{{{game}}} gear with random star power]]}} | |||
}}</includeonly><noinclude>__NOTOC__ __NOEDITSECTION__ | |||
Displays an infobox for a [[gear]] item. | |||
| | |||
| | |||
| | |||
}}} | |||
Displays an infobox for a [[ | |||
=== Parameters === | === Parameters === | ||
{| | {| | ||
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
|<code>game</code>|| ||The game the [[ | |<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 [[ | |<code>brand</code>|| ||The English name of the [[gear brand]] the item is made by. | ||
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
|<code> | |<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 [[ | |<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| | *{{amiibo|Smallfry|icononly}} Smallfry | ||
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
|<code> | |<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: | *[[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 === | ||
{{ | {{Infobox/Gear | ||
|game=Splatoon | |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 | ||
| | |stars = 3 | ||
|suppress category=true | |||
|introduced = {{Ver|S3|1.1.0}} | |||
}} | }} | ||
<pre style="border: none; background: none;"><nowiki>{{ | <pre style="border: none; background: none;"><nowiki>{{Infobox/Gear | ||
|game=Splatoon | |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 | ||
| | |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:
| |
category |
The item's category. Must be one of the following:
| |
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: |
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:
|
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
Category
Brand
Ability
Cost
SplatNet 2
Availability
amiibo
Star power
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}} }}