Difference between revisions of "Template:Block list"

From Space Engineers Wiki
Jump to: navigation, search
m
m
Line 3: Line 3:
 
   -->|{{#if: {{#vardefineecho:icon-size|{{#explode:{{{userparam}}}|;|1}}}}|{{#var:icon-size|64px}}}}<!--
 
   -->|{{#if: {{#vardefineecho:icon-size|{{#explode:{{{userparam}}}|;|1}}}}|{{#var:icon-size|64px}}}}<!--
 
   -->|link={{#show:{{{1}}}|?Main article#-}}{{lang}}]]<!--
 
   -->|link={{#show:{{{1}}}|?Main article#-}}{{lang}}]]<!--
   -->&nbsp;[[{{#show:{{{1}}}|?Main article#-}}|{{#if: {{lang}}|{{{{{1}}}{{lang}}}}|{{#show:{{{1}}}|?Translation}}}}]]<!--
+
   -->&nbsp;[[{{#show:{{{1}}}|?Main article#-}}|{{#if: {{lang}}|{{{{{1}}}{{lang}}}}|{{#show:{{{1}}}|?Translation}}}}]]&nbsp;
  -->{{#if:{{#vardefineecho:prop0|{{#explode:{{{userparam}}}|;|2}}}}|&nbsp;
+
{{#if:{{#vardefineecho:prop0|{{#explode:{{{userparam}}}|;|2}}}}|&nbsp;
 
{{!}}style="text-align:right;"{{!}}{{#ifeq:{{#show:Property:{{#var:prop0}}|?Has type#-}}|Text|{{Property:{{#var:prop0}}/{{#show:{{{1}}}|?{{#var:prop0}}}}{{lang}}}}|{{#show:{{{1}}}|?{{#var:prop0}}}}}}}}<!--
 
{{!}}style="text-align:right;"{{!}}{{#ifeq:{{#show:Property:{{#var:prop0}}|?Has type#-}}|Text|{{Property:{{#var:prop0}}/{{#show:{{{1}}}|?{{#var:prop0}}}}{{lang}}}}|{{#show:{{{1}}}|?{{#var:prop0}}}}}}}}<!--
 
   -->{{#if:{{#vardefineecho:prop1|{{#explode:{{{userparam}}}|;|3}}}}|&nbsp;
 
   -->{{#if:{{#vardefineecho:prop1|{{#explode:{{{userparam}}}|;|3}}}}|&nbsp;

Revision as of 23:26, 18 April 2020

Block list template, for use in #ask queries.

Defaults to this for backwards compatibility:

[[{{{1}}}]] 64px {{{2}}} {{{3}}}

If |userparam= is defined in the query, the columns will be picked by each property.

userparam
First column's title;icon-size;property1;property2;property3...
Example usage
Armor Block;64px;Mass;Integrity;IsAirTight;DeformationRatio