Difference between revisions of "Template:DataShipLong"

From Baloogan Campaign Wiki
Jump to: navigation, search
Line 143: Line 143:
 
{{!}}{{#getdata: RangeMax | DataSensor }}
 
{{!}}{{#getdata: RangeMax | DataSensor }}
 
{{!}}{{RenderArc|{{#getdata: SB1 | DataShipSensors }}|{{#getdata: SB2 | DataShipSensors }}|{{#getdata: SMF1 | DataShipSensors }}|{{#getdata: SMF2 | DataShipSensors }}|{{#getdata: SMA1 | DataShipSensors }}|{{#getdata: SMA2 | DataShipSensors }}|{{#getdata: SS1 | DataShipSensors }}|{{#getdata: SS2 | DataShipSensors }}|{{#getdata: PB1 | DataShipSensors }}|{{#getdata: PB2 | DataShipSensors }}|{{#getdata: PMF1 | DataShipSensors }}|{{#getdata: PMF2 | DataShipSensors }}|{{#getdata: PMA1 | DataShipSensors }}|{{#getdata: PMA2 | DataShipSensors }}|{{#getdata: PS1 | DataShipSensors }}|{{#getdata: PS2 | DataShipSensors }}}}
 
{{!}}{{RenderArc|{{#getdata: SB1 | DataShipSensors }}|{{#getdata: SB2 | DataShipSensors }}|{{#getdata: SMF1 | DataShipSensors }}|{{#getdata: SMF2 | DataShipSensors }}|{{#getdata: SMA1 | DataShipSensors }}|{{#getdata: SMA2 | DataShipSensors }}|{{#getdata: SS1 | DataShipSensors }}|{{#getdata: SS2 | DataShipSensors }}|{{#getdata: PB1 | DataShipSensors }}|{{#getdata: PB2 | DataShipSensors }}|{{#getdata: PMF1 | DataShipSensors }}|{{#getdata: PMF2 | DataShipSensors }}|{{#getdata: PMA1 | DataShipSensors }}|{{#getdata: PMA2 | DataShipSensors }}|{{#getdata: PS1 | DataShipSensors }}|{{#getdata: PS2 | DataShipSensors }}}}
 +
}}
 +
|}
 +
====Mounts/Stores/Weapons====
 +
{{#rawquery: SELECT COUNT(1) FROM DataShipMounts WHERE ID = '{{ #getdata: ID | DataShip }}'; | 1 | DataShipMountsCount }}
 +
{|class="wikitable sortable"
 +
|+ Mounts
 +
!Mount
 +
!ROF
 +
!Capacity
 +
!Weapons
 +
!Arc
 +
|-
 +
{{
 +
#loop: varname
 +
| 1
 +
| {{#getdata: COUNT(1) | DataShipMountsCount }}
 +
|<nowiki/><div style="display:none;">
 +
{{#rawquery: SELECT * FROM DataShipMounts WHERE ID = '{{ #getdata: ID | DataShip }}'; | {{#var:varname}} | DataShipMounts}}
 +
{{#rawquery: SELECT * FROM DataMount WHERE ID = '{{ #getdata: ComponentID | DataShipMounts }}'; | 1 | DataMount }}
 +
{{#rawquery: SELECT COUNT(1) FROM DataMountWeapons WHERE ID = '{{ #getdata: ID | DataMount }}'; | 1 | DataMountWeaponsCount }}
 +
</div>
 +
{{!}}-
 +
{{!}}{{#replace:{{#replace:{{#getdata: Name | DataMount}}|[|(}}|]|)}}
 +
{{!}}{{#getdata: ROF | DataMount}}
 +
{{!}}{{#getdata: Capacity | DataMount}}
 +
{{!}}
 +
{{{!}} class="wikitable sortable"
 +
!Name
 +
!Type
 +
!DefaultLoad
 +
!MaxLoad
 +
!ROF
 +
!Range
 +
{{!}}-
 +
{{
 +
#loop: varname2
 +
| 1
 +
| {{#getdata: COUNT(1) | DataMountWeaponsCount }}
 +
|<nowiki/><div style="display:none;">
 +
{{#rawquery: SELECT * FROM DataMountWeapons WHERE ID = '{{ #getdata: ID | DataMount }}'; | {{#var:varname2}} | DataMountWeapons}}
 +
{{#rawquery: SELECT * FROM DataWeaponRecord WHERE ID = '{{ #getdata: ComponentID | DataMountWeapons }}'; | 1 | DataWeaponRecord }}
 +
{{#rawquery: SELECT * FROM DataWeapon WHERE ID = '{{ #getdata: ComponentID | DataWeaponRecord }}'; | 1 | DataWeapon }}
 +
{{#rawquery: SELECT * FROM EnumWeaponType WHERE ID = '{{ #getdata: Type | DataWeapon }}'; | 1 | EnumWeaponType }}
 +
</div>
 +
{{!}}-
 +
{{!}}{{#replace:{{#replace:{{#getdata: Name | DataWeapon}}|[|(}}|]|)}}
 +
{{!}}[[{{#getdata: Description | EnumWeaponType}}]]
 +
{{!}}{{#getdata: DefaultLoad | DataWeaponRecord}}
 +
{{!}}{{#getdata: MaxLoad | DataWeaponRecord}}
 +
{{!}}{{#getdata: ROF | DataWeaponRecord}}
 +
{{!}}
 +
{{{!}} class="wikitable"
 +
!
 +
!Min
 +
!Max
 +
{{!}}-
 +
{{#ifeq: {{#getdata: AirRangeMax | DataWeapon}} | 0 ||
 +
{{!}} '''Air'''
 +
{{!}}{{#getdata: AirRangeMin | DataWeapon}} nm
 +
{{!}}{{#getdata: AirRangeMax | DataWeapon}} nm
 +
{{!}}-
 +
}}
 +
{{#ifeq: {{#getdata: SurfaceRangeMax | DataWeapon}} | 0 ||
 +
{{!}} '''Surface'''
 +
{{!}}{{#getdata: SurfaceRangeMin | DataWeapon}} nm
 +
{{!}}{{#getdata: SurfaceRangeMax | DataWeapon}} nm
 +
{{!}}-
 +
}}
 +
{{#ifeq: {{#getdata: SubsurfaceRangeMax | DataWeapon}} | 0 ||
 +
{{!}} '''Subsurface'''
 +
{{!}}{{#getdata: SubsurfaceRangeMin | DataWeapon}} nm
 +
{{!}}{{#getdata: SubsurfaceRangeMax | DataWeapon}} nm
 +
}}
 +
{{!}}}
 +
}}
 +
{{!}}}
 +
{{!}}{{RenderArc|{{#getdata: SB1 | DataShipMounts }}|{{#getdata: SB2 | DataShipMounts }}|{{#getdata: SMF1 | DataShipMounts }}|{{#getdata: SMF2 | DataShipMounts }}|{{#getdata: SMA1 | DataShipMounts }}|{{#getdata: SMA2 | DataShipMounts }}|{{#getdata: SS1 | DataShipMounts }}|{{#getdata: SS2 | DataShipMounts }}|{{#getdata: PB1 | DataShipMounts }}|{{#getdata: PB2 | DataShipMounts }}|{{#getdata: PMF1 | DataShipMounts }}|{{#getdata: PMF2 | DataShipMounts }}|{{#getdata: PMA1 | DataShipMounts }}|{{#getdata: PMA2 | DataShipMounts }}|{{#getdata: PS1 | DataShipMounts }}|{{#getdata: PS2 | DataShipMounts }}}}
 
}}
 
}}
 
|}
 
|}

Revision as of 02:16, 23 January 2014










<img src="http://baloogan.images.blu3wolf.com/ship_DataInvoker Error: getData error: No such key in handle (ID).jpg" class="baloogan_small_image" id="baloogan_image" />

#DataInvoker Error: getData error: No such key in handle (ID) - DataInvoker Error: getData error: No such key in handle (Name) -- DataInvoker Error: getData error: No such key in handle (Description) (DataInvoker Error: getData error: No such key in handle (Description)), DataInvoker Error: getData error: No such key in handle (YearCommissioned)-DataInvoker Error: getData error: No such key in handle (YearDecommissioned), DataInvoker Error: getData error: No such key in handle (Comments)

General Data

Category: [[DataInvoker Error: getData error: No such key in handle (Description)]] Max Sea State: DataInvoker Error: getData error: No such key in handle (MaxSeaState)
Type: [[DataInvoker Error: getData error: No such key in handle (Description)]] Troop Capacity: DataInvoker Error: getData error: No such key in handle (TroopCapacity)
Damage Points: DataInvoker Error: getData error: No such key in handle (DamagePoints) Cargo Capacity: DataInvoker Error: getData error: No such key in handle (CargoCapacity)
Length: DataInvoker Error: getData error: No such key in handle (Length) m Pier / Dock / Davit Size: DataInvoker Error: getData error: No such key in handle (Description)
Beam: DataInvoker Error: getData error: No such key in handle (Beam) m
Draft: DataInvoker Error: getData error: No such key in handle (Draft) m
Height: DataInvoker Error: getData error: No such key in handle (Height) m
Empty Displacement: DataInvoker Error: getData error: No such key in handle (DisplacementEmpty) tons
Standard Displacement: DataInvoker Error: getData error: No such key in handle (DisplacementStandard) tons
Full Displacement: DataInvoker Error: getData error: No such key in handle (DisplacementFull) tons
Crew: DataInvoker Error: getData error: No such key in handle (Crew)

Properties

Property

Sensors/EW

Sensors
Name Type Role Max Range (nm) Arc

Mounts/Stores/Weapons

Mounts
Mount ROF Capacity Weapons Arc