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

From Space Engineers Wiki
Jump to: navigation, search
m (re-implementing)
m
Line 13: Line 13:
 
-->{{#if: {{#vardefineecho:prop9|{{#explode:{{{userparam}}}|;|11}}}}| !! {{translate|Property:{{#var:prop9}}}}}}|<!--
 
-->{{#if: {{#vardefineecho:prop9|{{#explode:{{{userparam}}}|;|11}}}}| !! {{translate|Property:{{#var:prop9}}}}}}|<!--
 
-->! {{Component list/Name{{lang}}}} !! {{Component list/Icon{{lang}}}} !! {{Component list/Mass (kg){{lang}}}} !! {{Component list/Description{{lang}}}}<!--
 
-->! {{Component list/Name{{lang}}}} !! {{Component list/Icon{{lang}}}} !! {{Component list/Mass (kg){{lang}}}} !! {{Component list/Description{{lang}}}}<!--
-->}}</includeonly><noinclude>
+
-->}}
 +
|-</includeonly><noinclude>
 
Block list header template, for use in <code>#ask</code> queries.
 
Block list header template, for use in <code>#ask</code> queries.
  

Revision as of 19:52, 18 April 2020

Block list header template, for use in #ask queries.

Defaults to this for backwards compatibility:

Name Icon Mass (kg) Description

If |userparam= is defined in the query, the headers will be picked by each property's Property:Translation.

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

note: icon-size is not used in this header template.