Template:ItemIcon: Difference between revisions

From Little Troubles
Chesto (talk | contribs)
No edit summary
Chesto (talk | contribs)
mNo edit summary
Line 1: Line 1:
<includeonly><span style="white-space:nowrap; display:inline-block; line-height:0;">{{#switch:{{{1}}}
<includeonly><span style="white-space:nowrap; display:inline-block; line-height:0;">{{#switch:{{{1}}}
|Cookie=[[File:Cookie Icon.webp|15px|link=Cookies|alt=Cookies]]{{#ifeq:{{{2}}}|n|[[Cookies]]|}}
|Cookie=[[File:Cookie Icon.webp|12px|link=Cookies|alt=Cookies]]{{#ifeq:{{{2}}}|n|[[Cookies]]|}}
|Cookies=[[File:Cookie Icon.webp|15px|link=Cookies|alt=Cookies]]{{#ifeq:{{{2}}}|n|[[Cookies]]|}}
|Cookies=[[File:Cookie Icon.webp|12px|link=Cookies|alt=Cookies]]{{#ifeq:{{{2}}}|n|[[Cookies]]|}}
|Confidence=[[File:Confidence Icon.webp|15px|link=Confidence|alt=Confidence]]{{#ifeq:{{{2}}}|n|[[Confidence]]|}}
|Confidence=[[File:Confidence Icon.webp|12px|link=Confidence|alt=Confidence]]{{#ifeq:{{{2}}}|n|[[Confidence]]|}}
|Maturity=[[File:Maturity Icon.webp|15px|link=Maturity|alt=Maturity]]{{#ifeq:{{{2}}}|n|[[Maturity]]|}}
|Maturity=[[File:Maturity Icon.webp|12px|link=Maturity|alt=Maturity]]{{#ifeq:{{{2}}}|n|[[Maturity]]|}}
|#default=[[{{{1}}}]]
|#default=[[{{{1}}}]]
}}</span></includeonly>
}}</span></includeonly>
Line 15: Line 15:
</pre>
</pre>


{{ItemIcon|Cookies}}
Gain 5{{ItemIcon|Cookies}}.
{{ItemIcon|Confidence}}
 
{{ItemIcon|Maturity}}
Gain 1{{ItemIcon|Confidence}}.
 
Gain 1{{ItemIcon|Maturity}}.


<pre>
<pre>
Line 25: Line 27:
</pre>
</pre>


{{ItemIcon|Cookies|n}}
Gain 5{{ItemIcon|Cookies|n}}.
{{ItemIcon|Confidence|n}}
 
{{ItemIcon|Maturity|n}}
Gain 1{{ItemIcon|Confidence|n}}.
 
Gain 1{{ItemIcon|Maturity|n}}.


Any other argument should just return no icon.
Any other argument should just return no icon.
<pre>
{{ItemIcon|Potatoes}}
{{ItemIcon|Potatoes|n}}
</pre>
Gain 5{{ItemIcon|Potatoes|n}}.
Gain 5{{ItemIcon|Potatoes|n}}.
</noinclude>
</noinclude>

Revision as of 19:26, 11 November 2025


Displays icons for various things. Currently supports:

{{ItemIcon|Cookies}}
{{ItemIcon|Confidence}}
{{ItemIcon|Maturity}}

Gain 5Cookies .

Gain 1Confidence .

Gain 1Maturity .

{{ItemIcon|Cookies|n}}
{{ItemIcon|Confidence|n}}
{{ItemIcon|Maturity|n}}

Gain 5CookiesCookies .

Gain 1ConfidenceConfidence .

Gain 1MaturityMaturity .

Any other argument should just return no icon.

{{ItemIcon|Potatoes}}
{{ItemIcon|Potatoes|n}}

Gain 5Potatoes .

Gain 5Potatoes .