Template:Infobox/Gear: Difference between revisions
From Inkipedia, the Splatoon wiki
Yoshifan52 (talk | contribs) (Added param upon request) |
Trig Jegman (talk | contribs) mNo edit summary |
||
Line 2: | Line 2: | ||
<div class="infobox {{GameShortened|{{{game}}}|Default=}}"> | <div class="infobox {{GameShortened|{{{game}}}|Default=}}"> | ||
<div class="infobox-title">{{{name|{{PAGENAME}}}}}</div> | <div class="infobox-title">{{{name|{{PAGENAME}}}}}</div> | ||
<div class="infobox-image">[[File:{{GameShortened|{{{game}}}}}_Gear_{{{category}}}_{{{name|{{PAGENAME}}}}}.png|128x128px|{{{name|{{PAGENAME}}}}}]]</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> | ||
Line 16: | Line 16: | ||
#if:{{{stars|}}} | #if:{{{stars|}}} | ||
|<div class="infobox-label">{{#switch:{{{game|}}} | |<div class="infobox-label">{{#switch:{{{game|}}} | ||
|Splatoon | |Splatoon|Splatoon 2 = Star count | ||
|Splatoon 2 = Star count | |Splatoon 3|#default = Star power | ||
|Splatoon 3 | |||
|#default | |||
}}</div><div>{{Stars|{{{stars|}}}|total={{#switch:{{{game|}}} | }}</div><div>{{Stars|{{{stars|}}}|total={{#switch:{{{game|}}} | ||
|Splatoon | |Splatoon|Splatoon 2 = 3 | ||
|Splatoon 2 = 3 | |Splatoon 3|#default = 5 | ||
|Splatoon 3 = 5 | |||
}}}}</div> | }}}}</div> | ||
}} </div> | }} </div> |
Revision as of 14:58, 1 September 2023
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: |
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. |
suppress category |
Optional. | Categories are prevented from being added by this template. Must be true .
|
Example
{{InfoboxGear |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 }}