Template:Recipe (BZ): Difference between revisions

From Subnautica Wiki
m (Reverted edits by Tueman (talk) to last version by BippityBop)
(new version of the recipe template)
Line 1: Line 1:
{|style="height:72px; background-color: rgba(0, 0, 0, 0.3); margin: 0px auto 1em auto; border-radius:75px; width:{{#if:{{{item5|}}}|336|{{#if:{{{item4|}}}|270|{{#if:{{{item3|}}}|204|{{#if:{{{item2|}}}|138|72}}}}}}}}px; float: left; vertical-align: center; position:absolute; margin-top:3px;"
<div style="height:{{#ifeq:{{{small|}}}|yes|36|72}}px;"><!--
|}
{|style="height: 56px!important; background-color: rgba(0, 0, 0, 0.2); margin:0px auto 1em auto; border-radius:75px; width:{{#if:{{{item5|}}}|320|{{#if:{{{item4|}}}|254|{{#if:{{{item3|}}}|188|{{#if:{{{item2|}}}|122|56}}}}}}}}px; float:left; font-family:sans-serif; font-size:16px; font-family: aller; margin-left:8px; margin-top:11px;"
|-
|style="position:absolute; margin-left:{{#ifexpr:{{{count1|1}}} > 9|11|16}}px; margin-top:-5px;"|{{IconCreate|icon={{{item1|Battery}}}|bg=none|width=55}}<div style="bottom:13px; position:relative;"><font color="93dc02">x{{{count1|1}}}</font></div>
{{#if:{{{item2|}}}|
{{!}}style="position:absolute; margin-left:{{#ifexpr:{{{count2|1}}} > 9|77|82}}px; margin-top:-5px;"{{!}}{{IconCreate|icon={{{item2|Ion Cube}}}|bg=none|width=55}}<div style="bottom:13px; position:relative;"><font color="93dc02">x{{{count2|1}}}</font></div>|}}
{{#if:{{{item3|}}}|
{{!}}style="position:absolute; margin-left:{{#ifexpr:{{{count3|1}}} > 9|143|148}}px; margin-top:-5px;"{{!}}{{IconCreate|icon={{{item3|Titanium}}}|bg=none|width=55}}<div style="bottom:13px; position:relative;"><font color="93dc02">x{{{count3|1}}}</font></div>|}}
{{#if:{{{item4|}}}|
{{!}}style="position:absolute; margin-left:{{#ifexpr:{{{count4|1}}} > 9|209|214}}px; margin-top:-5px;"{{!}}{{IconCreate|icon={{{item4|}}}|bg=none|width=55}}<div style="bottom:13px; position:relative;"><font color="93dc02">x{{{count4|1}}}</font></div>|}}
{{#if:{{{item5|}}}|
{{!}}style="position:absolute; margin-left:{{#ifexpr:{{{count5|1}}} > 9|275|280}}px; margin-top:-5px;"{{!}}{{IconCreate|icon={{{item5|}}}|bg=none|width=55}}<div style="bottom:13px; position:relative;"><font color="93dc02">x{{{count5|1}}}</font></div>|}}
|}
<div style="float:left; margin-left:57px;">{{IconCreate|icon={{{result|Unknown}}}|width=78}}</div>


