Template:Infobox/Gear: Difference between revisions
From Inkipedia, the Splatoon wiki
GuyPerfect (talk | contribs) m (GuyPerfect moved page User:GuyPerfect/InfoboxGear to Template:InfoboxGear without leaving a redirect: Deploying new infobox) |
GuyPerfect (talk | contribs) m (Converting to Template: namespace) |
||
Line 1: | Line 1: | ||
<includeonly><templatestyles src=" | <includeonly><templatestyles src="Infobox/common.css" /> | ||
<div class="infobox {{#switch:{{ | <div class="infobox {{#switch:{{ToGameCode|{{{game}}}}}|S2=s2|S3=s3|#default=s}}"> | ||
<div class="infobox-title">{{{name}}}</div> | <div class="infobox-title">{{{name}}}</div> | ||
<div class="infobox-image">[[File:{{ | <div class="infobox-image">[[File:{{ToGameCode|{{{game}}}}}_Gear_{{{category}}}_{{{name}}}.png|128x128px|{{{name}}}]]</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|{{ | <div class="infobox-label">Brand</div><div>{{Brand|{{ToGameCode|{{{game}}}}}|{{{brand}}}}}</div> | ||
<div class="infobox-label">Ability</div><div>{{Ability|{{ | <div class="infobox-label">Ability</div><div>{{Ability|{{ToGameCode|{{{game}}}}}|{{{ability}}}}}</div>{{ | ||
#if:{{{cost|}}}|<div class="infobox-label">Cost</div><div>{{Cost|{{ | #if:{{{cost|}}}|<div class="infobox-label">Cost</div><div>{{Cost|{{ToGameCode|{{{game}}}}}|{{{cost}}}}}</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:{{{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>}}{{ | ||
Line 44: | Line 44: | ||
</div> | </div> | ||
</div></includeonly><noinclude>__NOTOC__ __NOEDITSECTION__ | </div></includeonly><noinclude>__NOTOC__ __NOEDITSECTION__ | ||
Displays an infobox for a [[Gear]] item | Displays an infobox for a [[Gear]] item. | ||
=== Parameters === | === Parameters === | ||
Line 98: | Line 98: | ||
|} | |} | ||
=== | === Example === | ||
{{InfoboxGear | |||
{{ | |||
|game=Splatoon 2 | |game=Splatoon 2 | ||
|category=Headgear | |category=Headgear | ||
Line 114: | Line 113: | ||
|rarity=1 | |rarity=1 | ||
}} | }} | ||
<pre style="border: none; background: none;"><nowiki>{{ | <pre style="border: none; background: none;"><nowiki>{{InfoboxGear | ||
|game=Splatoon 2 | |game=Splatoon 2 | ||
|category=Headgear | |category=Headgear |
Revision as of 00:40, 6 September 2022
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 Brand the item is made by. | |
rarity |
The item's rarity. Must be 1, 2, or 3. | |
name |
Optional | The English name of the item. If absent, the page name will be used. |
ability |
Optional. | The primary Ability the item will have when purchased in shops. |
amiibo |
Optional. | The amiibo that unlocks the item. Must be one of the following: |
amiibo2 |
Optional. | When two amiibos are available, the name of the second amiibo using the same values as above. |
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. |
splatnet2 |
Optional. | The numeric amount of Cash required to purchase the item from SplatNet 2. |
suppress category |
Optional. | Categories are prevented from being added by this template. Must be true .
|
Example
{{InfoboxGear |game=Splatoon 2 |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 |rarity=1 }}