Template:GearList/Item: Difference between revisions

From Inkipedia, the Splatoon wiki
mNo edit summary
m (changed link; page moved)
 
(27 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>|-
<includeonly>{{GearList/ItemEx
| style="text-align: center; text-align: left; vertical-align: top; position: relative; width: 72px; height: 60px;" | {{#ifeq: "{{{tinted|}}}" | "true" | <span style="position: absolute; left: -1px; top: -5px;">[[File:Boy-splatter-right.png|80px|link=|Color changes during gameplay]]</span> | }}<span style="position: absolute; left: 6px; top: 0px;">[[File:Gear_{{{type}}}_{{{name}}}.png|60px|link={{{name}}}|{{{name}}}]]</span>
|game        = {{{game|}}}
| [[{{{name}}}]] {{#ifeq: "{{{nameea|}}}" | "" | | {{NA}}<br />{{{nameea}}} {{AUEU}} }}
|category    = {{{category|}}}
| {{Brand|{{{brand}}}|size=30px}}
|name        = {{{name|}}}
| {{#switch: "{{{unlock}}}"
|euoc        = {{{euoc|}}}
| "cash"      = {{Cost|{{{cost}}}|30px}}
|brand        = {{{brand|}}}
| "amiibo"    = [[File:Brand_amiibo.png|30px|link=amiibo]] [[amiibo|{{{amiibo}}}]]
|amiibo      = {{{amiibo|}}}
| "octovalley"  = [[File:Octarian_Icon.png|30px|link=Octo Valley|Octo Valley]] [[Octo Valley]]
|cost        = {{{cost|}}}
| "splatfest" = [[File:Splatfest_Logo.png|30px|link=Splatfest|Splatfest]] [[Splatfest]]
|cost_type    = {{{cost_type|}}}
| #default    = style="text-align: center;" {{!}} ---
|availability = {{{availability|}}}
|ability      = {{{ability|}}}
|stars        = {{{stars|}}}
|introduced  = {{{introduced|}}}
|custom_file  = {{{custom_file|}}}
|filter      = {{Logical|OR
|{{#if:{{{filter_brand|}}}|{{#ifeq:{{{filter_brand}}}|{{{brand}}}|false|true}}|false}}
|{{#if:{{{filter_ability|}}}|{{#ifeq:{{{filter_ability}}}|{{{ability}}}|false|true}}|false}}
}}
}}
| {{Ability|{{{ability}}}|size=30px}}
}}</includeonly><noinclude>{{GearList/Item/doc}}</noinclude>
| style="text-align: center; width: 50px;" | {{stars|{{{rarity}}}|15px}}</includeonly><noinclude>
== Parameters ==
All parameters are required unless otherwise noted.
* ''name'' - The item's name. If ''nameea'' is specified, this field represents the North American name.
* ''nameea'' - Optional. The European/Australian name if different from the North American.
* ''type'' - The item's type. Must be one of "Headgear", "Clothing" or "Shoes".
* ''brand'' - The name of the item's brand.
* ''unlock'' - The method of unlocking the item. Must be "none", "cash", "amiibo", "octovalley" or "splatfest".
:* ''cost'' - Only required if ''unlock'' = "cash". The number of coins required for purchase.
:* ''amiibo'' - Only required if ''unlock'' = "amiibo". The name of the amiibo that unlocks the item.
* ''ability'' - The name of the item's main Ability.
* ''rarity'' - The number of stars the item has. Must be 1, 2 or 3.
* ''tinted'' - Optional. If present, must be either "true" or "false". Set to true if the item's color changes during gameplay.
 
== Example Usage ==
 
Markup:
<nowiki>{{GearListItem
|type    = Clothing
|name    = Baseball Jersey
|brand  = Firefin
|unlock  = cash
|cost    = 10000
|ability = Special Charge Up
|rarity  = 3
}}</nowiki>
 
Output:
{|
{{User:GuyPerfect/GearListItem
|type    = Clothing
|name    = Baseball Jersey
|brand  = Firefin
|unlock  = cash
|cost    = 10000
|ability = Special Charge Up
|rarity  = 3
}}
|}
 
</noinclude>

Latest revision as of 20:48, 10 May 2024

Displays an item in a Gear list. Intended to be used in conjunction with GearList/Header and GearList/Footer.

This template is a proxy that pre-evaluates parameters for GearList/ItemEx

Parameters

game Optional. The game the item belongs to. The default value is Splatoon. Must be one of the following:
  • Splatoon
  • Splatoon 2
category The English name of the item's category. Must be one of the following:
  • Headgear
  • Clothing
  • Shoes
name The English name of the item.
euoc Optional The Europe/Oceania English name of the item, if different from name.
custom_file Optional The name part of the item in its associated file, if different from name.
brand The English name of the item's gear brand.
stars
rarity
Optional. The star power of the item. Must be 0, 1, 2 or 3 (matching each game's values). Only one parameter name may be used: stars is preferred, but rarity is kept for existing lists.
ability Optional. The primary gear ability the item will have when purchased in shops.
amiibo Optional. The amiibo that unlocks the item. Must be one of the following:
  • Inkling Boy Inkling Boy
  • Inkling Girl Inkling Girl
  • Inkling Squid Inkling Squid
  • Callie Callie
  • Marie Marie
  • Inkling Boy 2 Inkling Boy 2
  • Inkling Girl 2 Inkling Girl 2
  • Inkling Squid 2 Inkling Squid 2
  • Octoling Boy Octoling Boy
  • Octoling Girl Octoling Girl
  • Octoling Octopus Octoling Octopus
availability Optional. The special means by which the item can be obtained. Must be one of the following:
  • Octo Canyon
  • Octo Valley
  • Salmon Run
  • Splatfest
  • Octo Expansion
cost Optional. The numeric amount of currency required to purchase the item from shops.
cost_type Optional. The type of currency for cost. Default value is cash. Must be one of the following:
addedin Optional The version in which the item was added to the game.
filter_ability Optional. No output will be produced if ability and filter_ability don't match.
filter_brand Optional. No output will be produced if brand and filter_brand don't match.

Example

Markup

{{GearList/Header|Example List|game=Splatoon 2|collapsed=false}}
{{GearList/Item|game=Splatoon 2|category=Headgear
  |name=Armor Helmet Replica|brand=Cuttlegear|amiibo=Marie|ability=Tenacity|stars=3}}
{{GearList/Item|game=Splatoon 2|category=Headgear
  |name=FishFry Visor|brand=Firefin|cost=500|ability=Special Charge Up|stars=1}}
{{GearList/Item|game=Splatoon 2|category=Headgear
  |name=Headlamp Helmet|brand=Grizzco|availability=Salmon Run|stars=3}}
{{GearList/Footer}}

Output

Example List