Difference between revisions of "Template:SimpleItembox/ComponentRow"

From Space Engineers Wiki
Jump to: navigation, search
m (Updated remaining links)
m (Changed Hack-line component. Cleaned up code.)
Line 1: Line 1:
 
<includeonly><!--
 
<includeonly><!--
-->{{#if: {{#show: Mod:Vanilla/{{{1}}}|?Component{{{2}}}#-}}|<!--
+
-->{{#if: {{#show:{{{1}}}|?Component{{{2}}}#-}}|<!--
 
HACK LINE
 
HACK LINE
     -->{{#ifeq: {{#show: Mod:Vanilla/{{{1}}}|?Component{{{2}}}#-}}|Computer|<!--
+
     -->{{#ifeq: {{#show:{{{1}}}|?Component{{{2}}}#-}}|{{{Mod:Vanilla/Component/Computer|<!-- Place the Hack line above the Computer component
       -->{{#ifeq: {{#show: Mod:Vanilla/{{{1}}}|?CriticalComponent#-}}|{{{2}}}||<!-- Only show the hack line if it is not in the same place as the Functional line
+
       -->{{#ifeq: {{#show:{{{1}}}|?CriticalComponent#-}}|{{{2}}}||<!-- Only show the hack line if it is not in the same place as the Functional line
         --><div style="order:{{#show: {{{1|SmallHydrogenTankSmall}}}|?CriticalComponent#-}}; display: flex; align-items: center; max-height: 2px"><!--
+
         --><div style="order:{{#show: {{{1}}}|?CriticalComponent#-}}; display: flex; align-items: center; max-height: 2px"><!--
 
         --><hr style="height: 2px; background-color: #486d82; flex-grow: 1"/><!--
 
         --><hr style="height: 2px; background-color: #486d82; flex-grow: 1"/><!--
 
           --><span style="line-height: 0.5em; font-size: 0.75em">&nbsp;{{SimpleItembox/Hack{{lang}}}}&nbsp;</span><!--
 
           --><span style="line-height: 0.5em; font-size: 0.75em">&nbsp;{{SimpleItembox/Hack{{lang}}}}&nbsp;</span><!--
Line 14: Line 14:
 
   --><div style="display: flex; justify-content: space-between; align-items:center; order:{{{2}}}"><!--
 
   --><div style="display: flex; justify-content: space-between; align-items:center; order:{{{2}}}"><!--
 
     --><div><!--
 
     --><div><!--
       -->[[File:{{#show: Mod:Vanilla/{{#show: Mod:Vanilla/{{{1}}}|?Component{{{2}}}#-}}|?Icon#-|default=No Image Icon.png}}|32px]]<!--
+
       -->[[File:{{#show:{{#show:{{{1}}}|?Component{{{2}}}#-}}|?Icon#-|default=No Image Icon.png}}|32px]]&nbsp;<!--
        -->[[Mod:Vanilla/{{#show: Mod:Vanilla/{{{1}}} | ?Component{{{2}}}#-|default=No Item}}{{lang}} |<!--
+
      -->[[{{#show:{{{1}}}|?Component{{{2}}}#-|default=No Item}}{{lang}}|{{translate|{{#show: {{{1}}}|?Component{{{2}}}#-|default=No Item}}}}]]<!--
        -->&nbsp;{{translate|Mod:Vanilla/{{#show: Mod:Vanilla/{{{1}}}|?Component{{{2}}}#-|default=No Item}}}}]]<!--
+
    --></div><!--
      --></div><!--
+
    -->{{#show:{{{1}}}|?Component{{{2}}}Amount#-|default=0}}<!--
      -->{{#show: Mod:Vanilla/{{{1}}}|?Component{{{2}}}Amount#-|default=0}}<!--
 
 
     --></div><!--
 
     --></div><!--
 
-->}}<!--
 
-->}}<!--
 
--></includeonly><noinclude>
 
--></includeonly><noinclude>
 
 
{{Under Construction}}
 
{{Under Construction}}
 
<pre>{{SimpleItembox/ComponentRow|Page|Index}}</pre>
 
<pre>{{SimpleItembox/ComponentRow|Page|Index}}</pre>

Revision as of 18:45, 3 April 2020

🚧🚧🚧 Under Construction 🚧🚧🚧
Attention - This page is currently being actively worked on, and may contain incomplete information
{{SimpleItembox/ComponentRow|Page|Index}}