Template:GearIntroTextEx: Difference between revisions

From Inkipedia, the Splatoon wiki
(Added support for sn2_price for gear that has custom availability. If sn2_price or canorder are set, do not show the "can't order from Murch/Spyke" text.)
(Undo revision 511008 by Exaskliri (talk) Yoshifan52 and Trig asked me to not do it until the replacement is near complete.)
Tag: Undo
 
(42 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<includeonly>{{#ifeq:{{{nogame}}}|true|{{#ifeq:{{{3|}}}|pl|They are|It is}}|In {{#ifeq:{{{1|S}}}|S2|''Splatoon 2''|''Splatoon''}}, {{#ifeq:{{{3|}}}|pl|they are|it is}}}} a {{{stars}}}-star item produced by {{Brand|{{{1|S}}}|{{{4}}}}} and come{{#ifeq:{{{3|}}}|pl||s}} with {{#if:{{{ability|}}}|the primary [[ability]] {{Ability|{{{1|S}}}|{{{ability}}}}}|a random primary [[ability]] generated when {{#ifeq:{{{3|}}}|pl|they are|it is}} received}}.
<includeonly>{{#ifeq:{{{nogame}}}|true|{{#if:{{{name_a|}}}
|They are a pair of
|{{#ifeq:{{{3|}}}|pl|They are|It is}} a
}}|In {{#switch:{{{1}}}
|S=''Splatoon''
|S2=''Splatoon 2''
|S3=''Splatoon 3''
|#default=''{{{1}}}''
}}, {{#if:{{{name_a|}}}
|they are a pair of
|{{#ifeq:{{{3|}}}|pl|they are|it is}} a
}}
}} {{{stars}}}-star item{{#if:{{{name_a|}}}|s|}} produced by [[{{{4}}}]]{{#if:{{{name_a|}}}
|, each
|&#32;and
}} come{{#ifeq:{{{3|}}}|pl||s}} with {{#if:{{{ability|}}}|the primary [[gear ability|ability]] {{#ifeq:{{{ability}}}|Recon|[[Recon (ability)|Recon]]|[[{{{ability}}}]]}}|a random primary [[gear ability|ability]] generated when {{#if:{{{name_a|}}}
|they are
|{{#ifeq:{{{3|}}}|pl|they are|it is}}
}} received}}.
{{#switch:"{{{availability|}}}"
{{#switch:"{{{availability|}}}"
|"7-Eleven"={{#ifeq:{{{3|}}}|pl|They are|It is}} only available as a {{Availability|7-Eleven}} promotion in Japan.
|"7-Eleven"={{#ifeq:{{{3|}}}|pl|They are|It is}} only available as a 7-Eleven promotion in Japan.
|"amiibo"={{#ifeq:{{{3|}}}|pl|They are|It is}} only available from the {{amiibo|{{{amiibo}}}}} {{#if:{{{amiibo2|}}}|or the ''Splatoon 2'' series {{amiibo|{{{amiibo2}}}}}&#32;}}[[amiibo]].
|"amiibo"={{#if:{{{name_a|}}}
|"CoroCoro Comic"={{#ifeq:{{{3|}}}|pl|They are|It is}} only available as a {{Availability|CoroCoro Comic}} promotion in Japan.
|Both items are
|"Hero Mode"={{#ifeq:{{{3|}}}|pl|They are|It is}} only available as a reward from {{Availability|Octo {{#ifeq:{{{1|S}}}|S2|Canyon|Valley}}}}.
|{{#ifeq:{{{3|}}}|pl|They are|It is}}
|"Level"={{#ifeq:{{{3|}}}|pl|They are|It is}} only available as a reward from {{Character|S2|Judd}} for reaching [[Level]] {{{level}}}.
}} only available from the {{{amiibo}}} {{#if:{{{amiibo2|}}}|or the ''Splatoon 2'' series {{{amiibo2}}}&#32;}} [[amiibo]]{{#ifeq:{{{1}}}|S2|{{#switch:{{{amiibo}}}
|"Salmon Run"={{#ifeq:{{{3|}}}|pl|They are|It is}} only available as a reward from {{Availability|Salmon Run}} as the monthly gear or in a [[File:S2 Salmon Run pink capsule.png|24px]] Pink Capsule.
|Callie
|Marie=&#32;after completing [[Octo Canyon (mode)|Octo Canyon]]
|#default=}}|}}.
|"CoroCoro Comic"={{#ifeq:{{{3|}}}|pl|They are|It is}} only available as a CoroCoro Comic promotion in Japan.
|"Hero Mode"={{#ifeq:{{{3|}}}|pl|They are|It is}} obtained after completing {{#switch:{{{1|}}}
|S        =[[Octo Valley (mode)|Octo Valley]]
|S2      =[[Octo Canyon (mode)|Octo Canyon]]
|S3      =[[Return of the Mammalians]]
|#default =a [[Hero Mode]] campaign}}.
|"Mem cake"={{#ifeq:{{{3|}}}|pl|They are|It is}} obtained from the {{OE}} by talking to [[Iso Padre]] after collecting {{{mem_sets|zero}}} set{{#ifeq:{{{mem_sets|}}}|one||s}} of [[mem cake]]s (including grayscale mem cakes). {{#ifeq:{{{3|}}}|pl|They|It}} must then be claimed from a box in [[Inkopolis Square]] after completing the ''Octo Expansion''.
|"Level"={{#ifeq:{{{3|}}}|pl|They are|It is}} only available as a reward from Judd for reaching [[Level]] {{{level}}}.
|"Salmon Run"={{#ifeq:{{{3|}}}|pl|They are|It is}} only available as a reward from {{#switch:{{{1|}}}
|S2      =[[Salmon Run]]
|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.
|""={{#if:{{{price|}}}|{{#ifeq:{{{3|}}}|pl|They|It}} can be purchased from {{Shop|{{ShopFromCategory|{{{1|S}}}|{{{2}}}}}|game={{#ifeq:{{{1|S}}}|S2|Splatoon 2|Splatoon}}}} for {{Cost|{{{1|S}}}|{{{price}}}|cash|link}}{{#if:{{{sn2_price|}}}|&#32;or}}|{{#ifeq:{{{3|}}}|pl|They are|It is}} available as starting gear{{#if:{{{sn2_price|}}}|. {{#ifeq:{{{2|}}}|pl|They|It}} can also be purchased&#32;}}}}{{#if:{{{sn2_price|}}}|&#32;from {{Shop|SplatNet Gear Shop|game=Splatoon 2}} for {{Cost|{{{1|S}}}|{{{sn2_price}}}|cash|link}}}}.
|"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]]
|#default={{{availability}}}{{#if:{{{sn2_price|}}}|&#32;{{#ifeq:{{{2|}}}|pl|They|It}} can also be purchased from {{Shop|SplatNet Gear Shop|game=Splatoon 2}} for {{Cost|{{{1|S}}}|{{{sn2_price}}}|cash|link}}.}}}}
|"Wandercrust"={{#ifeq:{{{3|}}}|pl|They are|It is}} only available from [[Wandercrust]].
{{#if:{{{availability|}}}|{{#if:{{{sn2_price}}}{{{canorder}}}||{{#ifeq:{{{3|}}}|pl|They|It}} cannot be ordered through {{Character|{{{1|S}}}|{{#switch:{{{1|S}}}
|""={{#if:{{{catalog|}}}|{{#ifeq:{{{3|}}}|pl|They|It}} {{#ifeq:{{{cataloglocked|false}}}|true|must first be unlocked|can be obtained}} through {{#if:{{{cataloglevel|}}}|leveling up the [[{{{catalog}}}]] [[Catalog]] to level {{{cataloglevel}}}|the [[{{{catalog}}}]] [[Catalog]]}}{{#if:{{{price|}}}|, {{#ifeq:{{{cataloglocked|false}}}|true|then|or}} {{#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 2 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}}.}}}} {{#ifeq:{{{cataloglocked|}}}
|S2=Murch
|true
|S
|{{#ifeq:{{{3|}}}|pl|They|It}} can only be ordered from another player after being unlocked.
|#default=Spyke}}}}.}}}}</includeonly><noinclude>A chained template, to be used only inside [[:Template:GearIntroText]].
|
}} {{#if:{{{availability|}}}|{{#if:{{{sn2_price|{{{sn3_price|}}}}}}{{{canorder|}}}||&#32;{{#if:{{{name_a|}}}
|Both items
|{{#ifeq:{{{3|}}}|pl|They|It}}
}} cannot be ordered from another player.}}|}}</includeonly><noinclude>A chained template, to be used only inside [[:Template:GearIntroText]].
 
==Usage==
==Usage==
{{t|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}}
{{t|GearIntroTextEx|game|category|plural|brand|stars{{=}}STARS|ability{{=}}ABILITY|price{{=}}PRICE|sn2_price{{=}}PRICE|availability{{=}}AVAILABILITY|level{{=}}LEVEL|amiibo{{=}}AMIIBO|amiibo2{{=}}AMIIBO|catalog{{=}}SEASON|cataloglevel{{=}}LEVEL|name{{=}}NAME|euocname{{=}}NAME|name_a{{=}}NAME}}
{| class="wikitable"
{| class="wikitable"
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>game</code>||Unnamed, required.||The game this info is for. Must be <code>S</code> for ''Splatoon'' or <code>S2</code> for ''Splatoon 2''.
|<code>game</code>||Unnamed, required.||The game this info is for. Must be <code>S</code> for ''Splatoon'', <code>S2</code> for ''Splatoon 2'', or <code>S3</code> for ''Splatoon 3''.
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>category</code>||Unnamed, required.||The type of gear. Must be one of the following:
|<code>category</code>||Unnamed, required.||The type of gear. Must be one of the following:
Line 38: Line 74:
|<code>price</code>||Named, optional.||The gear's price in the shops.
|<code>price</code>||Named, optional.||The gear's price in the shops.
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>sn2_price</code>||Named, optional.||The gear's price in ''Splatoon 2'', when purchased through {{Shop|SplatNet Gear Shop|game=Splatoon 2}}.
|<code>sn2_price</code>||Named, optional.||The gear's price in ''Splatoon 2'', when purchased through [[SplatNet 2#Shop|SplatNet 2 Gear Shop]].
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>availability</code>||Named, optional.||If this gear cannot be obtained by normal means ([[Shops]] or {{Character|S|Spyke}} / {{Character|S2|Murch}}), must specify where is it obtainable from. Can be:
|<code>sn3_price</code>||Named, optional.||The gear's price in ''Splatoon 3'', when purchased through [[SplatNet 3#Shop|SplatNet 3 Shop]].
|- style="vertical-align: top;"
|<code>availability</code>||Named, optional.||If this gear cannot be obtained by normal means ([[shop]]s or [[Spyke]] / [[Murch]]), must specify where is it obtainable from. Can be:
*<code>7-Eleven</code>, <code>CoroCoro Comic</code> - Japan-only promotions
*<code>7-Eleven</code>, <code>CoroCoro Comic</code> - Japan-only promotions
*<code>amiibo</code> - Obtained from an amiibo. Requires <code>amiibo</code> parameter to be set, and enables <code>amiibo2</code> parameter.
*<code>amiibo</code> - Obtained from an amiibo. Requires <code>amiibo</code> parameter to be set, and enables <code>amiibo2</code> parameter.
*<code>Hero Mode</code> - Gotten from [[Octo Valley]] or [[Octo Canyon]].
*<code>Hero Mode</code> - Gotten from [[Octo Valley (mode)|Octo Valley]] or [[Octo Canyon (mode)|Octo Canyon]].
*<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>(any other value)</code> - The text provided will be displayed as-is, and the note on not being purchasable from the respective sea urchin character will be added afterwards.
*<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 of the item being unavailable for order from another player will be added afterwards.
|- 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. Ignored if <code>catalog</code> is not set.
|- style="vertical-align: top;"
|<code>cataloglocked</code>||Named, optional.||Is this gear item locked behind the catalog? If present and set to <code>true</code>, will indicate that the first instance of the item must be obtained from the catalog before further copies of the item appear on the shop or can be ordered from another player. Ignored if <code>catalog</code> is not set.
|- 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.
Line 53: Line 98:
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>amiibo2</code>||Named, optional.||An additional amiibo that grants this piece of gear. Optional if <code>availability=amiibo</code> and ignored otherwise.
|<code>amiibo2</code>||Named, optional.||An additional amiibo that grants this piece of gear. Optional if <code>availability=amiibo</code> and ignored otherwise.
|-
|- style="vertical-align: top;"
|<code>mem_sets</code>||Named, optional.||The number (in letters, e.g. "one") of [[mem cake]] sets required to obtain this piece of gear from [[Iso Padre]] in {{OE}}. Required if <code>availability=Mem cake</code> and ignored otherwise.
|- style="vertical-align: top;"
|<code>nogame</code>||Named, optional.||If present and equal to <code>true</code>, the first sentence will not mention the game name.
|<code>nogame</code>||Named, optional.||If present and equal to <code>true</code>, the first sentence will not mention the game name.
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|}</noinclude>
|}</noinclude>

Latest revision as of 11:39, 29 January 2024

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>|<catalog=SEASON>|<cataloglevel=LEVEL>|<name=NAME>|<euocname=NAME>|<name_a=NAME>}}

game Unnamed, required. The game this info is for. Must be S for Splatoon, S2 for Splatoon 2, or S3 for Splatoon 3.
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 2 Gear Shop.
sn3_price Named, optional. The gear's price in Splatoon 3, when purchased through SplatNet 3 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 of the item being unavailable for order from another player will be added afterwards.
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. Ignored if catalog is not set.
cataloglocked Named, optional. Is this gear item locked behind the catalog? If present and set to true, will indicate that the first instance of the item must be obtained from the catalog before further copies of the item appear on the shop or can be ordered from another player. Ignored if catalog is not set.
level Named, optional. The level requirement for unlocking this gear. Required if availability=Level and ignored otherwise.
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.