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;">{{#switch:{{{1}}}
<onlyinclude><span style="white-space:nowrap;line-height:1">{{#switch:{{{1}}}
|Cookie=[[File:Cookie_Icon.webp|12px|link=Cookies|alt=Cookies]]{{#ifeq:{{{2|}}}|n|[[Cookies]]}}
|Cookie={{#ifeq:{{{2|}}}|n|[[Cookies]]}}[[File:Cookie_Icon.webp|11px|link=Cookies|alt=Cookies]]
|Cookies=[[File:Cookie_Icon.webp|12px|link=Cookies|alt=Cookies]]{{#ifeq:{{{2|}}}|n|[[Cookies]]}}
|Cookies={{#ifeq:{{{2|}}}|n|[[Cookies]]}}[[File:Cookie_Icon.webp|11px|link=Cookies|alt=Cookies]]
|Confidence=[[File:Confidence_Icon.webp|12px|link=Confidence|alt=Confidence]]{{#ifeq:{{{2|}}}|n|[[Confidence]]}}
|Confidence={{#ifeq:{{{2|}}}|n|[[Confidence]]}}[[File:Confidence_Icon.webp|11px|link=Confidence|alt=Confidence]]
|Maturity=[[File:Maturity_Icon.webp|12px|link=Maturity|alt=Maturity]]{{#ifeq:{{{2|}}}|n|[[Maturity]]}}
|Maturity={{#ifeq:{{{2|}}}|n|[[Maturity]]}}[[File:Maturity_Icon.webp|11px|link=Maturity|alt=Maturity]]
|#default={{#ifeq:{{{2|}}}|n|[[{{{1}}}]]}}
|#default=[[{{{1}}}]]
}}</span></onlyinclude>
}}</span></onlyinclude>
<noinclude>
<noinclude>
Line 10: Line 10:


<pre>
<pre>
{{ItemIcon|Cookies}}
Gain 5{{ItemIcon|Cookies}}, 1{{ItemIcon|Confidence}} and 1{{ItemIcon|Maturity}}.
{{ItemIcon|Confidence}}
{{ItemIcon|Maturity}}
</pre>
</pre>


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


<pre>
<pre>
{{ItemIcon|Cookies|n}}
Gain 5 {{ItemIcon|Cookies|n}}, 1 {{ItemIcon|Confidence|n}} and 1 {{ItemIcon|Maturity|n}}.
{{ItemIcon|Confidence|n}}
{{ItemIcon|Maturity|n}}
</pre>
</pre>


Gain 5{{ItemIcon|Cookies|n}}.
Gain 5 {{ItemIcon|Cookies|n}}, 1 {{ItemIcon|Confidence|n}} and 1 {{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>
<pre>
{{ItemIcon|Potatoes}}
Gain 5{{ItemIcon|Potatoes}} and 5 more {{ItemIcon|Potatoes|n}}.
{{ItemIcon|Potatoes|n}}
</pre>
</pre>


Gain 5{{ItemIcon|Potatoes|n}}.
Gain 5{{ItemIcon|Potatoes}} and 5 more {{ItemIcon|Potatoes|n}}.
 
Gain 5{{ItemIcon|Potatoes|n}}.
</noinclude>
</noinclude>

Revision as of 20:11, 11 November 2025

[[{{{1}}}]]

Displays icons for various things. Currently supports:

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

Gain 5Cookies, 1Confidence and 1Maturity.

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

Gain 5 CookiesCookies, 1 ConfidenceConfidence and 1 MaturityMaturity.

Any other argument should just return no icon.

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

Gain 5Potatoes and 5 more Potatoes.