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

From Space Engineers Wiki
Jump to: navigation, search
m (Removed test code)
m (Only display the Page link if it has one.)
Line 3: Line 3:
 
{{!}} {{#switch:{{#show:Property:{{#var:PROP}}|?Has type#-}}<!--
 
{{!}} {{#switch:{{#show:Property:{{#var:PROP}}|?Has type#-}}<!--
 
     -->|Text=style="text-align:left;" {{!}} {{Property:{{#var:PROP}}/{{#show:{{{1}}}|?{{#var:PROP}}}}{{lang}}}}<!--
 
     -->|Text=style="text-align:left;" {{!}} {{Property:{{#var:PROP}}/{{#show:{{{1}}}|?{{#var:PROP}}}}{{lang}}}}<!--
     -->|Page=style="text-align:left;" {{!}} {{#if: {{#show:{{#show:{{{1}}}|?{{#var:PROP}}#-}}|?TypeId}}<!--
+
     -->|Page=style="text-align:left;" {{!}} {{#if:{{#vardefineecho:VALUE|{{#show: {{{1}}}|?{{#var:PROP}}#-}}}}<!--
       -->|[[File:{{#show:{{#vardefineecho:VALUE|{{#show: {{{1}}}|?{{#var:PROP}}#-}}}}|?Icon#-}}|{{#var:icon-size|64px}}|link={{#show:{{#var:VALUE}}|?Main article#-}}{{lang}}]]<!--
+
       -->|{{#if: {{#show:{{#show:{{{1}}}|?{{#var:PROP}}#-}}|?TypeId}}<!--
        -->&nbsp;[[{{#show:{{#var:VALUE}}|?Main_article#-}}{{lang}}|{{Translate|{{#var:VALUE}}}}]]<!--
+
        -->|[[File:{{#show:{{#var:VALUE}}|?Icon#-}}|{{#var:icon-size|64px}}|link={{#show:{{#var:VALUE}}|?Main article#-}}{{lang}}]]<!--
      -->|{{Translate|{{#show: {{{1}}}|?{{#var:PROP}}#-}}}}<!--
+
          -->&nbsp;[[{{#show:{{#var:VALUE}}|?Main_article#-}}{{lang}}|{{Translate|{{#var:VALUE}}}}]]<!--
 +
        -->|[[{{#var:VALUE}}]]<!--
 +
      -->}}<!--
 
     -->}}<!--
 
     -->}}<!--
 
     -->|#default=style="text-align:right;" {{!}} {{#show:{{{1}}}|?{{#var:PROP}}}}<!--
 
     -->|#default=style="text-align:right;" {{!}} {{#show:{{{1}}}|?{{#var:PROP}}}}<!--
 
   -->}}<!--
 
   -->}}<!--
 
-->}}</onlyinclude>
 
-->}}</onlyinclude>

Revision as of 22:35, 20 May 2020