Plantilla:Icono moneda

De Inkipedia
Revisión del 15:32 20 feb 2018 de en>Inkrid (Restore width paramter)

Displays an inline currency icon with a text link.

Plantilla:!! This template is undergoing a hand-over-hand change. Please do not use the legacy parameter set!

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 Plantilla:Cost Plantilla:Cost
pe Plantilla:Cost Plantilla:Cost
sss Plantilla:Cost Plantilla:Cost
ge Plantilla:Cost
sard Plantilla:Cost
ac Plantilla:Cost
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

Legacy 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
  • S2 Icon Sardinium Shadow.png sardinium
  • S2 Icon Ability Chunk Generic.png ac
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.

Legacy 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

Plantilla:Cost
Plantilla:Cost
Plantilla:Cost
Plantilla:Cost
Plantilla:Cost
Plantilla:Cost
Plantilla:Cost