Template:Sparklium: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
m (Text replacement - "]] </noinclude>" to "]]</noinclude>")
(Added a field to allow the icon to be a Sparklium Seed.)
Line 1: Line 1:
{{icon|Sparklium||x12px}}{{#if:{{{1|}}}|&nbsp;&times;&nbsp;{{{1}}}}}<noinclude>
{{#if:{{{2|}}}|{{icon|Sparklium Seed||x12px}}|{{icon|Sparklium||x12px}}}}{{#if:{{{1|}}}|&nbsp;&times;&nbsp;{{{1}}}}}<noinclude>


==Info==
==Info==
Line 10: Line 10:
! 1
! 1
| No ||  || Amount || Write the amount of Sparklium to show here. If you don't, the icon appears alone.
| No ||  || Amount || Write the amount of Sparklium to show here. If you don't, the icon appears alone.
|-
! 2
| No ||  || Use Sparklium Seed || If this has a value, like <code>y</code>, the icon will instead be that of a Sparklium Seed.
|}
|}


==Skeleton==
==Skeleton==
<pre>
<pre>
{{sparklium|<amount>}}
{{sparklium|<amount>|<use sparklium seed>}}
</pre>
</pre>



Revision as of 09:25, July 18, 2020

[icon]

Info

Use this template when referring to an amount of Sparklium. This displays an icon, followed by the specified amount.

Parameters

Parameter Mandatory Default Purpose Detailed description
1 No Amount Write the amount of Sparklium to show here. If you don't, the icon appears alone.
2 No Use Sparklium Seed If this has a value, like y, the icon will instead be that of a Sparklium Seed.

Skeleton

{{sparklium|<amount>|<use sparklium seed>}}

Examples

Code Result
{{sparklium|100}}
[icon] × 100

See also