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

From Space Engineers Wiki
Jump to: navigation, search
(Created page with "{{#if:{{#vardefineecho:PROP|{{#explode:{{{2}}}|;|{{{3}}}}}}}|  {{!}} style="text-align:right;" {{!}} {{#ifeq:{{#show:Property:{{#var:PROP}}|?Has type#-}}|Text|{{Property:...")
 
m (Added special case for properties of type Page)
Line 1: Line 1:
{{#if:{{#vardefineecho:PROP|{{#explode:{{{2}}}|;|{{{3}}}}}}}| 
+
<onlyinclude><!--
{{!}} style="text-align:right;" {{!}} {{#ifeq:{{#show:Property:{{#var:PROP}}|?Has type#-}}|Text|{{Property:{{#var:PROP}}/{{#show:{{{1}}}|?{{#var:PROP}}}}{{lang}}}}|{{#show:{{{1}}}|?{{#var:PROP}}}}}}}}<noinclude>
+
-->{{#if:{{#vardefineecho:PROP|{{#explode:{{{2}}}|;|{{{3}}}}}}}|&nbsp;
 
+
{{!}} style="text-align:right;" {{!}} {{#switch:{{#show:Property:{{#var:PROP}}|?Has type#-}}<!--
<pre>
+
    -->|Text={{Property:{{#var:PROP}}/{{#show:{{{1}}}|?{{#var:PROP}}}}{{lang}}}}<!--
{{#if: {{#show:{{{1}}}|?{{#var:PROPERTY}}|?TypeId}}<!--
+
    -->|Page={{#if: {{#show:{{#show:{{{1}}}|?{{#var:PROP}}#-}}|?TypeId}}<!--
           -->|{{icon|{{#vardefineecho:VALUE|{{#show: {{{1}}}|?{{#var:PROPERTY}}#-}}}}|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:PROPERTY}}#-}}}}<!--
+
           -->|{{Translate|{{#show: {{{1}}}|?{{#var:PROP}}#-}}}}<!--
</pre>
+
    -->}}<!--
</noinclude>
+
    -->|#default={{#show:{{{1}}}|?{{#var:PROP}}}}<!--
 +
  -->}}<!--
 +
-->}}</onlyinclude>

Revision as of 21:58, 20 May 2020