Template:Recipe Component: Difference between revisions
From Starlight wiki
Import template Receipt Component from SS14 Wiki |
m Fix escaped space |
||
| Line 1: | Line 1: | ||
<div style="width: 8em; display: flex; flex-direction: rows; background: #27272e; padding: 0 0.5em; margin-top: 0; margin-bottom: 0;"><div class="recipeimg" style="width: 40px; display: inline-block; text-align: center;">{{#if:{{{image|}}}|[[{{{image}}}|32px]]|}}</div><div style="text-align: right; display: inline-block; width: 100%">'''{{#if:{{{itemlink|}}}|[[Chemistry#chem_{{{itemlink}}}|{{{item|Unknown}}}]]|{{{item|Unknown}}}}} | <div style="width: 8em; display: flex; flex-direction: rows; background: #27272e; padding: 0 0.5em; margin-top: 0; margin-bottom: 0;"><div class="recipeimg" style="width: 40px; display: inline-block; text-align: center;">{{#if:{{{image|}}}|[[{{{image}}}|32px]]|}}</div><div style="text-align: right; display: inline-block; width: 100%">'''{{#if:{{{itemlink|}}}|[[Chemistry#chem_{{{itemlink}}}|{{{item|Unknown}}}]]|{{{item|Unknown}}}}} [{{{amount|1}}}]'''</div></div><noinclude> | ||
{{docs}} | {{docs}} | ||
Revision as of 17:38, 18 June 2026
Unknown [1]
Template:Docs <templatedata> { "params": { "image": { "label": "Icon", "example": "File:YourIcon.png", "description": "Note: Requires specifying \"File:\" before icon name.", "type": "wiki-file-name", "suggested": true }, "itemlink": { "label": "Link", "description": "If specified, creates a link.", "type": "wiki-page-name", "suggested": true }, "item": { "label": "Label", "type": "line", "required": true }, "amount": { "label": "Amount", "type": "number", "suggested": true, "default": "1" } }, "paramOrder": [ "item", "amount", "image", "itemlink" ] } </templatedata>
