Difference between revisions of "Template:DataFacilityLong"
From Baloogan Campaign Wiki
Line 51: | Line 51: | ||
|'''Crew:''' | |'''Crew:''' | ||
|{{ #getdata: Crew | DataFacility }} | |{{ #getdata: Crew | DataFacility }} | ||
+ | |} | ||
+ | ====Sensors/EW==== | ||
+ | {{#rawquery: SELECT COUNT(1) FROM DataFacilitySensors WHERE ID = '{{ #getdata: ID | DataFacility }}'; | 1 | DataFacilitySensorsCount }} | ||
+ | {|class="wikitable sortable" | ||
+ | |+Sensors | ||
+ | !Name | ||
+ | !Type | ||
+ | !Role | ||
+ | !Max Range (nm) | ||
+ | !Arc | ||
+ | |- | ||
+ | {{ | ||
+ | #loop: SensorIndex | ||
+ | | 1 | ||
+ | | {{#getdata: COUNT(1) | DataFacilitySensorsCount }} | ||
+ | | <nowiki/><div style="display:none;"> | ||
+ | {{#rawquery: SELECT * FROM DataFacilitySensors WHERE ID = '{{ #getdata: ID | DataFacility }}' ; | {{#var:SensorIndex}} | DataFacilitySensors}} | ||
+ | {{#rawquery: SELECT * FROM DataSensor WHERE ID = '{{ #getdata: ComponentID | DataFacilitySensors }}'; | 1 | DataSensor }} | ||
+ | {{#rawquery: SELECT * FROM EnumSensorType WHERE ID = '{{ #getdata: Type | DataSensor }}'; | 1 | EnumSensorType }} | ||
+ | {{#rawquery: SELECT * FROM EnumSensorRole WHERE ID = '{{ #getdata: Role | DataSensor }}'; | 1 | EnumSensorRole }} | ||
+ | {{#rawquery: SELECT * FROM EnumSensorRole WHERE ID = '{{ #getdata: Role | DataSensor }}'; | 1 | EnumSensorRole }} | ||
+ | {{#rawquery: SELECT COUNT(1) FROM DataSensorSensorGroups WHERE ID = '{{ #getdata: ID | DataSensor }}'; | 1 | DataSensorSensorGroupsCount }} | ||
+ | {{#rawquery: SELECT COUNT(1) FROM DataSensorCapabilities WHERE ID = '{{ #getdata: ID | DataSensor }}'; | 1 | DataSensorCapabilitiesCount }} | ||
+ | </div> | ||
+ | {{!}}- | ||
+ | {{!}} '''[http://wiki.baloogancampaign.com/index.php/DataSensor?ID={{#getdata: ID | DataSensor}} {{#replace:{{#replace:{{#getdata: Name | DataSensor}}|[|(}}|]|)}}]''' | ||
+ | {{!}}[[{{#getdata: Description | EnumSensorType}}]] | ||
+ | {{!}}'''{{#getdata: Description | EnumSensorRole}}''' | ||
+ | {{{!}}class="wikitable sortable" {{#ifeq: {{#getdata: COUNT(1) | DataSensorCapabilitiesCount }} | 0 | style="display:none;" | }} | ||
+ | {{!}}- | ||
+ | {{ | ||
+ | #loop: SensorCapabilityIndex | ||
+ | | 1 | ||
+ | | {{#getdata: COUNT(1) | DataSensorCapabilitiesCount }} | ||
+ | |<nowiki/><div style="display:none;"> | ||
+ | {{#rawquery: SELECT * FROM DataSensorCapabilities WHERE ID = '{{ #getdata: ID | DataSensor }}' ; | {{#var:SensorCapabilityIndex}} | DataSensorCapabilities }} | ||
+ | {{#rawquery: SELECT * FROM EnumSensorCapability WHERE ID = '{{ #getdata: CodeID | DataSensorCapabilities }}'; | 1 | EnumSensorCapability }} | ||
+ | </div> | ||
+ | {{!}}- | ||
+ | {{!}} [[{{#getdata: Description | EnumSensorCapability }}]] | ||
+ | }} | ||
+ | {{!}}} | ||
+ | {{{!}}class="wikitable sortable" {{#ifeq: {{#getdata: COUNT(1) | DataSensorSensorGroupsCount }} | 0 | style="display:none;" | }} | ||
+ | {{!}}+Sensors | ||
+ | !Name | ||
+ | !Type | ||
+ | !Role | ||
+ | !Max Range (nm) | ||
+ | {{!}}- | ||
+ | {{ | ||
+ | #loop: SensorGroupIndex | ||
+ | | 1 | ||
+ | | {{#getdata: COUNT(1) | DataSensorSensorGroupsCount }} | ||
+ | | <nowiki/><div style="display:none;"> | ||
+ | {{#rawquery: SELECT * FROM DataSensorSensorGroups WHERE ID = '{{ #getdata: ID | DataSensor }}' ; | {{#var:SensorGroupIndex}} | DataSensorSensorGroups}} | ||
+ | {{#rawquery: SELECT * FROM DataSensor WHERE ID = '{{ #getdata: ComponentID | DataSensorSensorGroups }}'; | 1 | DataSensor2 }} | ||
+ | {{#rawquery: SELECT * FROM EnumSensorType WHERE ID = '{{ #getdata: Type | DataSensor2 }}'; | 1 | EnumSensorType2 }} | ||
+ | {{#rawquery: SELECT * FROM EnumSensorRole WHERE ID = '{{ #getdata: Role | DataSensor2 }}'; | 1 | EnumSensorRole2 }} | ||
+ | {{#rawquery: SELECT * FROM EnumSensorRole WHERE ID = '{{ #getdata: Role | DataSensor2 }}'; | 1 | EnumSensorRole2 }} | ||
+ | {{#rawquery: SELECT COUNT(1) FROM DataSensorCapabilities WHERE ID = '{{ #getdata: ID | DataSensor2 }}'; | 1 | DataSensorCapabilitiesCount }} | ||
+ | </div> | ||
+ | {{!}}- | ||
+ | {{!}} '''[http://wiki.baloogancampaign.com/index.php/DataSensor?ID={{#getdata: ID | DataSensor2}} {{#replace:{{#replace:{{#getdata: Name | DataSensor2}}|[|(}}|]|)}}]''' | ||
+ | {{!}}[[{{#getdata: Description | EnumSensorType2}}]] | ||
+ | {{!}}{{#getdata: Description | EnumSensorRole2}} | ||
+ | {{{!}}class="wikitable sortable" {{#ifeq: {{#getdata: COUNT(1) | DataSensorCapabilitiesCount }} | 0 | style="display:none;" | }} | ||
+ | {{!}}- | ||
+ | {{ | ||
+ | #loop: SensorCapabilityIndex | ||
+ | | 1 | ||
+ | | {{#getdata: COUNT(1) | DataSensorCapabilitiesCount }} | ||
+ | |<nowiki/><div style="display:none;"> | ||
+ | {{#rawquery: SELECT * FROM DataSensorCapabilities WHERE ID = '{{ #getdata: ID | DataSensor2 }}' ; | {{#var:SensorCapabilityIndex}} | DataSensorCapabilities }} | ||
+ | {{#rawquery: SELECT * FROM EnumSensorCapability WHERE ID = '{{ #getdata: CodeID | DataSensorCapabilities }}'; | 1 | EnumSensorCapability }} | ||
+ | </div> | ||
+ | {{!}}- | ||
+ | {{!}} [[{{#getdata: Description | EnumSensorCapability }}]] | ||
+ | }} | ||
+ | {{!}}} | ||
+ | {{!}}{{#getdata: RangeMax | DataSensor2 }} | ||
+ | }} | ||
+ | {{!}}} | ||
+ | {{!}}{{#getdata: RangeMax | DataSensor }} | ||
+ | {{!}}{{RenderArc|{{#getdata: SB1 | DataFacilitySensors }}|{{#getdata: SB2 | DataFacilitySensors }}|{{#getdata: SMF1 | DataFacilitySensors }}|{{#getdata: SMF2 | DataFacilitySensors }}|{{#getdata: SMA1 | DataFacilitySensors }}|{{#getdata: SMA2 | DataFacilitySensors }}|{{#getdata: SS1 | DataFacilitySensors }}|{{#getdata: SS2 | DataFacilitySensors }}|{{#getdata: PB1 | DataFacilitySensors }}|{{#getdata: PB2 | DataFacilitySensors }}|{{#getdata: PMF1 | DataFacilitySensors }}|{{#getdata: PMF2 | DataFacilitySensors }}|{{#getdata: PMA1 | DataFacilitySensors }}|{{#getdata: PMA2 | DataFacilitySensors }}|{{#getdata: PS1 | DataFacilitySensors }}|{{#getdata: PS2 | DataFacilitySensors }}}} | ||
+ | }} | ||
|} | |} |
Revision as of 04:50, 24 January 2014
<img src="http://baloogan.images.blu3wolf.com/facility_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)]] | General Armor: | DataInvoker Error: getData error: No such key in handle (Description) |
Damage Points: | DataInvoker Error: getData error: No such key in handle (DamagePoints) | Mast Height: | DataInvoker Error: getData error: No such key in handle (MastHeight) m |
Length: | DataInvoker Error: getData error: No such key in handle (Length) m | Vehicle/Component Dispersal Radius: | DataInvoker Error: getData error: No such key in handle (Radius) m |
Width: | DataInvoker Error: getData error: No such key in handle (Width) m | Mounts Are Aimpoints: | DataInvoker Error: getData error: No such key in handle (MountsAreAimpoints) m |
Area: | DataInvoker Error: getData error: No such key in handle (Area) m | ||
Crew: | DataInvoker Error: getData error: No such key in handle (Crew) |
Sensors/EW
Name | Type | Role | Max Range (nm) | Arc |
---|