Template:Cost: Difference between revisions

From Inkipedia, the Splatoon wiki
m (Protected "Template:Cost": Widely transcluded ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))
m (Undo revision 180280 by Shahar (talk))
Tag: Undo
(2 intermediate revisions by the same user not shown)
Line 23: Line 23:
|cqp=CQ Points
|cqp=CQ Points
|cash
|cash
|#default=Cash}}]]&nbsp;<span style="display: inline-block; text-align: right; {{#if:{{{6|}}}|width:{{{6|}}}px}}">{{#if:{{{2|}}}|{{#ifeq:{{{5|{{{4|}}}}}}|link|[[{{#switch:{{{3|{{{currency|cash}}}}}}
|#default=Cash}}]]<span style="display: inline-block; text-align: right; {{#if:{{{6|}}}|width:{{{6|}}}px}}">{{#if:{{{2|}}}|&nbsp;{{#ifeq:{{{5|{{{4|}}}}}}|link|[[{{#switch:{{{3|{{{currency|cash}}}}}}
|pe=Power Egg
|pe=Power Egg
|sss=Super Sea Snail
|sss=Super Sea Snail

Revision as of 07:17, 2 September 2019

Displays an inline currency icon with a text link.

Usage

{{Cost|<game>|<price>|<currency>|<size>|<link>|<textwidth>}}

game Unnamed, required The game that the cost belongs to. Must be one of the following:
  • S for Splatoon
  • S2 for Splatoon 2
price Unnamed, required The number / string to show as the cost.
If set empty, the template will show the icon but no number.
Use 0 or Free for free items.
currency Unnamed, optional The currency to use.
The default value is cash.
Must be one of the following: S S2
cash Cash Cash
pe Power Eggs Power Eggs
sss Super Sea Snails Super Sea Snails
ge Golden Eggs
sard Sardinium
ac Ability Chunks
cqp CQ Points
size Unnamed, optional The icon size for the currency icon. The default is 24.
link Unnamed, optional If present, the amount text will be a link to the currency's page.
textwidth Unnamed, optional Requries size and link to both be present.
If specified, the label will be set inside a right-aligned rectangle of the specified width

Markup

*{{Cost|S|200}}
*{{Cost|S2|200}}
*{{Cost|S|}}
*{{Cost|S|1|sss}}
*{{Cost|S2| |ac}}
*{{Cost|S|200|cash|48}}
*{{Cost|S|200|cash|link}}
*{{Cost|S|200|cash|48|link}}
*{{Cost|S|200|cash|24|link|60}}
*{{Cost|S|200|cash|24| |60}}

Output

  • Cash 200
  • Cash 200
  • Cash
  • Super Sea Snail 1
  • Ability Chunks
  • Cash 200
  • Cash 200
  • Cash 200
  • Cash 200
  • Cash 200