Diferencia entre revisiones de «Plantilla:Icono moneda»
De Inkipedia
m (Removing the helper category after verifying it has emptied out) |
(Adding cqp) |
||
Línea 5: | Línea 5: | ||
|sard=Sardinium Shadow | |sard=Sardinium Shadow | ||
|ac=Ability Chunk Generic | |ac=Ability Chunk Generic | ||
|cqp=CQ Points | |||
|cash | |cash | ||
|#default=Cash}}.png|{{#iferror:{{#expr:{{{4|24}}}}}|24}}px|{{#switch:{{{3|{{{currency|cash}}}}}} | |#default=Cash}}.png|{{#iferror:{{#expr:{{{4|24}}}}}|24}}px|{{#switch:{{{3|{{{currency|cash}}}}}} | ||
Línea 12: | Línea 13: | ||
|sard=Sardinium | |sard=Sardinium | ||
|ac=Ability Chunk{{#ifeq:{{{2}}}|1||s}} | |ac=Ability Chunk{{#ifeq:{{{2}}}|1||s}} | ||
|cqp=CQ Point{{#ifeq:{{{2}}}|1||s}} | |||
|cash | |cash | ||
|#default=Cash}}|link={{#switch:{{{3|{{{currency|cash}}}}}} | |#default=Cash}}|link={{#switch:{{{3|{{{currency|cash}}}}}} | ||
Línea 19: | Línea 21: | ||
|sard=Sardinium | |sard=Sardinium | ||
|ac=Ability Chunk | |ac=Ability Chunk | ||
|cqp=CQ Points | |||
|cash | |cash | ||
|#default=Cash}}]]<span style="display: inline-block; text-align: right; {{#if:{{{6|}}}|width:{{{6|}}}px}}">{{#if:{{{2|}}}| {{#ifeq:{{{5|{{{4|}}}}}}|link|[[{{#switch:{{{3|{{{currency|cash}}}}}} | |#default=Cash}}]]<span style="display: inline-block; text-align: right; {{#if:{{{6|}}}|width:{{{6|}}}px}}">{{#if:{{{2|}}}| {{#ifeq:{{{5|{{{4|}}}}}}|link|[[{{#switch:{{{3|{{{currency|cash}}}}}} | ||
Línea 26: | Línea 29: | ||
|sard=Sardinium | |sard=Sardinium | ||
|ac=Ability Chunk | |ac=Ability Chunk | ||
|cqp=CQ Points | |||
|cash | |cash | ||
|#default=Cash}}|{{{2}}}]]|{{{2}}}}}}}</span></includeonly><noinclude>__NOTOC__ | |#default=Cash}}|{{{2}}}]]|{{{2}}}}}}}</span></includeonly><noinclude>__NOTOC__ | ||
Línea 44: | Línea 48: | ||
| colspan="3" |The number / string to show as the cost.<br />If set empty, the template will show the icon but no number.<br />Use <code>0</code> or <code>Free</code> for free items. | | colspan="3" |The number / string to show as the cost.<br />If set empty, the template will show the icon but no number.<br />Use <code>0</code> or <code>Free</code> for free items. | ||
|- | |- | ||
| rowspan=" | | rowspan="9" style="vertical-align:top" |<code>currency</code> | ||
| rowspan=" | | rowspan="9" style="vertical-align:top" |Unnamed, optional | ||
| colspan="3" |The currency to use.<br />The default value is <code>cash</code>. | | colspan="3" |The currency to use.<br />The default value is <code>cash</code>. | ||
|- | |- | ||
Línea 63: | Línea 67: | ||
|- | |- | ||
|<code>ac</code> || || {{Cost|S2| |ac}} | |<code>ac</code> || || {{Cost|S2| |ac}} | ||
|- | |||
|<code>cqp</code> || || {{Cost|S2| |cqp}} | |||
|- | |- | ||
| style="vertical-align:top" |<code>size</code> | | style="vertical-align:top" |<code>size</code> |
Revisión del 09:11 16 jun 2018
Displays an inline currency icon with a text link.
Usage
{{Cost|<game>|<price>|<currency>|<size>|<link>|<textwidth>}}
game
|
Unnamed, required | The game that the cost belongs to. Must be one of the following:
| ||
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 | |||
cqp |
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}}