Difference between revisions of "Template:Block list/cell"

From Space Engineers Wiki
Jump to: navigation, search
m (Added special case for properties of type Page)
m (Type-dependent alignment)
Line 1: Line 1:
 
<onlyinclude><!--
 
<onlyinclude><!--
 
-->{{#if:{{#vardefineecho:PROP|{{#explode:{{{2}}}|;|{{{3}}}}}}}|&nbsp;
 
-->{{#if:{{#vardefineecho:PROP|{{#explode:{{{2}}}|;|{{{3}}}}}}}|&nbsp;
{{!}} style="text-align:right;" {{!}} {{#switch:{{#show:Property:{{#var:PROP}}|?Has type#-}}<!--
+
{{!}} {{#switch:{{#show:Property:{{#var:PROP}}|?Has type#-}}<!--
     -->|Text={{Property:{{#var:PROP}}/{{#show:{{{1}}}|?{{#var:PROP}}}}{{lang}}}}<!--
+
     -->|Text=style="text-align:left;" {{!}} {{Property:{{#var:PROP}}/{{#show:{{{1}}}|?{{#var:PROP}}}}{{lang}}}}<!--
     -->|Page={{#if: {{#show:{{#show:{{{1}}}|?{{#var:PROP}}#-}}|?TypeId}}<!--
+
     -->|Page=style="text-align:left;" {{!}} {{#if: {{#show:{{#show:{{{1}}}|?{{#var:PROP}}#-}}|?TypeId}}<!--
 
           -->|{{icon|{{#vardefineecho:VALUE|{{#show: {{{1}}}|?{{#var:PROP}}#-}}}}|tiny}}&nbsp;[[{{#show:{{#var:VALUE}}|?Main_article#-}}{{lang}}|{{Translate|{{#var:VALUE}}}}]]<!--
 
           -->|{{icon|{{#vardefineecho:VALUE|{{#show: {{{1}}}|?{{#var:PROP}}#-}}}}|tiny}}&nbsp;[[{{#show:{{#var:VALUE}}|?Main_article#-}}{{lang}}|{{Translate|{{#var:VALUE}}}}]]<!--
 
           -->|{{Translate|{{#show: {{{1}}}|?{{#var:PROP}}#-}}}}<!--
 
           -->|{{Translate|{{#show: {{{1}}}|?{{#var:PROP}}#-}}}}<!--
 
     -->}}<!--
 
     -->}}<!--
     -->|#default={{#show:{{{1}}}|?{{#var:PROP}}}}<!--
+
     -->|#default=style="text-align:right;" {{!}} {{#show:{{{1}}}|?{{#var:PROP}}}}<!--
 
   -->}}<!--
 
   -->}}<!--
 
-->}}</onlyinclude>
 
-->}}</onlyinclude>

Revision as of 22:00, 20 May 2020