Difference between revisions of "Template:Block list"

From Space Engineers Wiki
Jump to: navigation, search
m
m
Line 4: Line 4:
 
   -->|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}}}}]]
{{#if:{{#vardefineecho:prop0|{{#explode:{{{userparam}}}|;|2}}}}|{{!}}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:prop0|{{#explode:{{{userparam}}}|;|2}}}}|{{!}} 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}}}}|{{!}} style="text-align:right;" {{!}} {{#ifeq:{{#show:Property:{{#var:prop1}}|?Has type#-}}|Text|{{Property:{{#var:prop1}}/{{#show:{{{1}}}|?{{#var:prop1}}}}{{lang}}}}|{{#show:{{{1}}}|?{{#var:prop1}}}}}}}}
+
}}<!--
{{#if:{{#vardefineecho:prop2|{{#explode:{{{userparam}}}|;|4}}}}|{{!}} style="text-align:right;" {{!}} {{#ifeq:{{#show:Property:{{#var:prop2}}|?Has type#-}}|Text|{{Property:{{#var:prop2}}/{{#show:{{{1}}}|?{{#var:prop2}}}}{{lang}}}}|{{#show:{{{1}}}|?{{#var:prop2}}}}}}}}
+
-->{{#if:{{#vardefineecho:prop1|{{#explode:{{{userparam}}}|;|3}}}}|{{!}} style="text-align:right;" {{!}} {{#ifeq:{{#show:Property:{{#var:prop1}}|?Has type#-}}|Text|{{Property:{{#var:prop1}}/{{#show:{{{1}}}|?{{#var:prop1}}}}{{lang}}}}|{{#show:{{{1}}}|?{{#var:prop1}}}}}}
{{#if:{{#vardefineecho:prop3|{{#explode:{{{userparam}}}|;|5}}}}|{{!}} style="text-align:right;" {{!}} {{#ifeq:{{#show:Property:{{#var:prop3}}|?Has type#-}}|Text|{{Property:{{#var:prop3}}/{{#show:{{{1}}}|?{{#var:prop3}}}}{{lang}}}}|{{#show:{{{1}}}|?{{#var:prop3}}}}}}}}
+
}}<!--
{{#if:{{#vardefineecho:prop4|{{#explode:{{{userparam}}}|;|6}}}}|{{!}} style="text-align:right;" {{!}} {{#ifeq:{{#show:Property:{{#var:prop4}}|?Has type#-}}|Text|{{Property:{{#var:prop4}}/{{#show:{{{1}}}|?{{#var:prop4}}}}{{lang}}}}|{{#show:{{{1}}}|?{{#var:prop4}}}}}}}}
+
-->{{#if:{{#vardefineecho:prop2|{{#explode:{{{userparam}}}|;|4}}}}|{{!}} style="text-align:right;" {{!}} {{#ifeq:{{#show:Property:{{#var:prop2}}|?Has type#-}}|Text|{{Property:{{#var:prop2}}/{{#show:{{{1}}}|?{{#var:prop2}}}}{{lang}}}}|{{#show:{{{1}}}|?{{#var:prop2}}}}}}
{{#if:{{#vardefineecho:prop5|{{#explode:{{{userparam}}}|;|7}}}}|{{!}} style="text-align:right;" {{!}} {{#ifeq:{{#show:Property:{{#var:prop5}}|?Has type#-}}|Text|{{Property:{{#var:prop5}}/{{#show:{{{1}}}|?{{#var:prop5}}}}{{lang}}}}|{{#show:{{{1}}}|?{{#var:prop5}}}}}}}}
+
}}<!--
{{#if:{{#vardefineecho:prop6|{{#explode:{{{userparam}}}|;|8}}}}|{{!}} style="text-align:right;" {{!}} {{#ifeq:{{#show:Property:{{#var:prop6}}|?Has type#-}}|Text|{{Property:{{#var:prop6}}/{{#show:{{{1}}}|?{{#var:prop6}}}}{{lang}}}}|{{#show:{{{1}}}|?{{#var:prop6}}}}}}}}
+
-->{{#if:{{#vardefineecho:prop3|{{#explode:{{{userparam}}}|;|5}}}}|{{!}} style="text-align:right;" {{!}} {{#ifeq:{{#show:Property:{{#var:prop3}}|?Has type#-}}|Text|{{Property:{{#var:prop3}}/{{#show:{{{1}}}|?{{#var:prop3}}}}{{lang}}}}|{{#show:{{{1}}}|?{{#var:prop3}}}}}}
{{#if:{{#vardefineecho:prop7|{{#explode:{{{userparam}}}|;|9}}}}|{{!}} style="text-align:right;" {{!}} {{#ifeq:{{#show:Property:{{#var:prop7}}|?Has type#-}}|Text|{{Property:{{#var:prop7}}/{{#show:{{{1}}}|?{{#var:prop7}}}}{{lang}}}}|{{#show:{{{1}}}|?{{#var:prop7}}}}}}}}
+
}}<!--
{{#if:{{#vardefineecho:prop8|{{#explode:{{{userparam}}}|;|10}}}}|{{!}} style="text-align:right;" {{!}} {{#ifeq:{{#show:Property:{{#var:prop8}}|?Has type#-}}|Text|{{Property:{{#var:prop8}}/{{#show:{{{1}}}|?{{#var:prop8}}}}{{lang}}}}|{{#show:{{{1}}}|?{{#var:prop8}}}}}}}}
+
-->{{#if:{{#vardefineecho:prop4|{{#explode:{{{userparam}}}|;|6}}}}|{{!}} style="text-align:right;" {{!}} {{#ifeq:{{#show:Property:{{#var:prop4}}|?Has type#-}}|Text|{{Property:{{#var:prop4}}/{{#show:{{{1}}}|?{{#var:prop4}}}}{{lang}}}}|{{#show:{{{1}}}|?{{#var:prop4}}}}}}
{{#if:{{#vardefineecho:prop9|{{#explode:{{{userparam}}}|;|11}}}}|{{!}} style="text-align:right;" {{!}} {{#ifeq:{{#show:Property:{{#var:prop9}}|?Has type#-}}|Text|{{Property:{{#var:prop9}}/{{#show:{{{1}}}|?{{#var:prop9}}}}{{lang}}}}|{{#show:{{{1}}}|?{{#var:prop9}}}}}}}}
+
}}<!--
{{!}}-
+
-->{{#if:{{#vardefineecho:prop5|{{#explode:{{{userparam}}}|;|7}}}}|{{!}} style="text-align:right;" {{!}} {{#ifeq:{{#show:Property:{{#var:prop5}}|?Has type#-}}|Text|{{Property:{{#var:prop5}}/{{#show:{{{1}}}|?{{#var:prop5}}}}{{lang}}}}|{{#show:{{{1}}}|?{{#var:prop5}}}}}}
 +
}}<!--
 +
-->{{#if:{{#vardefineecho:prop6|{{#explode:{{{userparam}}}|;|8}}}}|{{!}} style="text-align:right;" {{!}} {{#ifeq:{{#show:Property:{{#var:prop6}}|?Has type#-}}|Text|{{Property:{{#var:prop6}}/{{#show:{{{1}}}|?{{#var:prop6}}}}{{lang}}}}|{{#show:{{{1}}}|?{{#var:prop6}}}}}}
 +
}}<!--
 +
-->{{#if:{{#vardefineecho:prop7|{{#explode:{{{userparam}}}|;|9}}}}|{{!}} style="text-align:right;" {{!}} {{#ifeq:{{#show:Property:{{#var:prop7}}|?Has type#-}}|Text|{{Property:{{#var:prop7}}/{{#show:{{{1}}}|?{{#var:prop7}}}}{{lang}}}}|{{#show:{{{1}}}|?{{#var:prop7}}}}}}
 +
}}<!--
 +
-->{{#if:{{#vardefineecho:prop8|{{#explode:{{{userparam}}}|;|10}}}}|{{!}} style="text-align:right;" {{!}} {{#ifeq:{{#show:Property:{{#var:prop8}}|?Has type#-}}|Text|{{Property:{{#var:prop8}}/{{#show:{{{1}}}|?{{#var:prop8}}}}{{lang}}}}|{{#show:{{{1}}}|?{{#var:prop8}}}}}}
 +
}}<!--
 +
-->{{#if:{{#vardefineecho:prop9|{{#explode:{{{userparam}}}|;|11}}}}|{{!}} style="text-align:right;" {{!}} {{#ifeq:{{#show:Property:{{#var:prop9}}|?Has type#-}}|Text|{{Property:{{#var:prop9}}/{{#show:{{{1}}}|?{{#var:prop9}}}}{{lang}}}}|{{#show:{{{1}}}|?{{#var:prop9}}}}}}
 +
}}{{!}}-
 
|{{#vardefine:page|{{removelc | {{{1}}} }} }}
 
|{{#vardefine:page|{{removelc | {{{1}}} }} }}
 
{{!}}-
 
{{!}}-

Revision as of 23:40, 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