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}}}}}}
|pe=Power Egg
|Caviar rojo=Power Egg
|sss=Super Sea Snail
|Caviar Rojo=Power Egg
|ge=Golden Egg
|Supermolusco=Super Sea Snail
|sard=Sardinium Shadow
|Alevín Dorado=Golden Egg
|ac=Ability Chunk Generic
|Alevín dorado=Golden Egg
|cqp=CQ Points
|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}}}}}}
|pe=Power Egg{{#ifeq:{{{2}}}|1||s}}
|Caviar rojo{{#ifeq:{{{2}}}|1||s}}
|sss=Super Sea Snail{{#ifeq:{{{2}}}|1||s}}
|Caviar Rojo{{#ifeq:{{{2}}}|1||s}}
|ge=Golden Egg{{#ifeq:{{{2}}}|1||s}}
|Supermolusco{{#ifeq:{{{2}}}|1||s}}
|sard=Sardinium
|Alevín Dorado{{#ifeq:{{{2}}}|1||s}}
|ac=Ability Chunk{{#ifeq:{{{2}}}|1||s}}
|Alevín dorado{{#ifeq:{{{2}}}|1||s}}
|cqp=CQ Point{{#ifeq:{{{2}}}|1||s}}
|Anchovio
|cash
|Fragmento de potenciador{{#ifeq:{{{2}}}|1||s}}
|#default=Cash}}|link={{#switch:{{{3|{{{currency|cash}}}}}}
|Pepinopuntos{{#ifeq:{{{2}}}|1||s}}
|pe=Power Egg
|precio
|sss=Super Sea Snail
|#default=Precio}}|link={{#switch:{{{3|{{{currency|cash}}}}}}
|ge=Golden Egg
|Caviar rojo
|sard=Sardinium
|Supermolusco
|ac=Ability chunk
|Alevín Dorado = Alevín dorado
|cqp=CQ-80#CQ Points
|Alevín dorado
|sard=Anchovio
|ac=Fragmento de potenciador
|Pepinopuntos=-nófono#Pepinopuntos
|cash
|cash
|#default=Cash}}]]<span style="display: inline-block; text-align: right; {{#if:{{{6|}}}|width:{{{6|}}}px}}">{{#if:{{{2|}}}|&nbsp;{{#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|}}}|&nbsp;{{#ifeq:{{{5|{{{4|}}}}}}|link|[[{{#switch:{{{3|{{{currency|cash}}}}}}
|pe=Power Egg
|Caviar Rojo
|sss=Super Sea Snail
|Caviar rojo
|ge=Golden Egg
|Supermolusco
|sard=Sardinium
|Alevín Dorado
|ac=Ability Chunk
|Alevín dorado
|cqp=CQ Points
|Anchovio
|cash
|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|Cost|game|price|currency|size|link|textwidth}}
{{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>cash</code> || {{Cost|S| |cash}} || {{Cost|S2| |cash}}
|<code>Dinero</code> || {{Precio|S| |Dinero}} || {{Precio|S2| |Dinero}}
|-
|-
|<code>pe</code> || {{Cost|S| |pe}} || {{Cost|S2| |pe}}
|<code>Caviar rojo</code> || {{Precio|S| |Caviar rojo}} || {{Precio|S2| |Caviar rojo}}
|-
|-
|<code>sss</code> || {{Cost|S| |sss}} || {{Cost|S2| |sss}}
|<code>Suepermolusco</code> || {{Precio|S| |Supermolusco}} || {{Precio|S2| |Supermolusco}}
|-
|-
|<code>ge</code> ||  || {{Cost|S2| |ge}}
|<code>Alevín Dorado</code> ||  || {{Precio|S2| |Alevín Dorado}}
|-
|-
|<code>sard</code> ||  || {{Cost|S2| |sard}}
|<code>Anchovio</code> ||  || {{Precio|S2| |Anchovio}}
|-
|-
|<code>ac</code> ||  || {{Cost|S2| |ac}}
|<code>Fragmento de potenciador</code> ||  || {{Precio|S2| |Fragmento de potenciador}}
|-
|-
|<code>cqp</code> ||  || {{Cost|S2| |cqp}}
|<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>
*{{Cost|S|200}}
*{{Precio|S|200}}
*{{Cost|S2|200}}
*{{Precio|S2|200}}
*{{Cost|S|}}
*{{Precio|S|}}
*{{Cost|S|1|sss}}
*{{Precio|S|1|sss}}
*{{Cost|S2| |ac}}
*{{Precio|S2| |ac}}
*{{Cost|S|200|cash|48}}
*{{Precio|S|200|cash|48}}
*{{Cost|S|200|cash|link}}
*{{Precio|S|200|cash|link}}
*{{Cost|S|200|cash|48|link}}
*{{Precio|S|200|cash|48|link}}
*{{Cost|S|200|cash|24|link|60}}
*{{Precio|S|200|cash|24|link|60}}
*{{Cost|S|200|cash|24| |60}}
*{{Precio|S|200|cash|24| |60}}
</pre>
</pre>


=== Output ===
=== Output ===
*{{Cost|S|200}}
*{{Precio|S|200}}
*{{Cost|S2|200}}
*{{Precio|S2|200}}
*{{Cost|S|}}
*{{Precio|S|}}
*{{Cost|S|1|sss}}
*{{Precio|S|1|sss}}
*{{Cost|S2| |ac}}
*{{Precio|S2| |ac}}
*{{Cost|S|200|cash|48}}
*{{Precio|S|200|cash|48}}
*{{Cost|S|200|cash|link}}
*{{Precio|S|200|cash|link}}
*{{Cost|S|200|cash|48|link}}
*{{Precio|S|200|cash|48|link}}
*{{Cost|S|200|cash|24|link|60}}
*{{Precio|S|200|cash|24|link|60}}
*{{Cost|S|200|cash|24| |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:
  • S for Splatoon
  • S2 for Splatoon 2
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}}

Output