Diferencia entre revisiones de «Plantilla:Icono moneda»
De Inkipedia
m (Adding sardinium currency) |
(Added Ability Chunks option) |
||
Línea 12: | Línea 12: | ||
|ge = S2_Icon_Golden Egg.png | |ge = S2_Icon_Golden Egg.png | ||
|sardinium = S2_Icon_Sardinium_Shadow.png | |sardinium = S2_Icon_Sardinium_Shadow.png | ||
|ac = S2 Icon Ability Chunk Generic.png | |||
|#default = {{#if:{{{game|}}}| | |#default = {{#if:{{{game|}}}| | ||
{{#switch:{{{game}}} | {{#switch:{{{game}}} | ||
Línea 22: | Línea 23: | ||
|ge = Golden Eggs | |ge = Golden Eggs | ||
|sardinium = Sardinium | |sardinium = Sardinium | ||
|ac = Ability Chunks | |||
|#default = Cash | |#default = Cash | ||
}}|link={{#switch:{{#if:{{{currency|}}}|{{{currency}}}|cash}} | }}|link={{#switch:{{#if:{{{currency|}}}|{{{currency}}}|cash}} | ||
Línea 28: | Línea 30: | ||
|ge = Golden Egg | |ge = Golden Egg | ||
|sardinium = Sardinium | |sardinium = Sardinium | ||
|ac = Ability Chunk | |||
|#default = Cash | |#default = Cash | ||
}}]]{{#ifeq:{{{icononly|}}}|true||<span style="display: inline-block; text-align: right; {{#if:{{{width|}}}|width: {{{width}}};}}"> {{#ifeq:{{{link|}}}|true|[[{{#switch:{{#if:{{{currency|}}}|{{{currency}}}|cash}} | }}]]{{#ifeq:{{{icononly|}}}|true||<span style="display: inline-block; text-align: right; {{#if:{{{width|}}}|width: {{{width}}};}}"> {{#ifeq:{{{link|}}}|true|[[{{#switch:{{#if:{{{currency|}}}|{{{currency}}}|cash}} | ||
Línea 34: | Línea 37: | ||
|ge = Golden Egg | |ge = Golden Egg | ||
|sardinium = Sardinium | |sardinium = Sardinium | ||
|ac = Ability Chunk | |||
|#default = Cash | |#default = Cash | ||
}}|{{{1}}}]]|{{{1}}}}}</span>}}</includeonly><noinclude>__NOTOC__ | }}|{{{1}}}]]|{{{1}}}}}</span>}}</includeonly><noinclude>__NOTOC__ | ||
Línea 51: | Línea 55: | ||
* [[File:S2_Icon_Golden Egg.png|20px|link=]] ge | * [[File:S2_Icon_Golden Egg.png|20px|link=]] ge | ||
* [[File:S2_Icon_Sardinium_Shadow.png|20px|link=]] sardinium | * [[File:S2_Icon_Sardinium_Shadow.png|20px|link=]] sardinium | ||
* [[File:S2_Icon_Ability_Chunk_Generic.png|20px|link=]] ac | |||
|- 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 10:47 13 feb 2018
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