Template:Cost

From Inkipedia, the Splatoon wiki
Revision as of 01:20, 3 August 2017 by GuyPerfect (talk | contribs) (Missed a space in the documentation)

Displays an inline currency icon with a text link.

Parameters

price Unnamed. The numeric price to display.
size Unnamed, optional. A MediaWiki image size value to use for the icon. The default size is 24px.
currency Optional. The type of currency to display. The default value is "cash". Must be one of the following:
  • S Icon Cash.png S2 Icon Cash.png cash
  • S Icon Power Egg.png S2 Icon Power Egg.png pe
  • S Icon Super Sea Snail.png S2 Icon Super Sea Snail.png sss
  • S2 Icon Golden Egg.png ge
game Optional. The game the cost applies to. The default value is "Splatoon". Must be one of the following:
  • Splatoon
  • Splatoon 2
link Optional. If present and set to true, the text label will be a link.
icononly Optional. If present and set to true, the text label will be omitted.
width Optional. A CSS width value to use for the text label. The text itself will be right-aligned.

Examples

Markup

{{Cost|200}}<br />
{{Cost|200|48px}}<br />
{{Cost|200|currency=pe}}<br />
{{Cost|200|currency=sss|link=true}}<br />
{{Cost|200|icononly=true}}<br />
{{Cost|200|width=50px}}<br />
{{Cost|200|game=Splatoon 2}}

Output

Cash 200
Cash 200
Power Eggs 200
Super Sea Snails 200
Cash
Cash 200
Cash 200