Diferencia entre revisiones de «Plantilla:Icono moneda»
De Inkipedia
(Adding Golden Egg and link parameter, removing user namespace links) |
m (Converting non-breaking space to regular space) |
||
Línea 18: | Línea 18: | ||
|ge = Golden Egg | |ge = Golden Egg | ||
|#default = Cash | |#default = Cash | ||
}}]]{{#ifeq:{{{icononly|}}}|true||<span style="display: inline-block; text-align: right; {{#if:{{{width|}}}|width: {{{width}}};}}">& | }}]]{{#ifeq:{{{icononly|}}}|true||<span style="display: inline-block; text-align: right; {{#if:{{{width|}}}|width: {{{width}}};}}"> {{#ifeq:{{{link|}}}|true|[[{{#switch:{{#if:{{{currency|}}}|{{{currency}}}|cash}} | ||
|sss = Super Sea Snail | |sss = Super Sea Snail | ||
|pe = Power Egg | |pe = Power Egg |
Revisión del 21:17 2 ago 2017
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:
|
game |
Optional. | The game the cost applies to. The default value is "Splatoon". Must be one of the following:
|
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
Plantilla:Cost
Plantilla:Cost
Plantilla:Cost
Plantilla:Cost
Plantilla:Cost
Plantilla:Cost
Plantilla:Cost