Template:ItemIcon: Difference between revisions

From Little Troubles
Chesto (talk | contribs)
No edit summary
Chesto (talk | contribs)
No edit summary
Line 1: Line 1:
<onlyinclude><span style="white-space:nowrap;line-height:1">{{#switch:{{{1}}}
<onlyinclude>{{#if:{{{1|}}}|<span style="white-space:nowrap;line-height:1">{{#switch:{{{1}}}
|Cookie={{#ifeq:{{{2|}}}|n|[[Cookies]]}}[[File:Cookie_Icon.png|11px|link=Cookies|alt=Cookies]]
|Cookie={{#ifeq:{{{2|}}}|n|[[Cookies]]}}[[File:Cookie_Icon.png|11px|link=Cookies|alt=Cookies]]
|Cookies={{#ifeq:{{{2|}}}|n|[[Cookies]]}}[[File:Cookie_Icon.png|11px|link=Cookies|alt=Cookies]]
|Cookies={{#ifeq:{{{2|}}}|n|[[Cookies]]}}[[File:Cookie_Icon.png|11px|link=Cookies|alt=Cookies]]
Line 9: Line 9:
|Cookie Gain={{#ifeq:{{{2|}}}|n|[[Cookie Gain]]}}[[File:Cookie_Gain_Icon.png|11px|link=Cookie Gain|alt=Cookie Gain]]
|Cookie Gain={{#ifeq:{{{2|}}}|n|[[Cookie Gain]]}}[[File:Cookie_Gain_Icon.png|11px|link=Cookie Gain|alt=Cookie Gain]]
|#default=[[{{{1}}}]]
|#default=[[{{{1}}}]]
}}</span></onlyinclude>
}}</span>}}</onlyinclude>
<noinclude>
<noinclude>
Displays icons for various things. Currently supports:
Displays icons for various things. Currently supports:

Revision as of 20:44, 11 November 2025


Displays icons for various things. Currently supports:

Gain 5{{ItemIcon|Cookies}}, 1{{ItemIcon|Confidence}} and 1{{ItemIcon|Maturity}}. This card has {{ItemIcon|CookieGain}}3 and {{ItemIcon|FightReward}}8.

Gain 5Cookies, 1Confidence and 1Maturity. This card has Cookie Gain3 and Fight Reward8.

Gain 5 {{ItemIcon|Cookies|n}}, 1 {{ItemIcon|Confidence|n}} and 1 {{ItemIcon|Maturity|n}}. This card has {{ItemIcon|CookieGain|n}} 3 and {{ItemIcon|FightReward|n}} 8.

Gain 5 CookiesCookies, 1 ConfidenceConfidence and 1 MaturityMaturity. This card has Cookie GainCookie Gain 3 and Fight RewardFight Reward 8.

Any other argument should just return no icon.

Gain 5{{ItemIcon|Potatoes}} and 5 more {{ItemIcon|Potatoes|n}}.

Gain 5Potatoes and 5 more Potatoes.