Template:Demo RecipeItemIcon: Difference between revisions

From Eco - English Wiki
[unchecked revision][unchecked revision]
WugWugg (talk | contribs)
mNo edit summary
WugWugg (talk | contribs)
mNo edit summary
Line 1: Line 1:
<templatestyles src="Template:Demo_RecipeItemIcon/styles.css" />
<templatestyles src="Template:Demo_RecipeItemIcon/styles.css" />
<!-- NOTE: Do not indent lines in <includeonly>. Leading spaces create <pre> blocks. -->
<!-- Minify template HTML using something like: https://codebeautify.org/minify-html -->
<!-- Edit externally and to get indents back use same editor, just click "beautify" in the middle instead of "minify" -->
<includeonly><div class="recipe-item-icon shadow" style="font-size:{{{size}}}px"><div class="recipe-item-icon__img-container">[[File:{{{icon}}}|{{{size}}}]]</div><span class="recipe-item-icon__count">{{{count|}}}</span></div></includeonly>
<noinclude>
=== Recipe Item Icon ===
{{Demo RecipeItemIcon|icon=DaisyItem_Icon.png|count=10|size=64}}
=== Target ===
[[File:DaisyItem--Icon Yellow.png|frameless|border|upright=3|location=center|link=]]
[[File:DaisyItem--Icon White.png|frameless|border|upright=3|location=center|link=]]


<templatedata>
<templatedata>
Line 29: Line 42:
}
}
</templatedata>
</templatedata>
<!-- NOTE: Do not indent lines in <includeonly>. Leading spaces create <pre> blocks. -->
<!-- Minify template HTML using something like: https://codebeautify.org/minify-html -->
<!-- Edit externally and to get indents back use same editor, just click "beautify" in the middle instead of "minify" -->
<includeonly><div class="recipe-item-icon shadow" style="font-size:{{{size}}}px"><div class="recipe-item-icon__img-container">[[File:{{{icon}}}|{{{size}}}]]</div><span class="recipe-item-icon__count">{{{count|}}}</span></div></includeonly>
<noinclude>
=== Recipe Item Icon ===
{{Demo RecipeItemIcon|icon=DaisyItem_Icon.png|count=10|size=64}}
=== Target ===
[[File:DaisyItem--Icon Yellow.png|frameless|border|upright=3|location=center|link=]]
[[File:DaisyItem--Icon White.png|frameless|border|upright=3|location=center|link=]]
</noinclude>
</noinclude>

Revision as of 14:00, 19 February 2026



Recipe Item Icon

64
10


Target

location=center location=center

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
sizesize

Size in pixels (numbers only)

Suggested values
64 128
Default
64
Example
64
Numberoptional
iconicon

File name for icon.

Example
DaisyItem_Icon.png
Unknownrequired
countcount num

A number to display over this icon's image. Useful for showing counts.

Example
10
Unknownoptional