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" /> | ||
<templatedata> | |||
{ | |||
"params": { | |||
"size": { | |||
"description": "Size in pixels (numbers only)", | |||
"example": "64", | |||
"type": "number", | |||
"suggestedvalues": [ | |||
"64", | |||
"128" | |||
], | |||
"default": "64" | |||
}, | |||
"icon": { | |||
"description": "File name for icon.", | |||
"example": "DaisyItem_Icon.png", | |||
"required": true | |||
}, | |||
"count": { | |||
"aliases": [ | |||
"num" | |||
], | |||
"description": "A number to display over this icon's image. Useful for showing counts.", | |||
"example": "10" | |||
} | |||
} | |||
} | |||
</templatedata> | |||
<!-- NOTE: Do not indent lines in <includeonly>. Leading spaces create <pre> blocks. --> | <!-- NOTE: Do not indent lines in <includeonly>. Leading spaces create <pre> blocks. --> | ||
<!-- Minify template HTML using something like: https://codebeautify.org/minify-html --> | <!-- 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" --> | <!-- 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- | <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> | <noinclude> | ||
=== Recipe Item Icon === | === Recipe Item Icon === | ||
{{Demo RecipeItemIcon|icon=DaisyItem_Icon.png|count=10}} | {{Demo RecipeItemIcon|icon=DaisyItem_Icon.png|count=10|size=64}} | ||
=== Target === | === Target === | ||
Revision as of 13:58, 19 February 2026
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 |
Recipe Item Icon
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 |
Target