Difference between revisions of "Template:Ship Infobox"

From Discovery Wiki
Jump to navigationJump to search
m (I can't quite see what's breaking it here yet. Cleaned up the code a bit, though.)
(Undo revision 103424 by Space (talk) - Wrong infobox, Space. Wrong infobox. That's where your revision went.)
Line 4: Line 4:
 
| colspan="2" class="infobox-name"|'''{{{name}}}'''
 
| colspan="2" class="infobox-name"|'''{{{name}}}'''
 
|-
 
|-
| colspan="2" class="shipDisplay" style="padding: 0; text-align: center; padding: 5px 0px;"
+
| colspan="2" class="shipDisplay" style="padding: 0; text-align: center; padding: 5px 0px;"|{{#if: {{{image|}}}
| {{#if: {{{image|}}}|[[image:{{{image}}}|center|254px]]|[[image:Noimage_test.jpg|center|254px]]}}
+
| [[image:{{{image}}}|center|254px]]
 +
| [[image:Noimage_test.jpg|center|254px]]
 +
}}
 
|-
 
|-
| class="infobox-data-title" style="width: 120px;" | '''Ship Class'''
+
|class="infobox-data-title" style="width: 120px;" | '''Ship Class'''
| style="padding-right: 1em;" | {{#switch: {{{shipclass}}}
+
|style="padding-right: 1em;" | {{#switch: {{{shipclass}}}
 
| L_FIGHTER = [[Fighters#Light_Fighters|Light Fighter]]
 
| L_FIGHTER = [[Fighters#Light_Fighters|Light Fighter]]
 
| H_FIGHTER = [[Fighters#Heavy_Fighters|Heavy Fighter]]
 
| H_FIGHTER = [[Fighters#Heavy_Fighters|Heavy Fighter]]
Line 29: Line 31:
 
}}
 
}}
 
|-
 
|-
| class="infobox-data-title" | '''Built by'''
+
|class="infobox-data-title" | '''Built by'''
| style="padding-right: 1em;" | {{#if: {{{shipowner|}}} | {{{shipowner}}} | ''unknown''}}
+
|style="padding-right: 1em;" | {{#if: {{{shipowner|}}} | {{{shipowner}}} | ''unknown''}}
 
{{#if: {{{techmix|}}} | {{!}}- title="What column on the Tech Mix chart this ship belongs to"
 
{{#if: {{{techmix|}}} | {{!}}- title="What column on the Tech Mix chart this ship belongs to"
 
{{!}}class="infobox-data-title" {{!}} '''[http://discoverygc.com/wiki/techcompat_table.php Tech Column]'''
 
{{!}}class="infobox-data-title" {{!}} '''[http://discoverygc.com/wiki/techcompat_table.php Tech Column]'''
Line 38: Line 40:
 
| colspan="2" class="infobox-section" | Technical information
 
| colspan="2" class="infobox-section" | Technical information
 
|- title="Amount of gun and turret hardpoints on this ship"
 
|- title="Amount of gun and turret hardpoints on this ship"
| class="infobox-data-title" | '''Guns/Turrets'''
+
|class="infobox-data-title" | '''Guns/Turrets'''
| style="padding-right: 1em; font-weight: bold; letter-spacing: 1px;" | {{{guns|0}}} / {{{turrets|0}}}
+
|style="padding-right: 1em; font-weight: bold; letter-spacing: 1px;" | {{{guns|0}}} / {{{turrets|0}}}
 
|- title="Class of weapons best suited for mounting on this ship"
 
|- title="Class of weapons best suited for mounting on this ship"
| class="infobox-data-title" | '''Opt. weapon class'''
+
|class="infobox-data-title" | '''Opt. weapon class'''
| style="padding-right: 1em;" | {{{optwepclass|''unknown''}}}
+
|style="padding-right: 1em;" | {{{optwepclass|''unknown''}}}
 
|- title="Maximum class of weapons that can be mounted on this ship"
 
|- title="Maximum class of weapons that can be mounted on this ship"
| class="infobox-data-title" | '''Max. weapon class'''
+
|class="infobox-data-title" | '''Max. weapon class'''
| style="padding-right: 1em;" | {{{maxwepclass|''unknown''}}}
+
|style="padding-right: 1em;" | {{{maxwepclass|''unknown''}}}
 
|-
 
|-
| class="infobox-data-title" | '''Other equipment'''
+
|class="infobox-data-title" | '''Other equipment'''
| style="padding-right: 1em;" | {{#if: {{{torpedoes|}}}{{{btorpedoes|}}}{{{CD|}}}{{{CM|}}}{{{mines|}}}
+
|style="padding-right: 1em;" | {{#if: {{{torpedoes|}}}{{{btorpedoes|}}}{{{CD|}}}{{{CM|}}}{{{mines|}}}
 
| {{#if: {{{torpedoes|}}} | * {{{torpedoes}}}x[[Cruise Disruptors|CD]]/[[Torpedoes|T]] }}{{#if: {{{btorpedoes|}}} | * {{{btorpedoes}}}x[[Cruise Disruptors|CD]]/[[Bomber Torpedoes|HT]] }}{{#if: {{{torpedoes_nocd|}}} | * {{{torpedoes_nocd}}}x[[Torpedoes|T]] }}{{#if: {{{CD|}}} | * {{{CD}}}x[[Cruise Disruptors|CD]] }}{{#if: {{{CM|}}} | * {{{CM}}}x[[Countermeasures|CM]] }}{{#if: {{{mines|}}} | * {{{mines}}}x[[Mines|M]] }}
 
| {{#if: {{{torpedoes|}}} | * {{{torpedoes}}}x[[Cruise Disruptors|CD]]/[[Torpedoes|T]] }}{{#if: {{{btorpedoes|}}} | * {{{btorpedoes}}}x[[Cruise Disruptors|CD]]/[[Bomber Torpedoes|HT]] }}{{#if: {{{torpedoes_nocd|}}} | * {{{torpedoes_nocd}}}x[[Torpedoes|T]] }}{{#if: {{{CD|}}} | * {{{CD}}}x[[Cruise Disruptors|CD]] }}{{#if: {{{CM|}}} | * {{{CM}}}x[[Countermeasures|CM]] }}{{#if: {{{mines|}}} | * {{{mines}}}x[[Mines|M]] }}
 
| ''None''
 
| ''None''
 
}}
 
}}
 
|- title="Amount of hull hitpoints"
 
|- title="Amount of hull hitpoints"
| class="infobox-data-title" | '''Hull strength'''
+
|class="infobox-data-title" | '''Hull strength'''
| style="padding-right: 1em; color: #009900; font-weight: bold;" | {{#if: {{{hull|}}}
+
|style="padding-right: 1em; color: #009900; font-weight: bold;" | {{#if: {{{hull|}}}
 
| {{formatnum:{{{hull}}}}}
 
| {{formatnum:{{{hull}}}}}
 
| ''unknown''
 
| ''unknown''
 
}}
 
}}
 
|- title="Maximum class of shield that can be mounted on this ship"
 
|- title="Maximum class of shield that can be mounted on this ship"
| class="infobox-data-title" | '''Max. shield class'''
+
|class="infobox-data-title" | '''Max. shield class'''
| style="padding-right: 1em; color: #006699; font-weight: bold;" | {{{maxshieldclass|''unknown''}}}
+
|style="padding-right: 1em; color: #006699; font-weight: bold;" | {{{maxshieldclass|''unknown''}}}
 
|- title="Amount of cargo this ship is able to carry"
 
|- title="Amount of cargo this ship is able to carry"
| class="infobox-data-title" | '''Cargo space'''
+
|class="infobox-data-title" | '''Cargo space'''
| style="padding-right: 1em;" | {{#if: {{{cargo|}}}
+
|style="padding-right: 1em;" | {{#if: {{{cargo|}}}
 
| {{formatnum:{{{cargo}}}}} units
 
| {{formatnum:{{{cargo}}}}} units
 
| ''unknown''
 
| ''unknown''
 
}}
 
}}
 
|- title="Maximum number of shield batteries/nanobots carried by this ship"
 
|- title="Maximum number of shield batteries/nanobots carried by this ship"
| class="infobox-data-title" | '''Nanobots/Batteries'''
+
|class="infobox-data-title" | '''Nanobots/Batteries'''
| style="padding-right: 1em;" | {{#if: {{{maxregens|}}}
+
|style="padding-right: 1em;" | {{#if: {{{maxregens|}}}
 
| {{{maxregens}}}/{{{maxregens}}}
 
| {{{maxregens}}}/{{{maxregens}}}
 
| ''unknown''
 
| ''unknown''
 
}}
 
}}
 
|- title="Maximum speed of this ship on impulse drive"
 
|- title="Maximum speed of this ship on impulse drive"
| class="infobox-data-title" | '''Max. impulse speed'''
+
|class="infobox-data-title" | '''Max. impulse speed'''
| style="padding-right: 1em;" | {{#if: {{{maxspeed|}}}
+
|style="padding-right: 1em;" | {{#if: {{{maxspeed|}}}
 
| {{formatnum:{{{maxspeed}}}}} m/s
 
| {{formatnum:{{{maxspeed}}}}} m/s
 
| ''unknown''
 
| ''unknown''

Revision as of 14:53, 26 April 2015

Other Templates available to read:

The Basics  • Ships  • Factions  • Bases  • Planets  • Systems  • Commodities


Usage

{{Ship Infobox
| name = Series X "Dagger" Light Fighter
| image = Dagger-s.png
| shipclass = L_FIGHTER
| shipowner = [[Border Worlds]]
| shiptechcategory = [[Border Worlds]]
| guns = 4
| turrets = 1
| mines = 1
| CD = 1
| CM = 1
| dockbays = eleventy-seven
| specialslot = 69
| hull = 1800
| cargo = 35
| maxregens = 15
| optwepclass = 2
| maxwepclass = 4
| maxshieldclass = 4
| maxspeed = 80
| maxthrust = 199
| maxpower = 1800
| maxcruise = 350
| recharge = 183
| hullcost = 36800
| fullcost = 39020
| basic_lf = [[Dagger]]
| basic_hf = [[Stiletto]]
| adv_lf = [[Scimitar]]
| adv_hf = [[Switchblade]]
| basic_vhf = [[Sabre]]
| bomber = [[Bomber]]
| basic_freighter = Example
| adv_freighter = Example 2
}}

Ship class can be one of these choices:

  • L_FIGHTER
  • H_FIGHTER
  • VH_FIGHTER
  • SH_FIGHTER
  • SH_MINER
  • BOMBER
  • GUNSHIP
  • GUNBOAT
  • CRUISER
  • BATTLECRUISER
  • BATTLESHIP
  • DREADNOUGHT
  • LIGHTCARRIER
  • CARRIER
  • FREIGHTER
  • TRANSPORT
  • LINER

Result

Series X "Dagger" Light Fighter
Bw fighter.png
Ship Class Light Fighter
Built by Border Worlds
Technical information
Guns/Turrets 4 / 1
Opt. weapon class 2
Max. weapon class 4
Other equipment
Hull strength 1,800
Max. shield class 4
Cargo space 35 units
Nanobots/Batteries 15/15
Max. impulse speed 80 m/s
Max. thrust speed 199 m/s
Max. cruise speed 350 m/s
Power output 1,800 u
Power recharge 183 u/s
Hyperspatial Modules 69 Hyperspatial Modules
Docking Bays 0 Docking Bays
Variants
Light Fighter Dagger
Adv. Light Fighter Scimitar
Heavy Fighter Stiletto
Adv. Heavy Fighter Switchblade
Very Heavy Fighter Sabre
Bomber Bomber
Freighter Example
Adv. Freighter Example 2
Additional information
Ship price $36,800
Package price $39,020