Template:GearIntroTextEx: Difference between revisions

From Inkipedia, the Splatoon wiki
(shortened wandercrust tour to be wandercrust)
(Changing the way catalog unlocks are handled: specify the season and level and show the shop price at the same time)
Line 22: Line 22:
  |S3      =[[Salmon Run Next Wave]]}} as the monthly gear or in a Pink Capsule.
  |S3      =[[Salmon Run Next Wave]]}} as the monthly gear or in a Pink Capsule.
|"Splatfest"={{#ifeq:{{{3|}}}|pl|They are|It is}} only available between the announcement and conclusion of a [[Splatfest]], and requires the players to pick a side in the Splatfest.
|"Splatfest"={{#ifeq:{{{3|}}}|pl|They are|It is}} only available between the announcement and conclusion of a [[Splatfest]], and requires the players to pick a side in the Splatfest.
|"Catalog"={{#ifeq:{{{3|}}}|pl|They are|It is}} only available from the [[Catalog]].
|"Catalog"=This parameter value is deprecated, please use the <code>s3_catalog</code> parameter (and set the <code>s3_cost</code> to the shop price) in [[Template:GearIntroText]]. [[Category:Pages that use deprecated template parameters]]
|"Wandercrust"={{#ifeq:{{{3|}}}|pl|They are|It is}} only available from [[Wandercrust]].
|"Wandercrust"={{#ifeq:{{{3|}}}|pl|They are|It is}} only available from [[Wandercrust]].
|""={{#if:{{{price|}}}|{{#ifeq:{{{3|}}}|pl|They|It}} can be purchased from [[{{ShopFromCategory|{{{1|S}}}|{{{2}}}}}]] for {{Cost|{{{1|S}}}|{{{price}}}|cash|link}}{{#if:{{{sn2_price|{{{sn3_price|}}}}}}|&#32;or}}|{{#ifeq:{{{3|}}}|pl|They are|It is}} available as starting gear{{#if:{{{sn2_price|{{{sn3_price|}}}}}}|. {{#ifeq:{{{3|}}}|pl|They|It}} can also be purchased&#32;}}}}{{#if:{{{sn2_price|{{{sn3_price|}}}}}}|&#32;from {{#if:{{{sn2_price|}}}|[[SplatNet 2#Shop|SplatNet 2 Gear Shop]] for {{Cost|S2|{{{sn2_price}}}|cash|link}}}}{{#if:{{{sn3_price|}}}|[[SplatNet 3#Shop|SplatNet 3 Shop]] for {{Cost|S3|{{{sn3_price}}}|cash|link}}}}}}.|#default={{{availability}}}{{#if:{{{sn2_price|}}}|&#32;{{#ifeq:{{{3|}}}|pl|They|It}} can also be purchased from [[SplatNet 2#Shop|SplatNet Gear Shop]] for {{Cost|S2|{{{sn2_price}}}|cash|link}}.}}{{#if:{{{sn3_price|}}}|&#32;{{#ifeq:{{{3|}}}|pl|They|It}} can also be purchased from [[SplatNet 3#Shop|SplatNet 3 Shop]] for {{Cost|S3|{{{sn3_price}}}|cash|link}}.}}}}{{#if:{{{availability|}}}|{{#if:{{{sn2_price|{{{sn3_price|}}}}}}{{{canorder|}}}||&#32;{{#ifeq:{{{3|}}}|pl|They|It}} cannot be ordered{{#switch:{{{1|S}}}
|""={{#if:{{{catalog|}}}|{{#ifeq:{{{3|}}}|pl|They|It}} must first be unlocked through {{#if:{{{cataloglevel|}}}|levelling up the [[{{{catalog}}}]] [[Catalog]] to level {{{cataloglevel}}}|the [[{{{catalog}}}]] [[Catalog]]}}{{#if:{{{price|}}}|, then {{#ifeq:{{{3|}}}|pl|They|It}} can be purchased from [[{{ShopFromCategory|{{{1|S}}}|{{{2}}}}}]] for {{Cost|{{{1|S}}}|{{{price}}}|cash|link}}|{{#if:{{{price|}}}|{{#ifeq:{{{3|}}}|pl|They|It}} can be purchased from [[{{ShopFromCategory|{{{1|S}}}|{{{2}}}}}]] for {{Cost|{{{1|S}}}|{{{price}}}|cash|link}}}}{{#if:{{{sn2_price|{{{sn3_price|}}}}}}|&#32;or}}|{{#ifeq:{{{3|}}}|pl|They are|It is}} available as starting gear{{#if:{{{sn2_price|{{{sn3_price|}}}}}}|. {{#ifeq:{{{3|}}}|pl|They|It}} can also be purchased&#32;}}}}{{#if:{{{sn2_price|{{{sn3_price|}}}}}}|&#32;from {{#if:{{{sn2_price|}}}|[[SplatNet 2#Shop|SplatNet 2 Gear Shop]] for {{Cost|S2|{{{sn2_price}}}|cash|link}}}}{{#if:{{{sn3_price|}}}|[[SplatNet 3#Shop|SplatNet 3 Shop]] for {{Cost|S3|{{{sn3_price}}}|cash|link}}}}}}.|#default={{{availability}}}{{#if:{{{sn2_price|}}}|&#32;{{#ifeq:{{{3|}}}|pl|They|It}} can also be purchased from [[SplatNet 2#Shop|SplatNet Gear Shop]] for {{Cost|S2|{{{sn2_price}}}|cash|link}}.}}{{#if:{{{sn3_price|}}}|&#32;{{#ifeq:{{{3|}}}|pl|They|It}} can also be purchased from [[SplatNet 3#Shop|SplatNet 3 Shop]] for {{Cost|S3|{{{sn3_price}}}|cash|link}}.}}}}{{#if:{{{availability|}}}|{{#if:{{{sn2_price|{{{sn3_price|}}}}}}{{{canorder|}}}||&#32;{{#ifeq:{{{3|}}}|pl|They|It}} cannot be ordered{{#switch:{{{1|S}}}
|S=&#32;through [[Spyke]]
|S=&#32;through [[Spyke]]
|S2=&#32;through [[Murch]]
|S2=&#32;through [[Murch]]
Line 62: Line 62:
*<code>Level</code> - Gotten as a reward for reaching a certain level, specified in <code>level</code>.
*<code>Level</code> - Gotten as a reward for reaching a certain level, specified in <code>level</code>.
*<code>Salmon Run</code> - Gotten from Salmon Run
*<code>Salmon Run</code> - Gotten from Salmon Run
*<code>Catalog</code> - Gotten from a catalog
*<code>Wandercrust Tour</code> - Gotten from Wandercrust Tour
*<code>Wandercrust Tour</code> - Gotten from Wandercrust Tour
*<code>(any other value)</code> - The text provided will be displayed as-is. Unless if <code>canorder</code> is set, the note on not being purchasable from the respective sea urchin character will be added afterwards.
*<code>(any other value)</code> - The text provided will be displayed as-is. Unless if <code>canorder</code> is set, the note on not being purchasable from the respective sea urchin character will be added afterwards.
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>level</code>||Named, optional.||The level requirement for unlocking this gear. Required if <code>availability=Level</code> and ignored otherwise.
|<code>level</code>||Named, optional.||The level requirement for unlocking this gear. Required if <code>availability=Level</code> and ignored otherwise.
|- style="vertical-align: top;"
|<code>catalog</code>||Named, optional.||The season (e.g. "Drizzle Season 2022") whose catalog unlocks this gear.
|- style="vertical-align: top;"
|<code>cataloglevel</code>||Named, optional.||The catalog level that unlocks this gear.
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>amiibo</code>||Named, optional.||The amiibo that grants this piece of gear. Required if <code>availability=amiibo</code> and ignored otherwise.
|<code>amiibo</code>||Named, optional.||The amiibo that grants this piece of gear. Required if <code>availability=amiibo</code> and ignored otherwise.

Revision as of 10:02, 5 December 2022

A chained template, to be used only inside Template:GearIntroText.

Usage

{{GearIntroTextEx|<game>|<category>|<plural>|<brand>|<stars=STARS>|<ability=ABILITY>|<price=PRICE>|<sn2_price=PRICE>|<availability=AVAILABILITY>|<level=LEVEL>|<amiibo=AMIIBO>|<amiibo2=AMIIBO>|<name=NAME>|<euocname=NAME>}}

game Unnamed, required. The game this info is for. Must be S for Splatoon or S2 for Splatoon 2.
category Unnamed, required. The type of gear. Must be one of the following:
  • Headgear
  • Clothing
  • Shoes
plural Unnamed, required. Is the gear singular (e.g. a shirt) or plural (e.g. shoes, glasses, headphones)? Must be one of the following:
  • sg for singular
  • pl for plural
brand Unnamed, required. The gear's brand.
stars Named, optional. The gear's star rating. Must be 1, 2 or 3.
ability Named, optional. The gear's main ability. If excluded (e.g. Grizzco Equipment), the text will indicate this gear does not have a default main ability.
price Named, optional. The gear's price in the shops.
sn2_price Named, optional. The gear's price in Splatoon 2, when purchased through SplatNet Gear Shop.
availability Named, optional. If this gear cannot be obtained by normal means (shops or Spyke / Murch), must specify where is it obtainable from. Can be:
  • 7-Eleven, CoroCoro Comic - Japan-only promotions
  • amiibo - Obtained from an amiibo. Requires amiibo parameter to be set, and enables amiibo2 parameter.
  • Hero Mode - Gotten from Octo Valley or Octo Canyon.
  • Level - Gotten as a reward for reaching a certain level, specified in level.
  • Salmon Run - Gotten from Salmon Run
  • Wandercrust Tour - Gotten from Wandercrust Tour
  • (any other value) - The text provided will be displayed as-is. Unless if canorder is set, the note on not being purchasable from the respective sea urchin character will be added afterwards.
level Named, optional. The level requirement for unlocking this gear. Required if availability=Level and ignored otherwise.
catalog Named, optional. The season (e.g. "Drizzle Season 2022") whose catalog unlocks this gear.
cataloglevel Named, optional. The catalog level that unlocks this gear.
amiibo Named, optional. The amiibo that grants this piece of gear. Required if availability=amiibo and ignored otherwise.
amiibo2 Named, optional. An additional amiibo that grants this piece of gear. Optional if availability=amiibo and ignored otherwise.
mem_sets Named, optional. The number (in letters, e.g. "one") of mem cake sets required to obtain this piece of gear from Iso Padre in Octo Expansion. Required if availability=Mem cake and ignored otherwise.
nogame Named, optional. If present and equal to true, the first sentence will not mention the game name.