Difference between revisions of "Template:Block list"

From Space Engineers Wiki
Jump to: navigation, search
(Implemented alternate functionality when userparam is defined)
m
Line 15: Line 15:
 
   -->{{#if:{{#vardefineecho:prop9|{{#explode:{{{userparam}}}|;|11}}}}|{{!!}} {{#ifeq:{{#show:Property:{{#var:prop9}}|?Has type#-}}|Text|{{Property:{{#var:prop9}}/{{#show:{{{1}}}|?{{#var:prop9}}}}{{lang}}}}|{{#show:{{{1}}}|?{{#var:prop9}}}}}}}}
 
   -->{{#if:{{#vardefineecho:prop9|{{#explode:{{{userparam}}}|;|11}}}}|{{!!}} {{#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}}} }} }}{{!}} [[{{{1|}}}|{{translate | {{#var:page}}}}]] {{!!}} {{icon|{{#var:page}}}} {{!!}} {{{2|}}} {{!!}} {{{3|}}}
{{!}} [[{{{1|}}}|{{translate | {{#var:page}}}}]] {{!!}} {{icon|{{#var:page}}}} {{!!}} {{{2|}}} {{!!}} {{{3|}}}
+
{{!}}-
 
 
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
Block list template, for use in <code>#ask</code> queries.
 
Block list template, for use in <code>#ask</code> queries.

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