44,445
edits
(Added a field to allow the icon to be a Sparklium Seed.) |
(Actually, 18px is what I want.) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{# | {{#switch:{{{1|}}}|p4={{icon|Sparklium||x18px|v=p4}}|hp={{icon|Sparklium||x18px|v=hp}}|hps={{icon|Sparklium Seed||x18px}}}}{{#if:{{{2|}}}| × {{{2}}}}}<noinclude> | ||
==Info== | ==Info== | ||
Use this template when referring to an amount of [[Sparklium]]. This displays an icon, followed by the specified amount. | Use this template when referring to an amount of [[Sparklium]]. This displays an icon, optionally followed by the specified amount. | ||
==Parameters== | ==Parameters== | ||
Line 9: | Line 9: | ||
|- | |- | ||
! 1 | ! 1 | ||
| | | '''Yes''' || || Version || Version of the icon to use. <code>p4</code> for ''Pikmin 4'', <code>hp</code> for ''Hey! Pikmin'', or <code>hps</code> for a ''Hey! Pikmin'' [[Sparklium Seed]]. | ||
|- | |- | ||
! 2 | ! 2 | ||
| No || || | | No || || Amount || Write the amount of Sparklium to show here. If you don't, the icon appears alone. | ||
|} | |} | ||
==Skeleton== | ==Skeleton== | ||
<pre> | <pre> | ||
{{sparklium|< | {{sparklium|<version>|<amount>}} | ||
</pre> | </pre> | ||
Line 24: | Line 24: | ||
! Code || Result | ! Code || Result | ||
|- | |- | ||
| <pre>{{sparklium|100}}</pre> | | <pre>{{sparklium|p4|100}}</pre> | ||
| {{sparklium|100}} | | {{sparklium|p4|100}} | ||
|} | |} | ||