Diferencia entre revisiones de «Plantilla:Icono moneda»
De Inkipedia
m (A22PG trasladó la página Plantilla:Cost a Plantilla:Precio sin dejar una redirección: Traducido al español) |
(Cambios a la plantilla traduciendo sus funciones al español; todavía queda traducir la documentación) |
||
Línea 1: | Línea 1: | ||
<includeonly>[[File:{{{1}}} Icon {{#switch:{{{3|{{{currency|cash}}}}}} | <includeonly>[[File:{{{1}}} Icon {{#switch:{{{3|{{{currency|cash}}}}}} | ||
| | |Caviar rojo=Power Egg | ||
| | |Caviar Rojo=Power Egg | ||
| | |Supermolusco=Super Sea Snail | ||
| | |Alevín Dorado=Golden Egg | ||
| | |Alevín dorado=Golden Egg | ||
| | |Anchovio=Sardinium Shadow | ||
|cash | |Fragmento de potenciador=Ability Chunk Generic | ||
|Pepinopuntos=CQ Points | |||
|precio=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}}}}}} | ||
| | |Caviar rojo{{#ifeq:{{{2}}}|1||s}} | ||
| | |Caviar Rojo{{#ifeq:{{{2}}}|1||s}} | ||
| | |Supermolusco{{#ifeq:{{{2}}}|1||s}} | ||
| | |Alevín Dorado{{#ifeq:{{{2}}}|1||s}} | ||
| | |Alevín dorado{{#ifeq:{{{2}}}|1||s}} | ||
| | |Anchovio | ||
| | |Fragmento de potenciador{{#ifeq:{{{2}}}|1||s}} | ||
|#default= | |Pepinopuntos{{#ifeq:{{{2}}}|1||s}} | ||
| | |precio | ||
| | |#default=Precio}}|link={{#switch:{{{3|{{{currency|cash}}}}}} | ||
| | |Caviar rojo | ||
|sard= | |Supermolusco | ||
|ac= | |Alevín Dorado = Alevín dorado | ||
| | |Alevín dorado | ||
|sard=Anchovio | |||
|ac=Fragmento de potenciador | |||
|Pepinopuntos=Pπ-nófono#Pepinopuntos | |||
|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}}}}}} | ||
| | |Caviar Rojo | ||
| | |Caviar rojo | ||
| | |Supermolusco | ||
| | |Alevín Dorado | ||
| | |Alevín dorado | ||
| | |Anchovio | ||
| | |Fragmento de potenciador | ||
|Pπ-nófono | |||
|precio | |||
|#default=Cash}}|{{{2}}}]]|{{{2}}}}}}}</span></includeonly><noinclude>__NOTOC__ | |#default=Cash}}|{{{2}}}]]|{{{2}}}}}}}</span></includeonly><noinclude>__NOTOC__ | ||
Displays an inline currency icon with a text link. | Displays an inline currency icon with a text link. | ||
=== Usage === | === Usage === | ||
{{t| | {{t|Precio|game|price|currency|size|link|textwidth}} | ||
{| class="wikitable sitecolor-generic" | {| class="wikitable sitecolor-generic" | ||
Línea 56: | Línea 63: | ||
|width="24px" | S2 | |width="24px" | S2 | ||
|- | |- | ||
|<code> | |<code>Dinero</code> || {{Precio|S| |Dinero}} || {{Precio|S2| |Dinero}} | ||
|- | |- | ||
|<code> | |<code>Caviar rojo</code> || {{Precio|S| |Caviar rojo}} || {{Precio|S2| |Caviar rojo}} | ||
|- | |- | ||
|<code> | |<code>Suepermolusco</code> || {{Precio|S| |Supermolusco}} || {{Precio|S2| |Supermolusco}} | ||
|- | |- | ||
|<code> | |<code>Alevín Dorado</code> || || {{Precio|S2| |Alevín Dorado}} | ||
|- | |- | ||
|<code> | |<code>Anchovio</code> || || {{Precio|S2| |Anchovio}} | ||
|- | |- | ||
|<code> | |<code>Fragmento de potenciador</code> || || {{Precio|S2| |Fragmento de potenciador}} | ||
|- | |- | ||
|<code> | |<code>Pepinopuntos</code> || || {{Precio|S2| |Pepinopuntos}} | ||
|- | |- | ||
| style="vertical-align:top" |<code>size</code> | | style="vertical-align:top" |<code>size</code> | ||
Línea 85: | Línea 92: | ||
=== Markup === | === Markup === | ||
<pre> | <pre> | ||
*{{ | *{{Precio|S|200}} | ||
*{{ | *{{Precio|S2|200}} | ||
*{{ | *{{Precio|S|}} | ||
*{{ | *{{Precio|S|1|sss}} | ||
*{{ | *{{Precio|S2| |ac}} | ||
*{{ | *{{Precio|S|200|cash|48}} | ||
*{{ | *{{Precio|S|200|cash|link}} | ||
*{{ | *{{Precio|S|200|cash|48|link}} | ||
*{{ | *{{Precio|S|200|cash|24|link|60}} | ||
*{{ | *{{Precio|S|200|cash|24| |60}} | ||
</pre> | </pre> | ||
=== Output === | === Output === | ||
*{{ | *{{Precio|S|200}} | ||
*{{ | *{{Precio|S2|200}} | ||
*{{ | *{{Precio|S|}} | ||
*{{ | *{{Precio|S|1|sss}} | ||
*{{ | *{{Precio|S2| |ac}} | ||
*{{ | *{{Precio|S|200|cash|48}} | ||
*{{ | *{{Precio|S|200|cash|link}} | ||
*{{ | *{{Precio|S|200|cash|48|link}} | ||
*{{ | *{{Precio|S|200|cash|24|link|60}} | ||
*{{ | *{{Precio|S|200|cash|24| |60}} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Revisión del 15:08 19 ago 2022
Displays an inline currency icon with a text link.
Usage
{{Precio|<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 | ||
Dinero |
Plantilla:Precio | Plantilla:Precio | ||
Caviar rojo |
Plantilla:Precio | Plantilla:Precio | ||
Suepermolusco |
Plantilla:Precio | Plantilla:Precio | ||
Alevín Dorado |
Plantilla:Precio | |||
Anchovio |
Plantilla:Precio | |||
Fragmento de potenciador |
Plantilla:Precio | |||
Pepinopuntos |
Plantilla:Precio | |||
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
*{{Precio|S|200}} *{{Precio|S2|200}} *{{Precio|S|}} *{{Precio|S|1|sss}} *{{Precio|S2| |ac}} *{{Precio|S|200|cash|48}} *{{Precio|S|200|cash|link}} *{{Precio|S|200|cash|48|link}} *{{Precio|S|200|cash|24|link|60}} *{{Precio|S|200|cash|24| |60}}