Template:Sparklium: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
(Reworked template to work for P4 as well.)
(I couldn't find any reason for the icons to be 12x12, so I put them back to the default.)
Line 1: Line 1:
{{#switch:{{{1|}}}|p4={{icon|Sparklium||x12px|v=p4}}|hp={{icon|Sparklium||x12px|v=hp}}|hps={{icon|Sparklium Seed||x12px}}}}{{#if:{{{2|}}}|&nbsp;&times;&nbsp;{{{2}}}}}<noinclude>
{{#switch:{{{1|}}}|p4={{icon|Sparklium|v=p4}}|hp={{icon|Sparklium|v=hp}}|hps={{icon|Sparklium Seed}}}}{{#if:{{{2|}}}|&nbsp;&times;&nbsp;{{{2}}}}}<noinclude>


==Info==
==Info==

Revision as of 06:00, July 2, 2023


Info

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

Parameters

Parameter Mandatory Default Purpose Detailed description
1 Yes Version Version of the icon to use. p4 for Pikmin 4, hp for Hey! Pikmin, or hps for a Hey! Pikmin Sparklium Seed.
2 No Amount Write the amount of Sparklium to show here. If you don't, the icon appears alone.

Skeleton

{{sparklium|<version>|<amount>}}

Examples

Code Result
{{sparklium|p4|100}}
Sparklium × 100

See also