Template:Recipe Component: Difference between revisions

From Space Station 14 Wiki
remove the question mark we do NOT need it
add support for item links
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%">'''{{{item|Unknown}}} [{{{amount|1}}}]'''</div></div>
<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|}}}|\[\[{{{itemlink}}}}}{{{item|Unknown}}}{{#if:{{{itemlink|}}}|\]\]}} [{{{amount|1}}}]'''</div></div>

Revision as of 09:11, 9 May 2025

Unknown [1]