Template:Demo RecipeItemIcon: Difference between revisions
From Eco - English Wiki
| [unchecked revision] | [unchecked revision] |
mNo edit summary |
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> | ||
</noinclude> | </noinclude> | ||
Revision as of 14:00, 19 February 2026
Recipe Item Icon
Target
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| size | size | Size in pixels (numbers only)
| Number | optional |
| icon | icon | File name for icon.
| Unknown | required |
| count | count num | A number to display over this icon's image. Useful for showing counts.
| Unknown | optional |