Brought to you by PCGamingWiki

Difference between revisions of "Template:Shipbox"

From FTL Wiki
Jump to: navigation, search
m (Going back to this, as the tables refuse to nest for some reason)
(fixed positioning issue--any new systems added must be in the same format)
Line 24: Line 24:
 
{|
 
{|
 
|-
 
|-
{{#if:{{{system_piloting|}}}|{{!}}{{system|Piloting}}}}
+
{{#if:{{{system_piloting|}}}|{{!}}{{system|Piloting}}}}<!--
{{#if:{{{system_doors|}}}|{{!}}{{system|Door System}}}}
+
-->{{#if:{{{system_doors|}}}|{{!}}{{!}}{{system|Door System}}}}<!--
{{#if:{{{system_sensors|}}}|{{!}}{{system|Sensors}}}}
+
-->{{#if:{{{system_sensors|}}}|{{!}}{{!}}{{system|Sensors}}}}<!--
{{#if:{{{system_oxygen|}}}|{{!}}{{system|Oxygen}}}}
+
-->{{#if:{{{system_oxygen|}}}|{{!}}{{!}}{{system|Oxygen}}}}<!--
{{#if:{{{system_shields|}}}|{{!}}{{system|Shields}}}}
+
-->{{#if:{{{system_shields|}}}|{{!}}{{!}}{{system|Shields}}}}<!--
{{#if:{{{system_engines|}}}|{{!}}{{system|Engines}}}}
+
-->{{#if:{{{system_engines|}}}|{{!}}{{!}}{{system|Engines}}}}<!--
{{#if:{{{system_weapon_control|}}}|{{!}}{{system|Weapon Control}}}}
+
-->{{#if:{{{system_weapon_control|}}}|{{!}}{{!}}{{system|Weapon Control}}}}<!--
{{#if:{{{system_drone_control|}}}|{{!}}{{system|Drone Control}}}}
+
-->{{#if:{{{system_drone_control|}}}|{{!}}{{!}}{{system|Drone Control}}}}<!--
{{#if:{{{system_medbay|}}}|{{!}}{{system|Medbay}}}}
+
-->{{#if:{{{system_medbay|}}}|{{!}}{{!}}{{system|Medbay}}}}<!--
{{#if:{{{system_crew_teleporter|}}}|{{!}}{{system|Crew Teleporter}}}}
+
-->{{#if:{{{system_crew_teleporter|}}}|{{!}}{{!}}{{system|Crew Teleporter}}}}<!--
{{#if:{{{system_cloaking|}}}|{{!}}{{system|Cloaking}}}}
+
-->{{#if:{{{system_cloaking|}}}|{{!}}{{!}}{{system|Cloaking}}}}<!--
{{#if:{{{system_artillery_beam|}}}|{{!}}{{system|Artillery Beam}}}}
+
-->{{#if:{{{system_artillery_beam|}}}|{{!}}{{!}}{{system|Artillery Beam}}}}
 
|-
 
|-
{{#if:{{{system_piloting|}}}|{{!}}{{PowerAlt|{{{system_piloting|}}}}}}}
+
{{#if:{{{system_piloting|}}}|{{!}}{{PowerAlt|{{{system_piloting|}}}}}}}<!--
{{#if:{{{system_doors|}}}|{{!}}{{PowerAlt|{{{system_doors|}}}}}}}
+
-->{{#if:{{{system_doors|}}}|{{!}}{{!}}{{PowerAlt|{{{system_doors|}}}}}}}<!--
{{#if:{{{system_sensors|}}}|{{!}}{{PowerAlt|{{{system_sensors|}}}}}}}
+
-->{{#if:{{{system_sensors|}}}|{{!}}{{!}}{{PowerAlt|{{{system_sensors|}}}}}}}<!--
{{#if:{{{system_oxygen|}}}|{{!}}{{PowerAlt|{{{system_oxygen|}}}}}}}
+
-->{{#if:{{{system_oxygen|}}}|{{!}}{{!}}{{PowerAlt|{{{system_oxygen|}}}}}}}<!--
{{#if:{{{system_shields|}}}|{{!}}{{PowerAlt|{{{system_shields|}}}}}}}
+
-->{{#if:{{{system_shields|}}}|{{!}}{{!}}{{PowerAlt|{{{system_shields|}}}}}}}<!--
{{#if:{{{system_engines|}}}|{{!}}{{PowerAlt|{{{system_engines|}}}}}}}
+
-->{{#if:{{{system_engines|}}}|{{!}}{{!}}{{PowerAlt|{{{system_engines|}}}}}}}<!--
{{#if:{{{system_weapon_control|}}}|{{!}}{{PowerAlt|{{{system_weapon_control|}}}}}}}
+
-->{{#if:{{{system_weapon_control|}}}|{{!}}{{!}}{{PowerAlt|{{{system_weapon_control|}}}}}}}<!--
{{#if:{{{system_drone_control|}}}|{{!}}{{PowerAlt|{{{system_drone_control|}}}}}}}
+
-->{{#if:{{{system_drone_control|}}}|{{!}}{{!}}{{PowerAlt|{{{system_drone_control|}}}}}}}<!--
{{#if:{{{system_medbay|}}}|{{!}}{{PowerAlt|{{{system_medbay|}}}}}}}
+
-->{{#if:{{{system_medbay|}}}|{{!}}{{!}}{{PowerAlt|{{{system_medbay|}}}}}}}<!--
{{#if:{{{system_crew_teleporter|}}}|{{!}}{{PowerAlt|{{{system_crew_teleporter|}}}}}}}
+
-->{{#if:{{{system_crew_teleporter|}}}|{{!}}{{PowerAlt|{{{system_crew_teleporter|}}}}}}}<!--
{{#if:{{{system_cloaking|}}}|{{!}}{{PowerAlt|{{{system_cloaking|}}}}}}}
+
-->{{#if:{{{system_cloaking|}}}|{{!}}{{!}}{{PowerAlt|{{{system_cloaking|}}}}}}}<!--
{{#if:{{{system_artillery_beam|}}}|{{!}}{{PowerAlt|{{{system_artillery_beam|}}}}}}}
+
-->{{#if:{{{system_artillery_beam|}}}|{{!}}{{!}}{{PowerAlt|{{{system_artillery_beam|}}}}}}}
 
|}
 
|}
 
|}
 
|}

Revision as of 22:45, 31 December 2012

Shipbox
Template documentation (for the above template, sometimes hidden or invisible)
Description
This template is used to create an item infobox for a ship.
Syntax
Type {{Shipbox|<...>}} somewhere, with the arguments as shown below.
Arguments
  • defaultname (optional, defaults to pagename)
  • smallimage (optional, provides the hull view)
  • image (optional, provides the hangar view)
  • shiptype (optional, use type of ship from XML)
  • layout (optional, should be in numbers)
  • crew (optional, do not use on unaffected drones)
  • weapons (optional)
  • drones (optional)
  • missiles (optional)
  • droneparts (optional)
  • powerbars (optional, name in blueprint)
  • augumentations (optional)
  • achievements (optional)
  • system_piloting
  • system_doors
  • system_sensors
  • system_oxygen
  • system_shields
  • system_engines
  • system_weapon_control
  • system_drone_control
  • system_medbay
  • system_crew_teleporter
  • system_cloaking
  • system_artillery_beam
Sample output
{{Shipbox
|defaultname   = The Kestrel
|smallimage    = Cruiser Hull Kestrel A The Kestrel.png
|image         = Cruiser Kestrel A The Kestrel.png
|shiptype      = Kestrel Cruiser
|layout        = A
|crew          = {{Crew|Human|3}}
|weapons       = [[Artemis]], [[Burst Laser II]]
|drones        = [[Defense Drone Mark I]]
|missiles      = 8
|droneparts    = 0
|powerbars     = 8
|augmentations = None
|achievements  = [[The United Federation]], [[Full Arsenal]], [[Tough Little Ship]]

|system_piloting=1
|system_doors=1
|system_sensors=1
|system_oxygen=1
|system_shields=2
|system_engines=2
|system_weapon_control=4
|system_drone_control=1
|system_medbay=1
|system_crew_teleporter=1
|system_cloaking=1
|system_artillery_beam=1
}}

Results in...

The Kestrel
Cruiser Hull Kestrel A The Kestrel.png
Cruiser Kestrel A The Kestrel.png
Ship type Kestrel Cruiser
Layout Layout A
Weapons Artemis, Burst Laser II
Drones Defense Drone Mark I
Missiles 8 Missiles
Drone parts 0
Power 8
Augmentations None
Achievements The United Federation, Full Arsenal, Tough Little Ship
Piloting
Power
Door System
Power
Sensors
Power
Oxygen
Power
Shields
Power
Engines
Power
Weapon Control
Power
Drone Control
Power
Medbay
Power
Crew Teleporter
Power
Cloaking
Power
Artillery Beam
Power

Visit Template:Shipbox/doc to edit this text! (How does this work?)