Template:GearIntroTextEx: Difference between revisions
From Inkipedia, the Splatoon wiki
m (Fixing documentation) |
(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.) |
||
Line 9: | Line 9: | ||
|"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|}}}| or}}|{{#ifeq:{{{3|}}}|pl|They are|It is}} available as starting gear{{#if:{{{sn2_price|}}}|. {{#ifeq:{{{2|}}}|pl|They|It}} can also be purchased }}}}{{#if:{{{sn2_price|}}}| from {{Shop|SplatNet Gear Shop|game=Splatoon 2}} for {{Cost|{{{1|S}}}|{{{sn2_price}}}|cash|link}}}}. | |""={{#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|}}}| or}}|{{#ifeq:{{{3|}}}|pl|They are|It is}} available as starting gear{{#if:{{{sn2_price|}}}|. {{#ifeq:{{{2|}}}|pl|They|It}} can also be purchased }}}}{{#if:{{{sn2_price|}}}| from {{Shop|SplatNet Gear Shop|game=Splatoon 2}} for {{Cost|{{{1|S}}}|{{{sn2_price}}}|cash|link}}}}. | ||
|#default={{{availability}}}}} | |#default={{{availability}}}{{#if:{{{sn2_price|}}}| {{#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}}.}}}} | ||
{{#if:{{{availability|}}}|{{#ifeq:{{{3|}}}|pl|They|It}} cannot be ordered through {{Character|{{{1|S}}}|{{#switch:{{{1|S}}} | {{#if:{{{availability|}}}|{{#if:{{{sn2_price}}}{{{canorder}}}||{{#ifeq:{{{3|}}}|pl|They|It}} cannot be ordered through {{Character|{{{1|S}}}|{{#switch:{{{1|S}}} | ||
|S2=Murch | |S2=Murch | ||
|S | |S | ||
|#default=Spyke}}}}.}}</includeonly><noinclude>A chained template, to be used only inside [[:Template:GearIntroText]]. | |#default=Spyke}}}}.}}}}</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|name{{=}}NAME|euocname{{=}}NAME}} |
Revision as of 09:18, 22 January 2019
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:
|
plural |
Unnamed, required. | Is the gear singular (e.g. a shirt) or plural (e.g. shoes, glasses, headphones)? Must be one of the following:
|
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 Lua error in Module:Shop at line 47: attempt to index field '?' (a nil value).. |
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:
|
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.
|
nogame |
Named, optional. | If present and equal to true , the first sentence will not mention the game name.
|