Template:ItemIcon: Difference between revisions
No edit summary |
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= | |Cookie={{#ifeq:{{{2|}}}|n|[[Cookies]]}}[[File:Cookie_Icon.webp|11px|link=Cookies|alt=Cookies]] | ||
|Cookies={{#ifeq:{{{2|}}}|n|[[Cookies]]}}[[File:Cookie_Icon.webp|11px|link=Cookies|alt=Cookies]] | |||
|Confidence={{#ifeq:{{{2|}}}|n|[[Confidence]]}}[[File:Confidence_Icon.webp|11px|link=Confidence|alt=Confidence]] | |||
|Maturity={{#ifeq:{{{2|}}}|n|[[Maturity]]}}[[File:Maturity_Icon.webp|11px|link=Maturity|alt=Maturity]] | |||
|#default= | |#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}}. | ||
<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}}. | ||
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 | Gain 5{{ItemIcon|Potatoes}} and 5 more {{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 5
, 1Confidence and 1Maturity.
Gain 5 {{ItemIcon|Cookies|n}}, 1 {{ItemIcon|Confidence|n}} and 1 {{ItemIcon|Maturity|n}}.
Gain 5 Cookies
, 1 ConfidenceConfidence and 1 MaturityMaturity.
Any other argument should just return no icon.
Gain 5{{ItemIcon|Potatoes}} and 5 more {{ItemIcon|Potatoes|n}}.