{{#if:{{{item1|}}}|[[Category:Crafted with {{{item1}}}]]|}}
-->{{#if: {{{item1|{{{item|}}}}}} | {{repeat | 1={{{count1|{{{count|1}}}}}} | 2=<span class="recipe-icon" style="position: relative; display: inline-block; margin: 3px; top: 1px; bottom: 1px; left: 1px; right: 1px;">[[File:{{{item1|{{{item|}}}}}}.png{{#ifeq:{{{small|}}}|yes|{{!}}32px|{{!}}54px}}|link={{{item1|{{{item|}}}}}}]]</span>| 3=<span class="inventory" style="font-size:150%;vertical-align:middle;margin: 3px;">&times;'''{{{count1|{{{count|1}}}}}}'''</span> }} }}<!--
{{#if:{{{item2|}}}|[[Category:Crafted with {{{item2}}}]]|}}

{{#if:{{{item3|}}}|[[Category:Crafted with {{{item3}}}]]|}}
-->{{#if: {{{item2|}}} | {{repeat | 1={{{count2|1}}} | 2=<span class="recipe-icon" style="position: relative; display: inline-block; margin: 3px; top: 1px; bottom: 1px; left: 1px; right: 1px;">[[File:{{{item2|}}}.png{{#ifeq:{{{small|}}}|yes|{{!}}32px|{{!}}54px}}|link={{{item2|}}}]]</span> | 3=<span class="times" style="font-size:150%;vertical-align:middle;margin: 3px;">&times;'''{{{count2|1}}}'''</span> }} }}<!--
{{#if:{{{item4|}}}|[[Category:Crafted with {{{item4}}}]]|}}

{{#if:{{{item5|}}}|[[Category:Crafted with {{{item5}}}]]|}}
-->{{#if: {{{item3|}}} | {{repeat | 1={{{count3|1}}} | 2=<span class="recipe-icon" style="position: relative; display: inline-block; margin: 3px; top: 1px; bottom: 1px; left: 1px; right: 1px;">[[File:{{{item3|}}}.png{{#ifeq:{{{small|}}}|yes|{{!}}32px|{{!}}54px}}|link={{{item3|}}}]]</span> | 3=<span class="times" style="font-size:150%;vertical-align:middle;margin: 3px;">&times;'''{{{count3|1}}}'''</span> }} }}<!--
{{#if:{{{machine|}}}|[[Category:Crafted with {{{machine}}}]]|}}

-->{{#if: {{{item4|}}} | {{repeat | 1={{{count4|1}}} | 2=<span class="recipe-icon" style="position: relative; display: inline-block; margin: 3px; top: 1px; bottom: 1px; left: 1px; right: 1px;">[[File:{{{item4|}}}.png{{#ifeq:{{{small|}}}|yes|{{!}}32px|{{!}}54px}}|link={{{item4|}}}]]</span> | 3=<span class="times" style="font-size:150%;vertical-align:middle;margin: 3px;">&times;'''{{{count4|1}}}'''</span> }} }}<!--

-->{{#if: {{{item5|}}} | {{repeat | 1={{{count5|1}}} | 2=<span class="recipe-icon" style="position: relative; display: inline-block; margin: 3px; top: 1px; bottom: 1px; left: 1px; right: 1px;">[[File:{{{item5|}}}.png{{#ifeq:{{{small|}}}|yes|{{!}}32px|{{!}}54px}}|link={{{item5|}}}]]</span> | 3=<span class="times" style="font-size:150%;vertical-align:middle;margin: 3px;">&times;'''{{{count4|1}}}'''</span> }} }}<!--

-->{{#if: {{{item6|}}} | {{repeat | 1={{{count6|1}}} | 2=<span class="recipe-icon" style="position: relative; display: inline-block; margin: 3px; top: 1px; bottom: 1px; left: 1px; right: 1px;">[[File:{{{item6|}}}.png{{#ifeq:{{{small|}}}|yes|{{!}}32px|{{!}}54px}}|link={{{item6|}}}]]</span> | 3=<span class="times" style="font-size:150%;vertical-align:middle;margin: 3px;">&times;'''{{{count4|1}}}'''</span> }} }}<!--

-->{{#if: {{{item7|}}} | {{repeat | 1={{{count7|1}}} | 2=<span class="recipe-icon" style="position: relative; display: inline-block; margin: 3px; top: 1px; bottom: 1px; left: 1px; right: 1px;">[[File:{{{item7|}}}.png{{#ifeq:{{{small|}}}|yes|{{!}}32px|{{!}}54px}}|link={{{item7|}}}]]</span> | 3=<span class="times" style="font-size:150%;vertical-align:middle;margin: 3px;">&times;'''{{{count4|1}}}'''</span> }} }}<!--

-->{{#if: {{{item8|}}} | {{repeat | 1={{{count8|1}}} | 2=<span class="recipe-icon" style="position: relative; display: inline-block; margin: 3px; top: 1px; bottom: 1px; left: 1px; right: 1px;">[[File:{{{item8|}}}.png{{#ifeq:{{{small|}}}|yes|{{!}}32px|{{!}}54px}}|link={{{item8|}}}]]</span> | 3=<span class="times" style="font-size:150%;vertical-align:middle;margin: 3px;">&times;'''{{{count4|1}}}'''</span> }} }}<!--

--><span class="arrow-icon" style="display: inline-block; margin: 3px; vertical-align:middle;">[[File:Arrow-right_(1).png]]</span><!--

-->{{#if: {{{machine|}}} | <span class="machine-icon" style="position: relative; display: inline-block; margin: 3px; top: 1px; bottom: 1px; left: 1px; right: 1px;">[[File:{{{machine|}}}.png{{#ifeq:{{{small|}}}|yes|{{!}}32px|{{!}}54px}}|link={{{machine|}}}]]</span> }}<!--

--><span class="arrow-icon" style="display: inline-block; margin: 3px; vertical-align:middle;">[[File:Arrow-right_(1).png]]</span><!--

-->{{#if: {{{result|}}} | {{repeat | 1={{{resultcount|1}}} | 2=<span class="recipe-icon" style="position: relative; display: inline-block; margin: 3px; top: 1px; bottom: 1px; left: 1px; right: 1px;">[[File:{{{result|}}}.png{{#ifeq:{{{small|}}}|yes|{{!}}32px|{{!}}54px}}|link={{{result|}}}]]</span> | 3=<span class="times" style="font-size:150%;vertical-align:middle;margin: 3px;">&times;'''{{{resultcount|1}}}'''</span> }} }}<!--

-->{{#if: {{{result2|}}} | {{repeat | 1={{{resultcount2|1}}} | 2=<span class="recipe-icon" style="position: relative; display: inline-block; margin: 3px; top: 1px; bottom: 1px; left: 1px; right: 1px;">[[File:{{{result2|}}}.png{{#ifeq:{{{small|}}}|yes|{{!}}32px|{{!}}54px}}|link={{{result2|}}}]]</span> | 3=<span class="times" style="font-size:150%;vertical-align:middle;margin: 3px;">&times;'''{{{resultcount2|1}}}'''</span> }} }}<!--

-->{{#if: {{{result3|}}} | {{repeat | 1={{{resultcount3|1}}} | 2=<span class="recipe-icon" style="position: relative; display: inline-block; margin: 3px; top: 1px; bottom: 1px; left: 1px; right: 1px;">[[File:{{{result3|}}}.png{{#ifeq:{{{small|}}}|yes|{{!}}32px|{{!}}54px}}|link={{{result3|}}}]]</span> | 3=<span class="times" style="font-size:150%;vertical-align:middle;margin: 3px;">&times;'''{{{resultcount3|1}}}'''</span> }} }}<!--

-->{{#if: {{{note|}}} | <span class="recipe-note" style="display: inline-block; margin: 3px 3px 3px 10px; vertical-align: middle;">{{{note|}}}</span>}}<!--



-->
{{#if:{{{Main}}}||
{{#if:{{{item1|}}}|[[Category:Crafted with {{{item1}}}]]}}
{{#if:{{{item2|}}}|[[Category:Crafted with {{{item2}}}]]}}
{{#if:{{{item3|}}}|[[Category:Crafted with {{{item3}}}]]}}
{{#if:{{{item4|}}}|[[Category:Crafted with {{{item4}}}]]}}
{{#if:{{{item5|}}}|[[Category:Crafted with {{{item5}}}]]}}
{{#if:{{{item6|}}}|[[Category:Crafted with {{{item6}}}]]}}
{{#if:{{{item7|}}}|[[Category:Crafted with {{{item7}}}]]}}
{{#if:{{{item8|}}}|[[Category:Crafted with {{{item8}}}]]}}
{{#if:{{{machine|}}}|{{#switch:{{{machine|}}}|Mobile Vehicle Bay=[[Category:Constructed with Mobile Vehicle Bay]]|Builder|Habitat Builder=[[Category:Constructed with Habitat Builder]]|#default=[[Category:Crafted with {{{machine}}}]]}}}}}}<!--

--></div><noinclude>[{{Purge}}]{{Documentation}}</noinclude><noinclude>
[[Category:Templates]]
</noinclude>

Revision as of 17:22, 10 July 2019

Battery Icon.png
x1



1x1 default bg.png
Unknown Icon.png