Difference between revisions of "Template:Block list/cell"
From Space Engineers Wiki
Vox Serico (talk | contribs) m (Added special case for properties of type Page) |
Vox Serico (talk | contribs) m (Fixed sorting) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude><!-- | <onlyinclude><!-- | ||
-->{{#if:{{#vardefineecho:PROP|{{#explode:{{{2}}}|;|{{{3}}}}}}}| | -->{{#if:{{#vardefineecho:PROP|{{#explode:{{{2}}}|;|{{{3}}}}}}}| | ||
− | + | {{!}} {{#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={{# | + | -->|Page=data-sort-value="{{#vardefineecho:VALUE|{{#show: {{{1}}}|?{{#var:PROP}}#-}}}}" style="text-align:left;" {{!}} {{#if:{{#var:VALUE}}<!-- |
− | + | -->|{{#if: {{#show:{{#show:{{{1}}}|?{{#var:PROP}}#-}}|?TypeId}}<!-- | |
− | -->|{{Translate|{{# | + | -->|[[File:{{#show:{{#var:VALUE}}|?Icon#-}}|{{#var:icon-size|64px}}|link={{#show:{{#var:VALUE}}|?Main article#-}}{{lang}}]]<!-- |
+ | --> [[{{#show:{{#var:VALUE}}|?Main_article#-}}{{lang}}|{{Translate|{{#var:VALUE}}}}]]<!-- | ||
+ | -->|[[{{#var:VALUE}}]]<!-- | ||
+ | -->}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
− | -->|#default={{#show:{{{1}}}|?{{#var:PROP}}}}<!-- | + | -->|#default=data-sort-value="{{#show:{{{1}}}|?{{#var:PROP}}#-n}}" style="text-align:right;" {{!}} {{#show:{{{1}}}|?{{#var:PROP}}}}<!-- |
-->}}<!-- | -->}}<!-- | ||
-->}}</onlyinclude> | -->}}</onlyinclude> |