Difference between revisions of "Template:SimpleItembox/ComponentRow"

From Space Engineers Wiki
Jump to: navigation, search
m
(Code cleanup, enabled custom "Main article" links)
Line 13: Line 13:
 
HACK LINE END
 
HACK LINE END
 
   --><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><!--
+
COMPONENT ICON
      -->[[File:{{#show:{{#show:{{{1}}}|?Component{{{2}}}#-}}|?Icon#-|default=No Image Icon.png}}|32px]]&nbsp;<!--
+
     -->[[File:{{#show:{{#show:{{{1}}}<!--
       -->[[{{#show:{{{1}}}|?Component{{{2}}}#-|default=No Item}}{{lang}}|{{translate|{{#show: {{{1}}}|?Component{{{2}}}#-|default=No Item}}}}]]<!--
+
      -->|?Component{{{2}}}#-}}|?Icon#-|default=No Image Icon.png}}<!--
     --></div><!--
+
      -->|32px<!--
 +
      -->|link={{#if: {{#show:{{#show:{{{1}}}|?Component{{{2}}}#-}}|?Main article#-}}<!--
 +
          -->|{{#show:{{#show:{{{1}}}|?Component{{{2}}}#-}}|?Main article#-}}{{lang}}<!--
 +
          -->|{{#show:{{{1}}}|?Component{{{2}}}#-}}<!--
 +
        -->}}<!--
 +
    -->]]<!--
 +
COMPONENT ICON END
 +
COMPONENT NAME
 +
    --><span style="flex-grow: 1; margin-left: 0.25em"><!--
 +
       -->[[{{#if: {{#show:{{#show:{{{1}}}|?Component{{{2}}}#-}}|?Main article#-}}<!--
 +
          -->|{{#show:{{#show:{{{1}}}|?Component{{{2}}}#-}}|?Main article#-}}{{lang}}<!--
 +
          -->|{{#show:{{{1}}}|?Component{{{2}}}#-}}<!--
 +
        -->}}<!--
 +
        -->|{{#if: {{lang}}<!--
 +
          -->|{{{{#show: {{{1}}}|?Component{{{2}}}#-}}{{lang}}}}<!--
 +
          -->|{{#show: {{#show: {{{1}}}|?Component{{{2}}}#-}}|?Translation}}<!--
 +
        -->}}<!--
 +
      -->]]<!--
 +
     --></span><!--
 +
COMPONENT NAME END
 +
COMPONENT AMOUNT
 
     -->{{#show:{{{1}}}|?Component{{{2}}}Amount#-|default=0}}<!--
 
     -->{{#show:{{{1}}}|?Component{{{2}}}Amount#-|default=0}}<!--
    --></div><!--
+
COMPONENT AMOUNT END
 +
  --></div><!--
 
-->}}<!--
 
-->}}<!--
 
--></includeonly><noinclude>
 
--></includeonly><noinclude>
Line 24: Line 45:
 
<pre>{{SimpleItembox/ComponentRow|Page|Index}}</pre>
 
<pre>{{SimpleItembox/ComponentRow|Page|Index}}</pre>
  
<div style="max-width: 320px">{{SimpleItembox/ComponentRow|Mod:Vanilla/CubeBlock/SmallHydrogenTankSmall|1}}</div>
+
<div style="max-width: 320px">{{SimpleItembox/ComponentRow|Mod:Vanilla/CubeBlock/SmallHydrogenTankSmall|1}}</div></noinclude>
 
 
</noinclude>
 

Revision as of 17:46, 4 April 2020

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