More actions
Alistair3149 (talk | contribs) Add life support and shield emitter Tag: 2017 source edit |
Alistair3149 (talk | contribs) Update to new template Tag: 2017 source edit |
||
Line 1: | Line 1: | ||
<includeonly>< |
<includeonly><!-- |
||
Power plant |
|||
<tr><th colspan="2">Systems</th></tr> |
|||
----------- |
|||
{{#ifexpr:{{{powerplantcount|0}}} > 0|<tr> |
|||
-->{{#ifexpr:{{{powerplantcount|0}}} > 0 |
|||
<td rowspan={{{powerplantcount}}}><div class="vehicle-spec-label">[[File:powerplantnav.svg|30px|link=]]Power plants</div></td> |
|||
| <div class="template-components__section"> |
|||
{{#loop: powerplantnumber |
|||
<div class="template-components__label">[[File:Powerplantnav.svg|30px|link=]]<span>Power plants</span></div> |
|||
| 1 |
|||
<div class="template-components__group"> |
|||
| {{{powerplantcount|1}}} |
|||
{{#loop: powerplantnumber |
|||
| 1 |
|||
<td>{{Component card |
|||
| {{{powerplantcount|1}}} |
|||
| quantity={{#if:{{{powerplant{{#var:powerplantnumber}}quantity|}}}|{{{powerplant{{#var:powerplantnumber}}quantity}}}|1}} |
|||
| <div class="template-components__subgroup"> |
|||
| size={{#if:{{{powerplant{{#var:powerplantnumber}}size|}}}|{{{powerplant{{#var:powerplantnumber}}size}}}|X}} |
|||
{{SCitem |
|||
| manufacturer={{#if:{{{powerplant{{#var:powerplantnumber}}manufacturer|}}}|{{{powerplant{{#var:powerplantnumber}}manufacturer}}}|N/A}} |
|||
| count={{#if:{{{powerplant{{#var:powerplantnumber}}quantity|}}}|{{{powerplant{{#var:powerplantnumber}}quantity}}}|1}} |
|||
| size={{#if:{{{powerplant{{#var:powerplantnumber}}size|}}}|{{{powerplant{{#var:powerplantnumber}}size}}}|X}} |
|||
</td></tr> |
|||
| subtitle={{#if:{{{powerplant{{#var:powerplantnumber}}manufacturer|}}}|{{MFUNAME|{{{powerplant{{#var:powerplantnumber}}manufacturer}}}}}|N/A}} |
|||
}}}} |
|||
| title={{#if:{{{powerplant{{#var:powerplantnumber}}name|}}}|{{{powerplant{{#var:powerplantnumber}}name}}}|Empty hardpoint}} |
|||
{{#ifexpr:{{{batterycount|0}}} > 0|<tr> |
|||
| level={{#if:{{{powerplant{{#var:powerplantnumber}}mountname|}}}{{{powerplant{{#var:powerplantnumber}}mountsize|}}}{{{powerplant{{#var:powerplantnumber}}mountmanufacturer|}}}|2|1}} |
|||
<td rowspan={{{batterycount}}}><div class="vehicle-spec-label">[[File:powerplantnav.svg|30px|link=]]Batteries</div></td> |
|||
}} |
|||
{{#loop: batterynumber |
|||
</div> |
|||
| 1 |
|||
}} |
|||
| {{{batterycount|1}}} |
|||
</div> |
|||
| {{#ifexpr:{{#var:batterynumber}} > 1|<tr>}} |
|||
</div> |
|||
<td>{{Component card |
|||
}}<!-- |
|||
| quantity={{#if:{{{battery{{#var:batterynumber}}quantity|}}}|{{{battery{{#var:batterynumber}}quantity}}}|1}} |
|||
Battery |
|||
| size={{#if:{{{battery{{#var:batterynumber}}size|}}}|{{{battery{{#var:batterynumber}}size}}}|X}} |
|||
------- |
|||
| manufacturer={{#if:{{{battery{{#var:batterynumber}}manufacturer|}}}|{{{battery{{#var:batterynumber}}manufacturer}}}|N/A}} |
|||
-->{{#ifexpr:{{{batterycount|0}}} > 0 |
|||
| name={{#if:{{{battery{{#var:batterynumber}}name|}}}|{{{battery{{#var:batterynumber}}name|}}}|Empty hardpoint}}}} |
|||
| <div class="template-components__section"> |
|||
</td></tr> |
|||
<div class="template-components__label">[[File:Batterynav.svg|30px|link=]]<span>Battery</span></div> |
|||
}}}} |
|||
<div class="template-components__group"> |
|||
{{#ifexpr:{{{coolercount|0}}} > 0|<tr> |
|||
{{#loop: batterynumber |
|||
<td rowspan={{{coolercount}}}><div class="vehicle-spec-label">[[File:coolernav.svg|30px|link=]]Coolers</div></td> |
|||
| 1 |
|||
{{#loop: coolernumber |
|||
| {{{batterycount|1}}} |
|||
| 1 |
|||
| <div class="template-components__subgroup"> |
|||
| {{{coolercount|1}}} |
|||
{{SCitem |
|||
| {{#ifexpr:{{#var:coolernumber}} > 1|<tr>}} |
|||
| count={{#if:{{{battery{{#var:batterynumber}}quantity|}}}|{{{battery{{#var:batterynumber}}quantity}}}|1}} |
|||
<td>{{Component card |
|||
| size={{#if:{{{battery{{#var:batterynumber}}size|}}}|{{{battery{{#var:batterynumber}}size}}}|X}} |
|||
| subtitle={{#if:{{{battery{{#var:batterynumber}}manufacturer|}}}|{{MFUNAME|{{{battery{{#var:batterynumber}}manufacturer}}}}}|N/A}} |
|||
| title={{#if:{{{battery{{#var:batterynumber}}name|}}}|{{{battery{{#var:batterynumber}}name}}}|Empty hardpoint}} |
|||
| level={{#if:{{{battery{{#var:batterynumber}}mountname|}}}{{{battery{{#var:batterynumber}}mountsize|}}}{{{battery{{#var:batterynumber}}mountmanufacturer|}}}|2|1}} |
|||
}} |
|||
</div> |
|||
}}}} |
|||
}} |
|||
{{#ifexpr:{{{shieldgeneratorcount|0}}} > 0|<tr> |
|||
</div> |
|||
<td rowspan={{{shieldgeneratorcount}}}><div class="vehicle-spec-label">[[File:shieldgeneratornav.svg|30px|link=]]Shield generators</div></td> |
|||
</div> |
|||
{{#loop: shieldgeneratornumber |
|||
}}<!-- |
|||
| 1 |
|||
Cooler |
|||
| {{{shieldgeneratorcount|1}}} |
|||
------ |
|||
| {{#ifexpr:{{#var:shieldgeneratornumber}} > 1|<tr>}} |
|||
-->{{#ifexpr:{{{coolercount|0}}} > 0 |
|||
<td>{{Component card |
|||
| <div class="template-components__section"> |
|||
| quantity={{#if:{{{shieldgenerator{{#var:shieldgeneratornumber}}quantity|}}}|{{{shieldgenerator{{#var:shieldgeneratornumber}}quantity}}}|1}} |
|||
<div class="template-components__label">[[File:Coolernav.svg|30px|link=]]<span>Cooler</span></div> |
|||
| size={{#if:{{{shieldgenerator{{#var:shieldgeneratornumber}}size|}}}|{{{shieldgenerator{{#var:shieldgeneratornumber}}size}}}|X}} |
|||
<div class="template-components__group"> |
|||
| manufacturer={{#if:{{{shieldgenerator{{#var:shieldgeneratornumber}}manufacturer|}}}|{{{shieldgenerator{{#var:shieldgeneratornumber}}manufacturer}}}|N/A}} |
|||
{{#loop: coolernumber |
|||
| name={{#if:{{{shieldgenerator{{#var:shieldgeneratornumber}}name|}}}|{{{shieldgenerator{{#var:shieldgeneratornumber}}name}}}|Empty hardpoint}}}} |
|||
| 1 |
|||
| {{{coolercount|1}}} |
|||
}}}} |
|||
| <div class="template-components__subgroup"> |
|||
{{#ifexpr:{{{shieldemittercount|0}}} > 0|<tr> |
|||
{{SCitem |
|||
<td rowspan={{{shieldemittercount}}}><div class="vehicle-spec-label">[[File:shieldgeneratornav.svg|30px|link=]]Shield emitters</div></td> |
|||
| count={{#if:{{{cooler{{#var:coolernumber}}quantity|}}}|{{{cooler{{#var:coolernumber}}quantity}}}|1}} |
|||
{{#loop: shieldemitternumber |
|||
| size={{#if:{{{cooler{{#var:coolernumber}}size|}}}|{{{cooler{{#var:coolernumber}}size}}}|X}} |
|||
| 1 |
|||
| subtitle={{#if:{{{cooler{{#var:coolernumber}}manufacturer|}}}|{{MFUNAME|{{{cooler{{#var:coolernumber}}manufacturer}}}}}|N/A}} |
|||
| {{{shieldemittercount|1}}} |
|||
| title={{#if:{{{cooler{{#var:coolernumber}}name|}}}|{{{cooler{{#var:coolernumber}}name}}}|Empty hardpoint}} |
|||
| {{#ifexpr:{{#var:shieldemitternumber}} > 1|<tr>}} |
|||
| level={{#if:{{{cooler{{#var:coolernumber}}mountname|}}}{{{cooler{{#var:coolernumber}}mountsize|}}}{{{cooler{{#var:coolernumber}}mountmanufacturer|}}}|2|1}} |
|||
<td>{{Component card |
|||
}} |
|||
| quantity={{#if:{{{shieldemitter{{#var:shieldemitternumber}}quantity|}}}|{{{shieldemitter{{#var:shieldemitternumber}}quantity}}}|1}} |
|||
</div> |
|||
| size={{#if:{{{shieldemitter{{#var:shieldemitternumber}}size|}}}|{{{shieldemitter{{#var:shieldemitternumber}}size}}}|X}} |
|||
}} |
|||
| manufacturer={{#if:{{{shieldemitter{{#var:shieldemitternumber}}manufacturer|}}}|{{{shieldemitter{{#var:shieldemitternumber}}manufacturer}}}|N/A}} |
|||
</div> |
|||
| name={{#if:{{{shieldemitter{{#var:shieldemitternumber}}name|}}}|{{{shieldemitter{{#var:shieldemitternumber}}name}}}|Empty hardpoint}}}} |
|||
</div> |
|||
}} |
}}<!-- |
||
Shield generator |
|||
{{#ifexpr:{{{lifesupportcount|0}}} > 0|<tr> |
|||
---------------- |
|||
<td rowspan={{{lifesupportcount}}}><div class="vehicle-spec-label">[[File:coolernav.svg|30px|link=]]Life support</div></td> |
|||
-->{{#ifexpr:{{{shieldgeneratorcount|0}}} > 0 |
|||
{{#loop: lifesupportnumber |
|||
| <div class="template-components__section"> |
|||
| 1 |
|||
<div class="template-components__label">[[File:Shieldgeneratornav.svg|30px|link=]]<span>Shield generator</span></div> |
|||
| {{{lifesupportcount|1}}} |
|||
<div class="template-components__group"> |
|||
| {{#ifexpr:{{#var:lifesupportnumber}} > 1|<tr>}} |
|||
{{#loop: shieldgeneratornumber |
|||
<td>{{Component card |
|||
| 1 |
|||
| quantity={{#if:{{{lifesupport{{#var:lifesupportnumber}}quantity|}}}|{{{lifesupport{{#var:lifesupportnumber}}quantity}}}|1}} |
|||
| {{{shieldgeneratorcount|1}}} |
|||
| size={{#if:{{{lifesupport{{#var:lifesupportnumber}}size|}}}|{{{lifesupport{{#var:lifesupportnumber}}size}}}|X}} |
|||
| <div class="template-components__subgroup"> |
|||
| manufacturer={{#if:{{{lifesupport{{#var:lifesupportnumber}}manufacturer|}}}|{{{lifesupport{{#var:lifesupportnumber}}manufacturer}}}|N/A}} |
|||
{{SCitem |
|||
| name={{#if:{{{lifesupport{{#var:lifesupportnumber}}name|}}}|{{{lifesupport{{#var:lifesupportnumber}}name}}}|Empty hardpoint}}}} |
|||
| count={{#if:{{{shieldgenerator{{#var:shieldgeneratornumber}}quantity|}}}|{{{shieldgenerator{{#var:shieldgeneratornumber}}quantity}}}|1}} |
|||
</td></tr> |
|||
| size={{#if:{{{shieldgenerator{{#var:shieldgeneratornumber}}size|}}}|{{{shieldgenerator{{#var:shieldgeneratornumber}}size}}}|X}} |
|||
}}}} |
|||
| subtitle={{#if:{{{shieldgenerator{{#var:shieldgeneratornumber}}manufacturer|}}}|{{MFUNAME|{{{shieldgenerator{{#var:shieldgeneratornumber}}manufacturer}}}}}|N/A}} |
|||
</table><templatestyles src="Template:Vehicle specifications/styles.css"/></includeonly><noinclude>{{/doc}}</noinclude> |
|||
| title={{#if:{{{shieldgenerator{{#var:shieldgeneratornumber}}name|}}}|{{{shieldgenerator{{#var:shieldgeneratornumber}}name}}}|Empty hardpoint}} |
|||
| level={{#if:{{{shieldgenerator{{#var:shieldgeneratornumber}}mountname|}}}{{{shieldgenerator{{#var:shieldgeneratornumber}}mountsize|}}}{{{shieldgenerator{{#var:shieldgeneratornumber}}mountmanufacturer|}}}|2|1}} |
|||
}} |
|||
</div> |
|||
}} |
|||
</div> |
|||
</div> |
|||
}}<!-- |
|||
Shield emitter |
|||
-------------- |
|||
-->{{#ifexpr:{{{shieldemittercount|0}}} > 0 |
|||
| <div class="template-components__section"> |
|||
<div class="template-components__label">[[File:Shieldemitternav.svg|30px|link=]]<span>Shield emitter</span></div> |
|||
<div class="template-components__group"> |
|||
{{#loop: shieldemitternumber |
|||
| 1 |
|||
| {{{shieldemittercount|1}}} |
|||
| <div class="template-components__subgroup"> |
|||
{{SCitem |
|||
| count={{#if:{{{shieldemitter{{#var:shieldemitternumber}}quantity|}}}|{{{shieldemitter{{#var:shieldemitternumber}}quantity}}}|1}} |
|||
| size={{#if:{{{shieldemitter{{#var:shieldemitternumber}}size|}}}|{{{shieldemitter{{#var:shieldemitternumber}}size}}}|X}} |
|||
| subtitle={{#if:{{{shieldemitter{{#var:shieldemitternumber}}manufacturer|}}}|{{MFUNAME|{{{shieldemitter{{#var:shieldemitternumber}}manufacturer}}}}}|N/A}} |
|||
| title={{#if:{{{shieldemitter{{#var:shieldemitternumber}}name|}}}|{{{shieldemitter{{#var:shieldemitternumber}}name}}}|Empty hardpoint}} |
|||
| level={{#if:{{{shieldemitter{{#var:shieldemitternumber}}mountname|}}}{{{shieldemitter{{#var:shieldemitternumber}}mountsize|}}}{{{shieldemitter{{#var:shieldemitternumber}}mountmanufacturer|}}}|2|1}} |
|||
}} |
|||
</div> |
|||
}} |
|||
</div> |
|||
</div> |
|||
}}<!-- |
|||
Life support |
|||
------------ |
|||
-->{{#ifexpr:{{{lifesupportcount|0}}} > 0 |
|||
| <div class="template-components__section"> |
|||
<div class="template-components__label">[[File:Lifesupportnav.svg|30px|link=]]<span>Life support</span></div> |
|||
<div class="template-components__group"> |
|||
{{#loop: lifesupportnumber |
|||
| 1 |
|||
| {{{lifesupportcount|1}}} |
|||
| <div class="template-components__subgroup"> |
|||
{{SCitem |
|||
| count={{#if:{{{lifesupport{{#var:lifesupportnumber}}quantity|}}}|{{{lifesupport{{#var:lifesupportnumber}}quantity}}}|1}} |
|||
| size={{#if:{{{lifesupport{{#var:lifesupportnumber}}size|}}}|{{{lifesupport{{#var:lifesupportnumber}}size}}}|X}} |
|||
| subtitle={{#if:{{{lifesupport{{#var:lifesupportnumber}}manufacturer|}}}|{{MFUNAME|{{{lifesupport{{#var:lifesupportnumber}}manufacturer}}}}}|N/A}} |
|||
| title={{#if:{{{lifesupport{{#var:lifesupportnumber}}name|}}}|{{{lifesupport{{#var:lifesupportnumber}}name}}}|Empty hardpoint}} |
|||
| level={{#if:{{{lifesupport{{#var:lifesupportnumber}}mountname|}}}{{{lifesupport{{#var:lifesupportnumber}}mountsize|}}}{{{lifesupport{{#var:lifesupportnumber}}mountmanufacturer|}}}|2|1}} |
|||
}} |
|||
</div> |
|||
}} |
|||
</div> |
|||
</div> |
|||
}}<!-- |
|||
TemplateStyles |
|||
-------------- |
|||
--><templatestyles src="Template:Vehicle specifications/styles.css" /></includeonly><noinclude>{{/doc}}</noinclude> |
Revision as of 23:42, 10 November 2022
{{Vehicle systems}} generates a table of system components for the specification section of a vehicle page.
TemplateData
Generates a table of system components for the specification section of a vehicle page.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Number of unique power plant hardpoints | powerplantcount | The number of unique power plant hardpoints on the vehicle (not counting the same component)
| Number | required |
Number of unique cooler hardpoints | coolercount | The number of unique cooler hardpoints on the vehicle (not counting the same component)
| Number | required |
Number of unique shield generator hardpoints | shieldgeneratorcount | The number of unique shield generator hardpoints on the vehicle (not counting the same component)
| Number | required |
Number of unique battery hardpoints | batterycount | The number of unique battery hardpoints on the vehicle (not counting the same component)
| Number | required |
Number of unique life support hardpoints | lifesupportcount | The number of unique life support hardpoints on the vehicle (not counting the same component)
| Number | required |
Number of unique shield emitter hardpoints | shieldemittercount | The number of unique shield emitter hardpoints on the vehicle (not counting the same component)
| Number | required |
Number of unique gravity generator hardpoints | gravitygeneratorcount | The number of unique gravity generator hardpoints on the vehicle (not counting the same component)
| Number | required |
Power plant 1 quantity | powerplant1quantity | The quantity of power plant 1 installed on the vehicle
| Number | required |
Power plant 1 size | powerplant1size | The size of power plant 1 installed on the vehicle
| Number | required |
Power plant 1 manufacturer code | powerplant1manufacturer | The manufacturer code of power plant 1 installed on the vehicle
| String | suggested |
Power plant 1 name | powerplant1name | The name of power plant 1 installed on the vehicle
| Page name | suggested |
Cooler 1 quantity | cooler1quantity | The quantity of cooler 1 installed on the vehicle
| Number | required |
Cooler 1 size | cooler1size | The size of cooler 1 installed on the vehicle
| Number | required |
Cooler 1 manufacturer code | cooler1manufacturer | The manufacturer code of cooler 1 installed on the vehicle
| String | suggested |
Cooler 1 name | cooler1name | The name of cooler 1 installed on the vehicle
| Page name | suggested |
Shield generator 1 quantity | shieldgenerator1quantity | The quantity of shield generator 1 installed on the vehicle
| Number | required |
Shield generator 1 size | shieldgenerator1size | The size of shield generator 1 installed on the vehicle
| Number | required |
Shield generator 1 manufacturer code | shieldgenerator1manufacturer | The manufacturer code of shield generator 1 installed on the vehicle
| String | suggested |
Shield generator 1 name | shieldgenerator1name | The name of shield generator 1 installed on the vehicle
| Page name | suggested |
Power plant 2 quantity | powerplant2quantity | The quantity of power plant 2 installed on the vehicle
| Number | optional |
Power plant 2 size | powerplant2size | The size of power plant 2 installed on the vehicle
| Number | optional |
Power plant 2 manufacturer code | powerplant2manufacturer | The manufacturer code of power plant 2 installed on the vehicle
| String | optional |
Power plant 2 name | powerplant2name | The name of power plant 2 installed on the vehicle
| Page name | optional |
Cooler 2 quantity | cooler2quantity | The quantity of cooler 2 installed on the vehicle
| Number | optional |
Cooler 2 size | cooler2size | The size of cooler 2 installed on the vehicle
| Number | optional |
Cooler 2 manufacturer code | cooler2manufacturer | The manufacturer code of cooler 2 installed on the vehicle
| String | optional |
Cooler 2 name | cooler2name | The name of cooler 2 installed on the vehicle
| Page name | optional |
Shield generator 2 quantity | shieldgenerator2quantity | The quantity of shield generator 2 installed on the vehicle
| Number | optional |
Shield generator 2 size | shieldgenerator2size | The size of shield generator 2 installed on the vehicle
| Number | optional |
Shield generator 2 manufacturer code | shieldgenerator2manufacturer | The manufacturer code of shield generator 2 installed on the vehicle
| String | optional |
Shield generator 2 name | shieldgenerator2name | The name of shield generator 2 installed on the vehicle
| Page name | optional |
Battery 1 quantity | battery1quantity | The quantity of battery 1 installed on the vehicle
| Number | optional |
Battery 1 size | battery1size | The size of battery 1 installed on the vehicle
| Number | optional |
Battery 1 manufacturer | battery1manufacturer | The manufacturer code of battery 1 installed on the vehicle
| String | optional |
Battery 1 name | battery1name | The name of battery 1 installed on the vehicle
| Page name | optional |
Life support 1 quantity | lifesupport1quantity | The quantity of life support 1 installed on the vehicle
| Number | optional |
Life support 1 size | lifesupport1size | The size of life support 1 installed on the vehicle
| Number | optional |
Life support 1 manufacturer | lifesupport1manufacturer | The manufacturer code of life support 1 installed on the vehicle
| String | optional |
Life support 1 name | lifesupport1name | The name of life support 1 installed on the vehicle
| Page name | optional |
Shield emitter 1 quantity | shieldemitter1quantity | The quantity of shield emitter 1 installed on the vehicle
| Number | optional |
Shield emitter 1 size | shieldemitter1size | The size of shield emitter 1 installed on the vehicle
| Number | optional |
Shield emitter 1 manufacturer | shieldemitter1manufacturer | The manufacturer code of shield emitter 1 installed on the vehicle
| String | optional |
Shield emitter 1 name | shieldemitter1name | The name of shield emitter 1 installed on the vehicle
| Page name | optional |
Gravity generator 1 quantity | gravitygenerator1quantity | The quantity of gravity generator 1 installed on the vehicle
| Number | optional |
Gravity generator 1 size | gravitygenerator1size | The size of gravity generator 1 installed on the vehicle
| Number | optional |
Gravity generator 1 manufacturer | gravitygenerator1manufacturer | The manufacturer code of gravity generator 1 installed on the vehicle
| String | optional |
Gravity generator 1 name | gravitygenerator1name | The name of gravity generator 1 installed on the vehicle
| Page name | optional |