Difference between revisions of "Template:Block list/header"
From Space Engineers Wiki
Vox Serico (talk | contribs) m (Undo revision 25229 by Vox Serico (talk) temporarily restored for bugtesting) |
Vox Serico (talk | contribs) m (re-implementing) |
||
Line 1: | Line 1: | ||
<includeonly>{| class="wikitable sortable" | <includeonly>{| class="wikitable sortable" | ||
+ | |- | ||
+ | {{#if: {{{userparam|}}} |! {{#explode:{{{userparam}}}|;|0}}<!-- | ||
+ | -->{{#if: {{#vardefineecho:prop0|{{#explode:{{{userparam}}}|;|2}}}}| !! {{translate|Property:{{#var:prop0}}}}}}<!-- | ||
+ | -->{{#if: {{#vardefineecho:prop1|{{#explode:{{{userparam}}}|;|3}}}}| !! {{translate|Property:{{#var:prop1}}}}}}<!-- | ||
+ | -->{{#if: {{#vardefineecho:prop2|{{#explode:{{{userparam}}}|;|4}}}}| !! {{translate|Property:{{#var:prop2}}}}}}<!-- | ||
+ | -->{{#if: {{#vardefineecho:prop3|{{#explode:{{{userparam}}}|;|5}}}}| !! {{translate|Property:{{#var:prop3}}}}}}<!-- | ||
+ | -->{{#if: {{#vardefineecho:prop4|{{#explode:{{{userparam}}}|;|6}}}}| !! {{translate|Property:{{#var:prop4}}}}}}<!-- | ||
+ | -->{{#if: {{#vardefineecho:prop5|{{#explode:{{{userparam}}}|;|7}}}}| !! {{translate|Property:{{#var:prop5}}}}}}<!-- | ||
+ | -->{{#if: {{#vardefineecho:prop6|{{#explode:{{{userparam}}}|;|8}}}}| !! {{translate|Property:{{#var:prop6}}}}}}<!-- | ||
+ | -->{{#if: {{#vardefineecho:prop7|{{#explode:{{{userparam}}}|;|9}}}}| !! {{translate|Property:{{#var:prop7}}}}}}<!-- | ||
+ | -->{{#if: {{#vardefineecho:prop8|{{#explode:{{{userparam}}}|;|10}}}}| !! {{translate|Property:{{#var:prop8}}}}}}<!-- | ||
+ | -->{{#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}}}}<!-- | ||
+ | -->}}</includeonly><noinclude> | ||
+ | Block list header template, for use in <code>#ask</code> queries. | ||
+ | |||
+ | Defaults to this for backwards compatibility: | ||
+ | {| class="wikitable sortable" | ||
|- | |- | ||
! {{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}}}} | ||
+ | |} | ||
+ | |||
+ | If <code>|userparam=</code> is defined in the query, the headers will be picked by each property's [[Property:Translation]]. | ||
+ | |||
+ | ;userparam | ||
+ | :<code>First column's title;icon-size;property1;property2;property3...</code> | ||
+ | ;Example usage | ||
+ | :<code>Armor Block;64px;Mass;Integrity;IsAirTight;DeformationRatio</code> | ||
+ | |||
+ | {| class="wikitable sortable" | ||
+ | |- | ||
+ | ! Armor Block !! {{translate|Property:Mass}} !! {{translate|Property:Integrity}} !! {{translate|Property:IsAirTight}} !! {{translate|Property:DeformationRatio}} | ||
+ | |} | ||
+ | |||
+ | ''note: icon-size is not used in this header template.'' | ||
− | + | [[Category:Templates]] | |
+ | </noinclude> |
Revision as of 19:50, 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.