Difference between revisions of "Template:Block list/header"
From Space Engineers Wiki
Vox Serico (talk | contribs) (Implemented alternate functionality when userparam is defined) |
Vox Serico (talk | contribs) m (fixed if-statement) |
||
Line 1: | Line 1: | ||
<includeonly>{| class="wikitable sortable" | <includeonly>{| class="wikitable sortable" | ||
|- | |- | ||
− | ! {{#if: {{{userparam}}}|<!-- | + | ! {{#if: {{{userparam|}}}|<!-- |
-->{{#vardefine:title|{{#explode:{{{userparam}}}|;|0}}}}<!-- | -->{{#vardefine:title|{{#explode:{{{userparam}}}|;|0}}}}<!-- | ||
-->{{#vardefine:prop0|{{#explode:{{{userparam}}}|;|2}}}}<!-- part 1 is for icon size | -->{{#vardefine:prop0|{{#explode:{{{userparam}}}|;|2}}}}<!-- part 1 is for icon size |
Revision as of 19:31, 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.