Diferencia entre revisiones de «Plantilla:Icono moneda»
De Inkipedia
m (Removing box wrapper) |
m (Adding game parameter) |
||
Línea 2: | Línea 2: | ||
|sss = Super Sea Snail.png | |sss = Super Sea Snail.png | ||
|pe = Power Egg.png | |pe = Power Egg.png | ||
|#default = | |#default = {{#if:{{{game|}}}| | ||
}}|{{{2|24px}}}|{{#switch:{{#if:{{{currency|}}}|{{{currency}}}|cash}} | {{#switch:{{{game}}} | ||
|Splatoon = S_Cash.png | |||
|Splatoon 2 = S2_Cash.png | |||
|#default = S_Cash.png | |||
}}|S_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 27: | Línea 31: | ||
|- 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 Cash.png|20px|Cash|link=Cash]] cash | ||
* [[File:Power Egg.png|20px|Power Eggs|link=Power Egg]] pe | * [[File:Power Egg.png|20px|Power Eggs|link=Power Egg]] pe | ||
* [[File:Super Sea Snail.png|20px|Super Sea Snails|link=Super Sea Snail]] sss | * [[File:Super Sea Snail.png|20px|Super Sea Snails|link=Super Sea Snail]] sss | ||
|- 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: | |||
*Splatoon | |||
*Splatoon 2 | |||
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
|<code>icononly</code>||Optional.||If present and set to <code>true</code>, the text label will be omitted. | |<code>icononly</code>||Optional.||If present and set to <code>true</code>, the text label will be omitted. | ||
Línea 43: | Línea 51: | ||
{{Cost|200|currency=pe}}<br /> | {{Cost|200|currency=pe}}<br /> | ||
{{Cost|currency=sss|icononly=true}}<br /> | {{Cost|currency=sss|icononly=true}}<br /> | ||
{{Cost|200|width=50px}}</nowiki> | {{Cost|200|width=50px}}<br /> | ||
{{Cost|200|game=Splatoon 2}}</nowiki> | |||
==== Output ==== | ==== Output ==== | ||
Línea 50: | Línea 59: | ||
{{User:GuyPerfect/Cost|200|currency=pe}}<br /> | {{User:GuyPerfect/Cost|200|currency=pe}}<br /> | ||
{{User:GuyPerfect/Cost|currency=sss|icononly=true}}<br /> | {{User:GuyPerfect/Cost|currency=sss|icononly=true}}<br /> | ||
{{User:GuyPerfect/Cost|200|width=50px}} | {{User:GuyPerfect/Cost|200|width=50px}}<br /> | ||
{{User:GuyPerfect/Cost|200|game=Splatoon 2}} | |||
</noinclude> | </noinclude> |
Revisión del 23:54 1 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:
|
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|currency=sss|icononly=true}}<br /> {{Cost|200|width=50px}}<br /> {{Cost|200|game=Splatoon 2}}
Output
Usuario:GuyPerfect/Cost
Usuario:GuyPerfect/Cost
Usuario:GuyPerfect/Cost
Usuario:GuyPerfect/Cost
Usuario:GuyPerfect/Cost
Usuario:GuyPerfect/Cost