Template:GearList/Item: Difference between revisions

From Inkipedia, the Splatoon wiki
(Adding second div to make splat appear in above item image instead at top of page... hopefully. XD)
m (Rename "addedin" ➡ "introduced")
(43 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly>|-
<includeonly>{{GearList/ItemEx
| style="text-align: center;" | {{#if: {{{color|}}}|<div style="display: inline-block; position: relative;>}}[[File:Gear_{{{type}}}_{{{name}}}.png|60px]]{{#if: {{{color|}}}|<div style="position: absolute; left: 56px; top: 10px;">[[File:Nav-videos-backsplat.png|x25px|link=|Color changes during gameplay]]</div></div>}}
|game        = {{{game|}}}
| [[{{{name}}}]]
|category    = {{{category|}}}
| {{{{{brand}}}}}
|name        = {{{name|}}}
| {{#ifeq: "{{{unlock}}}" | "none" | style="text-align: center;" {{!}} --- | }}{{#ifeq: "{{{unlock}}}" | "cash" | {{Cost|{{{cost}}}}} | }}{{#ifeq: "{{{unlock}}}" | "amiibo" | [[File:Brand_amiibo.png|30px|link=amiibo|amiibo]] [[amiibo|{{{amiibo}}}]] | }}{{#ifeq: "{{{unlock}}}" | "heromode" | [[File:Octarian_Icon.png|30px|link=Hero Mode|Hero Mode]] [[Hero Mode]] | }}{{#ifeq: "{{{unlock}}}" | "splatfest" | [[File:Splatfest_Logo.png|30px|link=Splatfest|Splatfest]] [[Splatfest]] | }}
|euoc        = {{{euoc|}}}
| {{Ability|{{{ability}}}|size=30px}}
|brand        = {{{brand|}}}
| style="text-align: center;" | {{stars|{{{rarity}}}|15px}}</includeonly><noinclude>
|amiibo      = {{{amiibo|}}}
== Parameters ==
|cost        = {{{cost|}}}
All parameters are required unless otherwise noted.
|cost_type    = {{{cost_type|}}}
* ''name'' - The item's name.
|availability = {{{availability|}}}
* ''color'' - Enter any value if the item's color changes during gameplay.
|ability      = {{{ability|}}}
* ''type'' - The item's type. Must be one of "Headgear", "Clothing" or "Shoes".
|stars        = {{{stars|}}}
* ''brand'' - The name of the item's brand.
|introduced  = {{{introduced|}}}
* ''unlock'' - The method of unlocking the item. Must be "none", "cash", "amiibo", "heromode" or "splatfest".
|custom_file  = {{{custom_file|}}}
:* ''cost'' - Only required if ''unlock'' = "cash". The number of coins required for purchase.
|filter      = {{Logical|OR
:* ''amiibo'' - Only required if ''unlock'' = "amiibo". The name of the amiibo that unlocks the item.
|{{#if:{{{filter_brand|}}}|{{#ifeq:{{{filter_brand}}}|{{{brand}}}|false|true}}|false}}
* ''ability'' - The name of the item's main Ability.
|{{#if:{{{filter_ability|}}}|{{#ifeq:{{{filter_ability}}}|{{{ability}}}|false|true}}|false}}
* ''rarity'' - The number of stars the item has. Must be 1, 2 or 3.
 
== 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
}}
}}
|}
}}</includeonly><noinclude>{{GearList/ItemDoc}}</noinclude>
 
</noinclude>

Revision as of 05:09, 6 November 2023