More actions
Alistair3149 (talk | contribs) Add support to utilityitemmount (by SublimeText.Mediawiker) |
Alistair3149 (talk | contribs) Remove whitespace Tag: 2017 source edit |
||
Line 13: | Line 13: | ||
| manufacturer={{#if:{{{weapon{{#var:weaponnumber}}mountmanufacturer|}}}|{{{weapon{{#var:weaponnumber}}mountmanufacturer}}}|N/A}} |
| manufacturer={{#if:{{{weapon{{#var:weaponnumber}}mountmanufacturer|}}}|{{{weapon{{#var:weaponnumber}}mountmanufacturer}}}|N/A}} |
||
| name={{#if:{{{weapon{{#var:weaponnumber}}mountname|}}}|{{{weapon{{#var:weaponnumber}}mountname}}}|Unknown mount}} |
| name={{#if:{{{weapon{{#var:weaponnumber}}mountname|}}}|{{{weapon{{#var:weaponnumber}}mountname}}}|Unknown mount}} |
||
}}<div class="plainlist"><ul><li> |
}}<div class="plainlist"><ul><li>|}}{{Component card |
||
|}} |
|||
{{Component card |
|||
| quantity={{#if:{{{weapon{{#var:weaponnumber}}quantity|}}}|{{{weapon{{#var:weaponnumber}}quantity}}}|1}} |
| quantity={{#if:{{{weapon{{#var:weaponnumber}}quantity|}}}|{{{weapon{{#var:weaponnumber}}quantity}}}|1}} |
||
| size={{#if:{{{weapon{{#var:weaponnumber}}size|}}}|{{{weapon{{#var:weaponnumber}}size}}}|X}} |
| size={{#if:{{{weapon{{#var:weaponnumber}}size|}}}|{{{weapon{{#var:weaponnumber}}size}}}|X}} |
||
Line 22: | Line 20: | ||
{{#if:{{{weapon{{#var:weaponnumber}}mountname|}}}{{{weapon{{#var:weaponnumber}}mountsize|}}}{{{weapon{{#var:weaponnumber}}mountmanufacturer|}}} |
{{#if:{{{weapon{{#var:weaponnumber}}mountname|}}}{{{weapon{{#var:weaponnumber}}mountsize|}}}{{{weapon{{#var:weaponnumber}}mountmanufacturer|}}} |
||
|</li></ul></div>|}} |
|</li></ul></div>|}} |
||
</td></tr> |
</td></tr>}}}}{{#ifexpr:{{{turretcount|0}}} > 0|<tr> |
||
}}}} |
|||
⚫ | |||
<td rowspan={{{turretcount}}}><div class="vehicle-spec-label">[[File:Turretnav.svg|30px|link=]]Turrets</div></td> |
<td rowspan={{{turretcount}}}><div class="vehicle-spec-label">[[File:Turretnav.svg|30px|link=]]Turrets</div></td> |
||
{{#loop: turretnumber |
{{#loop: turretnumber |
||
Line 50: | Line 46: | ||
}} |
}} |
||
}} |
}} |
||
</td></tr> |
</td></tr>}}}}{{#ifexpr:{{{missilerackcount|0}}} > 0|<tr> |
||
}}}} |
|||
{{#ifexpr:{{{missilerackcount|0}}} > 0|<tr> |
|||
<td rowspan={{{missilerackcount}}}><div class="vehicle-spec-label">[[File:Missilenav.svg|30px|link=]]Missiles</div></td> |
<td rowspan={{{missilerackcount}}}><div class="vehicle-spec-label">[[File:Missilenav.svg|30px|link=]]Missiles</div></td> |
||
{{#loop: missileracknumber |
{{#loop: missileracknumber |
||
Line 77: | Line 71: | ||
}} |
}} |
||
}} |
}} |
||
⚫ | |||
}} |
|||
</td></tr> |
|||
}}}} |
|||
{{#ifexpr:{{{utilityitemcount|0}}} > 0|<tr> |
|||
<td rowspan={{{utilityitemcount}}}><div class="vehicle-spec-label">[[File:Utilityitemnav.svg|30px|link=]]Utility items</div></td> |
<td rowspan={{{utilityitemcount}}}><div class="vehicle-spec-label">[[File:Utilityitemnav.svg|30px|link=]]Utility items</div></td> |
||
{{#loop: utilityitemnumber |
{{#loop: utilityitemnumber |
||
Line 92: | Line 83: | ||
| manufacturer={{#if:{{{utilityitem{{#var:utilityitemnumber}}mountmanufacturer|}}}|{{{utilityitem{{#var:utilityitemnumber}}mountmanufacturer}}}|N/A}} |
| manufacturer={{#if:{{{utilityitem{{#var:utilityitemnumber}}mountmanufacturer|}}}|{{{utilityitem{{#var:utilityitemnumber}}mountmanufacturer}}}|N/A}} |
||
| name={{#if:{{{utilityitem{{#var:utilityitemnumber}}mountname|}}}|{{{utilityitem{{#var:utilityitemnumber}}mountname}}}|Unknown mount}} |
| name={{#if:{{{utilityitem{{#var:utilityitemnumber}}mountname|}}}|{{{utilityitem{{#var:utilityitemnumber}}mountname}}}|Unknown mount}} |
||
}}<div class="plainlist"><ul><li> |
}}<div class="plainlist"><ul><li>|}}{{Component card |
||
|}} |
|||
{{Component card |
|||
| quantity={{#if:{{{utilityitem{{#var:utilityitemnumber}}quantity|}}}|{{{utilityitem{{#var:utilityitemnumber}}quantity}}}|1}} |
| quantity={{#if:{{{utilityitem{{#var:utilityitemnumber}}quantity|}}}|{{{utilityitem{{#var:utilityitemnumber}}quantity}}}|1}} |
||
| size={{#if:{{{utilityitem{{#var:utilityitemnumber}}size|}}}|{{{utilityitem{{#var:utilityitemnumber}}size}}}|X}} |
| size={{#if:{{{utilityitem{{#var:utilityitemnumber}}size|}}}|{{{utilityitem{{#var:utilityitemnumber}}size}}}|X}} |
||
Line 100: | Line 89: | ||
| name={{#if:{{{utilityitem{{#var:utilityitemnumber}}name|}}}|{{{utilityitem{{#var:utilityitemnumber}}name}}}|Empty hardpoint}}}} |
| name={{#if:{{{utilityitem{{#var:utilityitemnumber}}name|}}}|{{{utilityitem{{#var:utilityitemnumber}}name}}}|Empty hardpoint}}}} |
||
{{#if:{{{utilityitem{{#var:utilityitemnumber}}mountname|}}}{{{utilityitem{{#var:utilityitemnumber}}mountsize|}}}{{{utilityitem{{#var:utilityitemnumber}}mountmanufacturer|}}} |
{{#if:{{{utilityitem{{#var:utilityitemnumber}}mountname|}}}{{{utilityitem{{#var:utilityitemnumber}}mountsize|}}}{{{utilityitem{{#var:utilityitemnumber}}mountmanufacturer|}}} |
||
⚫ | |||
|</li></ul></div>|}} |
|||
</td></tr> |
|||
⚫ |
Revision as of 00:44, 29 July 2020
{{Vehicle weaponry}} generates a table of weaponry components for the specification section of a vehicle page.
TemplateData
Generates a table of weaponry components for the specification section of a vehicle page.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Number of unique weapon hardpoints | weaponcount | The number of unique weapon hardpoints on the vehicle (not counting the same component, and weapons on turrets)
| Number | required |
Number of unique turret hardpoints | turretcount | The number of unique turret hardpoints on the vehicle (not counting the same component)
| Number | required |
Number of unique missile rack hardpoints | missilerackcount | The number of unique missile rack hardpoints on the vehicle (not counting the same component)
| Number | required |
Number of unique utility item hardpoints | utilityitemcount | The number of unique utility item hardpoints on the vehicle (not counting the same component)
| Number | required |
Weapon 1 quantity | weapon1quantity | The quantity of weapon 1 installed on the vehicle
| Number | suggested |
Weapon 1 size | weapon1size | The size of weapon 1 installed on the vehicle
| Number | suggested |
Weapon 1 manufacturer code | weapon1manufacturer | The manufacturer code of weapon 1 installed on the vehicle
| String | suggested |
Weapon 1 name | weapon1name | The name of weapon 1 installed on the vehicle
| Page name | suggested |
Turret 1 quantity | turret1quantity | The quantity of turret 1 installed on the vehicle
| Number | optional |
Turret 1 size | turret1size | The size of turret 1 installed on the vehicle
| Number | optional |
Turret 1 manufacturer code | turret1manufacturer | The manufacturer code of turret 1 installed on the vehicle
| String | optional |
Turret 1 name | turret1name | The name of turret 1 installed on the vehicle
| Page name | optional |
Number of unique weapon hardpoints on turret 1 | turret1weaponcount | The number of unique weapon hardpoints on the turret 1 (not counting the same component)
| Number | optional |
Weapon 1 quantity on turret 1 | turret1weapon1quantity | The total quantity of weapon 1 installed on turret 1
| Number | optional |
Weapon 1 size on turret 1 | turret1weapon1size | The size of weapon 1 installed on turret 1
| Number | optional |
Weapon 1 manufacturer code on turret 1 | turret1weapon1manufacturer | The manufacturer code of weapon 1 installed on turret 1
| String | optional |
Weapon 1 name on turret 1 | turret1weapon1name | The name of weapon 1 installed on turret 1
| Page name | optional |
Missile rack 1 quantity | missilerack1quantity | The quantity of missile rack 1 installed on the vehicle
| Number | suggested |
Missile rack 1 size | missilerack1size | The size of missile rack 1 installed on the vehicle
| Number | suggested |
Missile rack 1 manufacturer code | missilerack1manufacturer | The manufacturer code of missile rack 1 installed on the vehicle
| String | suggested |
Missile rack 1 name | missilerack1name | The name of missile rack 1 installed on the vehicle
| Page name | suggested |
Number of unique missile hardpoints on missile rack 1 | missilerack1missilecount | The number of unique missile hardpoints on the missile rack 1 (not counting the same component)
| Number | suggested |
Missile 1 quantity on missile rack 1 | missilerack1missile1quantity | The total quantity of missile 1 installed on missile rack 1
| Number | suggested |
Missile 1 size on missile rack 1 | missilerack1missile1size | The size of missile 1 installed on missile rack 1
| Number | suggested |
Missile 1 manufacturer code on missile rack 1 | missilerack1missile1manufacturer | The manufacturer code of missile 1 installed on missile rack 1
| String | suggested |
Missile 1 name on missile rack 1 | missilerack1missile1name | The name of missile 1 installed on missile rack 1
| Page name | suggested |
Missile 2 quantity on missile rack 1 | missilerack1missile2quantity | The total quantity of missile 2 installed on missile rack 1
| Number | suggested |
Missile 2 size on missile rack 1 | missilerack1missile2size | The size of missile 2 installed on missile rack 1
| Number | suggested |
Missile 2 manufacturer code on missile rack 1 | missilerack1missile2manufacturer | The manufacturer code of missile 2 installed on missile rack 1
| String | suggested |
Missile 2 name on missile rack 1 | missilerack1missile2name | The name of missile 2 installed on missile rack 1
| Page name | suggested |
Utility item 1 quantity | utilityitem1quantity | The quantity of utility item 1 installed on the vehicle
| Number | suggested |
Utility item 1 size | utilityitem1size | The size of utility item 1 installed on the vehicle
| Number | suggested |
Utility item 1 manufacturer code | utilityitem1manufacturer | The manufacturer code of utility item 1 installed on the vehicle
| String | suggested |
Utility item 1 name | utilityitem1name | The name of utility item 1 installed on the vehicle
| Page name | suggested |
Weapon 2 quantity | weapon2quantity | The quantity of weapon 2 installed on the vehicle
| Number | optional |
Weapon 2 size | weapon2size | The size of weapon 2 installed on the vehicle
| Number | optional |
Weapon 2 manufacturer code | weapon2manufacturer | The manufacturer code of weapon 2 installed on the vehicle
| String | optional |
Weapon 2 name | weapon2name | The name of weapon 2 installed on the vehicle
| Page name | optional |
Weapon 3 quantity | weapon3quantity | The quantity of weapon 3 installed on the vehicle
| Number | optional |
Weapon 3 size | weapon3size | The size of weapon 3 installed on the vehicle
| Number | optional |
Weapon 3 manufacturer code | weapon3manufacturer | The manufacturer code of weapon 3 installed on the vehicle
| String | optional |
Weapon 3 name | weapon3name | The name of weapon 3 installed on the vehicle
| Page name | optional |
Weapon 2 quantity on turret 1 | turret1weapon2quantity | The total quantity of weapon 2 installed on turret 1
| Number | optional |
Weapon 2 size on turret 1 | turret1weapon2size | The size of weapon 2 installed on turret 1
| Number | optional |
Weapon 2 manufacturer code on turret 1 | turret1weapon2manufacturer | The manufacturer code of weapon 2 installed on turret 1
| String | optional |
Weapon 2 name on turret 1 | turret1weapon2name | The name of weapon 2 installed on turret 1
| Page name | optional |
Turret 2 quantity | turret2quantity | The quantity of turret 2 installed on the vehicle
| Number | optional |
Turret 2 size | turret2size | The size of turret 2 installed on the vehicle
| Number | optional |
Turret 2 manufacturer code | turret2manufacturer | The manufacturer code of turret 2 installed on the vehicle
| String | optional |
Turret 2 name | turret2name | The name of turret 2 installed on the vehicle
| Page name | optional |
Number of unique weapon hardpoints on turret 2 | turret2weaponcount | The number of unique weapon hardpoints on the turret 2 (not counting the same component)
| Number | optional |
Weapon 1 quantity on turret 2 | turret2weapon1quantity | The total quantity of weapon 1 installed on turret 2
| Number | optional |
Weapon 1 size on turret 2 | turret2weapon1size | The size of weapon 1 installed on turret 2
| Number | optional |
Weapon 1 manufacturer code on turret 2 | turret2weapon1manufacturer | The manufacturer code of weapon 1 installed on turret 2
| String | optional |
Weapon 1 name on turret 2 | turret2weapon1name | The name of weapon 1 installed on turret 2
| Page name | optional |
Missile rack 2 quantity | missilerack2quantity | The quantity of missile rack 2 installed on the vehicle
| Number | optional |
Missile rack 2 size | missilerack2size | The size of missile rack 2 installed on the vehicle
| Number | optional |
Missile rack 2 manufacturer code | missilerack2manufacturer | The manufacturer code of missile rack 2 installed on the vehicle
| String | optional |
Missile rack 2 name | missilerack2name | The name of missile rack 2 installed on the vehicle
| Page name | optional |
Number of unique missile hardpoints on missile rack 2 | missilerack2missilecount | The number of unique missile hardpoints on the missile rack 2 (not counting the same component)
| Number | optional |
Missile 1 quantity on missile rack 2 | missilerack2missile1quantity | The total quantity of missile 1 installed on missile rack 2
| Number | optional |
Missile 1 size on missile rack 2 | missilerack2missile1size | The size of missile 1 installed on missile rack 2
| Number | optional |
Missile 1 manufacturer code on missile rack 2 | missilerack2missile1manufacturer | The manufacturer code of missile 1 installed on missile rack 2
| String | optional |
Missile 1 name on missile rack 2 | missilerack2missile1name | The name of missile 1 installed on missile rack 2
| Page name | optional |
Utility item 2 quantity | utilityitem2quantity | The quantity of utility item 2 installed on the vehicle
| Number | optional |
Utility item 2 size | utilityitem2size | The size of utility item 2 installed on the vehicle
| Number | optional |
Utility item 2 manufacturer code | utilityitem2manufacturer | The manufacturer code of utility item 2 installed on the vehicle
| String | optional |
Utility item 2 name | utilityitem2name | The name of utility item 2 installed on the vehicle
| Page name | optional |
Weapon 1 mount size | weapon1mountsize | Size of the gimbal mount of weapon 1
| Number | optional |
Weapon 1 mount manufacturer | weapon1mountmanufacturer | Manufacturer of the gimbal mount of weapon 1 | String | optional |
Weapon 1 mount quantity | weapon1mountquantity | Number of the gimbal mount of weapon 1 | Number | optional |
Weapon 1 mount name | weapon1mountname | Name of the gimbal mount of weapon 1 | Unknown | optional |
Weapon 2 mount size | weapon2mountsize | Size of the gimbal mount of weapon 2
| Number | optional |
Weapon 2 mount manufacturer | weapon2mountmanufacturer | Manufacturer of the gimbal mount of weapon 2 | String | optional |
Weapon 2 mount name | weapon2mountname | Name of the gimbal mount of weapon 2 | Unknown | optional |