Diferencia entre revisiones de «Plantilla:Icono moneda»
De Inkipedia
m (Converting non-breaking space to regular space) |
(Adding Splatoon 2 variants of icons) |
||
Línea 1: | Línea 1: | ||
<includeonly>[[File:{{#switch:{{#if:{{{currency|}}}|{{{currency}}}|cash}} | <includeonly>[[File:{{#switch:{{#if:{{{currency|}}}|{{{currency}}}|cash}} | ||
|sss = | |sss = {{#switch:{{{game}}} | ||
|pe = | |Splatoon = S_Icon_Super Sea Snail.png | ||
|ge = | |Splatoon 2 = S2_Icon_Super Sea Snail.png | ||
|#default = S_Icon_Super Sea Snail.png | |||
}} | |||
|pe = {{#switch:{{{game}}} | |||
|Splatoon = S_Icon_Power Egg.png | |||
|Splatoon 2 = S2_Icon_Power Egg.png | |||
|#default = S_Icon_Power Egg.png | |||
}} | |||
|ge = S2_Icon_Golden Egg.png | |||
|#default = {{#if:{{{game|}}}| | |#default = {{#if:{{{game|}}}| | ||
{{#switch:{{{game}}} | {{#switch:{{{game}}} | ||
|Splatoon = | |Splatoon = S_Icon_Cash.png | ||
|Splatoon 2 = | |Splatoon 2 = S2_Icon_Cash.png | ||
|#default = | |#default = S_Icon_Cash.png | ||
}}| | }}|S_Icon_Cash.png}}}}|{{{2|24px}}}|{{#switch:{{#if:{{{currency|}}}|{{{currency}}}|cash}} | ||
|sss = Super Sea Snails | |sss = Super Sea Snails | ||
|pe = Power Eggs | |pe = Power Eggs | ||
Línea 34: | Línea 42: | ||
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
|<code>currency</code>||Optional.||The type of currency to display. The default value is "cash". Must be one of the following: | |<code>currency</code>||Optional.||The type of currency to display. The default value is "cash". Must be one of the following: | ||
* [[File: | * [[File:S_Icon_Cash.png|20px|link=]][[File:S2_Icon_Cash.png|20px|link=]] cash | ||
* [[File: | * [[File:S_Icon_Power Egg.png|20px|link=]] [[File:S2_Icon_Power Egg.png|20px|link=]] pe | ||
* [[File:S_Icon_Super Sea Snail.png|20px|link=]] [[File:S2_Icon_Super Sea Snail.png|20px|link=]] sss | |||
* [[File: | * [[File:S2_Icon_Golden Egg.png|20px|link=]] ge | ||
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
|<code>game</code>||Optional.||The game the cost applies to. The default value is "Splatoon". Must be one of the following: | |<code>game</code>||Optional.||The game the cost applies to. The default value is "Splatoon". Must be one of the following: |
Revisión del 01:17 3 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