Difference between revisions of "Template:Itemlink-li"

From Space Engineers Wiki
Jump to: navigation, search
m (Fixed example usage)
m (Add trim to fix whitespace issue with translation)
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><li style="display:flex; align-items: center;">[[File:{{#show:{{{1}}}|?Icon}}|{{{2|64px}}}|link={{#show:{{{1}}}|?Main article#-|default={{#show:{{{1}}}|?Translation#-}}}}{{lang}}]]<div style="margin-left:0.5em">[[{{#show:{{{1}}}|?Main article#-|default={{#show:{{{1}}}|?Translation#-}}}}{{lang}}|{{#if: {{lang}}|{{{{{1}}}{{lang}}}}|{{#show:{{{1}}}|?Translation#-}}}}]]</div></li></includeonly><noinclude>
+
<includeonly><!--
 +
-->{{#vardefine:TRANSLATION|{{#show:{{trim|{{{1}}}}}{{lang}}|?Translation}}}}<!--
 +
-->{{#vardefine:ARTICLE|{{#show:{{{1}}}|?Main article#-|default={{#var:TRANSLATION}}}}}}<!--
 +
--><div style="display:flex; align-items: center;  flex: 0 0 13em; margin: 0.5em;"><!--
 +
  -->[[File:{{#show:{{{1}}}|?Icon}}|{{{2|{{{userparam|64px}}}}}}|link={{#var:ARTICLE}}{{lang}}]]<!--
 +
  --><div style="margin-left:0.5em"><!--
 +
    -->[[{{#var:ARTICLE}}{{lang}}|{{#var:TRANSLATION}}]]<!--
 +
  --></div><!--
 +
--></div><!--
 +
--></includeonly><noinclude><code><nowiki>{{Itemlink-li|Page|image size (optional)}}</nowiki></code>
  
<code><nowiki>{{Itemlink-li|Page|image size (optional)}}</nowiki></code>
+
<pre><div style="display: flex; flex-wrap: wrap;">
 
 
<pre><ul style="list-style: none; columns: 12em auto">
 
 
{{Itemlink-li|Mod:Vanilla/CubeBlock/SmallHydrogenTankSmall}}
 
{{Itemlink-li|Mod:Vanilla/CubeBlock/SmallHydrogenTankSmall}}
 
{{Itemlink-li|Mod:Vanilla/CubeBlock/ConveyorTube}}
 
{{Itemlink-li|Mod:Vanilla/CubeBlock/ConveyorTube}}
 
{{Itemlink-li|Mod:Vanilla/CubeBlock/LargeAssembler}}
 
{{Itemlink-li|Mod:Vanilla/CubeBlock/LargeAssembler}}
</ul></pre>
+
</div></pre>
  
<ul style="list-style: none; columns: 12em auto">
+
<div style="display: flex; flex-wrap: wrap;">
 
{{Itemlink-li|Mod:Vanilla/CubeBlock/SmallHydrogenTankSmall}}
 
{{Itemlink-li|Mod:Vanilla/CubeBlock/SmallHydrogenTankSmall}}
 
{{Itemlink-li|Mod:Vanilla/CubeBlock/ConveyorTube}}
 
{{Itemlink-li|Mod:Vanilla/CubeBlock/ConveyorTube}}
 
{{Itemlink-li|Mod:Vanilla/CubeBlock/LargeAssembler}}
 
{{Itemlink-li|Mod:Vanilla/CubeBlock/LargeAssembler}}
</ul>
+
</div>
  
 
</noinclude>
 
</noinclude>

Latest revision as of 14:03, 17 May 2020

{{Itemlink-li|Page|image size (optional)}}

<div style="display: flex; flex-wrap: wrap;">
{{Itemlink-li|Mod:Vanilla/CubeBlock/SmallHydrogenTankSmall}}
{{Itemlink-li|Mod:Vanilla/CubeBlock/ConveyorTube}}
{{Itemlink-li|Mod:Vanilla/CubeBlock/LargeAssembler}}
</div>
Small Hydrogen Tank Icon.png
Conveyor Tube Icon.png
Assembler Icon.png