Difference between revisions of "Template:Ship Infobox"

From Discovery Wiki
Jump to navigationJump to search
(testing something)
(fix link to techcompat table)
 
(60 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<noinclude>{{GuideNav}}<!--</noinclude>{{#if: {{{image|}}}||{{Stub|This page requires a Picture for the '''Ship'''. This is an automatically generated message that will disappear when an image is used.}}}}
+
<noinclude>{{Style Guide navigation}}<!--</noinclude>{{#if: {{{historical|}}} | {{#if: {{{version|}}} | {{Historical|{{{historical}}}|{{{version}}}}} | {{Historical|{{{historical}}}}}}}[[Category:Historical Ships]]}}{{#if: {{{image|}}}||{{Stub|This page requires a Picture for the '''Ship'''. This is an automatically generated message that will disappear when an image is used.}}}}
 
{| class="infobox bordered" style="float: right; margin-left: 1em; margin-bottom: 10px; width: 270px; font-size: 11px; line-height: 14px; border: 2px solid black;" cellpadding="3"
 
{| class="infobox bordered" style="float: right; margin-left: 1em; margin-bottom: 10px; width: 270px; font-size: 11px; line-height: 14px; border: 2px solid black;" cellpadding="3"
 
|-
 
|-
 
| colspan="2" class="infobox-name"|'''{{{name}}}'''
 
| colspan="2" class="infobox-name"|'''{{{name}}}'''
 
|-
 
|-
| colspan="2" style="padding: 0; text-align: center; padding: 5px 0px;"|{{#if: {{{image|}}}
+
| colspan="2" class="shipDisplay" style="padding: 0; text-align: center; padding: 5px 0px;"|{{#if: {{{image|}}}
 
| [[image:{{{image}}}|center|254px]]
 
| [[image:{{{image}}}|center|254px]]
 
| [[image:Noimage_test.jpg|center|254px]]
 
| [[image:Noimage_test.jpg|center|254px]]
Line 15: Line 15:
 
| VH_FIGHTER = [[Fighters#Very_Heavy_Fighters|Very Heavy Fighter]]
 
| VH_FIGHTER = [[Fighters#Very_Heavy_Fighters|Very Heavy Fighter]]
 
| SH_FIGHTER = [[Fighters#Very_Heavy_Fighters|Super Heavy Fighter]]
 
| SH_FIGHTER = [[Fighters#Very_Heavy_Fighters|Super Heavy Fighter]]
 +
| SH_MINER = [[Fighters#Super_Heavy_Fighters|Super Heavy FIghter]][[Category: Mining Ships]]
 
| BOMBER = [[Bombers|Bomber]]
 
| BOMBER = [[Bombers|Bomber]]
| GUNBOAT = [[Gunboats|Gunboat]]
+
| GUNSHIP = [[Gunship]]
| CRUISER = [[Capital_Ships#Cruisers_and_Destroyers|Cruiser]]
+
| GUNBOAT = [[Gunboat]]
| BATTLECRUISER = [[Capital_Ships#Battlecruisers_and_Light_Carriers|Battlecruiser]]
+
| CRUISER = [[Capital_Ships#Cruiser-Class_Ships|Cruiser]]
| LIGHTCARRIER = [[Capital_Ships#Battlecruisers_and_Light_Carriers|Light Carrier]]
+
| BATTLECRUISER = [[Capital_Ships#Cruiser-Class_Ships|Battlecruiser]]
| BATTLESHIP = [[Capital_Ships#Battleships.2C_Dreadnoughts.2C_and_Heavy_Carriers|Battleship]]
+
| LIGHTCARRIER = [[Capital_Ships#Cruiser-Class_Ships|Light Carrier]]
| DREADNOUGHT = [[Capital_Ships#Battleships.2C_Dreadnoughts.2C_and_Heavy_Carriers|Dreadnought]]
+
| BATTLESHIP = [[Capital_Ships#Battleships_and_Carriers|Battleship]]
| CARRIER= [[Capital_Ships#Battleships.2C_Dreadnoughts.2C_and_Heavy_Carriers|Carrier]]
+
| DREADNOUGHT = [[Capital_Ships#Battleships_and_Carriers|Dreadnought]]
 +
| CARRIER= [[Capital_Ships#Battleships_and_Carriers|Carrier]]
 
| FREIGHTER = [[Freighters|Freighter]]
 
| FREIGHTER = [[Freighters|Freighter]]
 
| TRANSPORT = [[Transports|Transport]]
 
| TRANSPORT = [[Transports|Transport]]
| LINER = [[Liners|Liner]]
+
| LINER = [[Transports#Passenger_Liners|Liner]]
 
| #default = ''unknown''
 
| #default = ''unknown''
 
}}
 
}}
Line 31: Line 33:
 
|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"
 +
{{!}}class="infobox-data-title" {{!}} '''[http://discoverygc.com/techcompat/techcompat_table.php Tech Column]'''
 +
{{!}}style="padding-right: 1em;" {{!}} {{{techmix}}} | {{#if: {{{historical|}}} | | [[Category:Missing Tech Chart]]}}
 +
}}
 
|-
 
|-
 
| colspan="2" class="infobox-section" | Technical information
 
| colspan="2" class="infobox-section" | Technical information
Line 43: Line 49:
 
|style="padding-right: 1em;" | {{{maxwepclass|''unknown''}}}
 
|style="padding-right: 1em;" | {{{maxwepclass|''unknown''}}}
 
|-
 
|-
|class="infobox-data-title" | '''Additional equipment'''
+
|class="infobox-data-title" | '''Other equipment'''
|style="padding-right: 1em;" | {{#if: {{{torpedoes|}}}{{{CD|}}}{{{CM|}}}{{{mines|}}}
+
|style="padding-right: 1em;" | {{#if: {{{torpedoes|}}}{{{btorpedoes|}}}{{{CD|}}}{{{CM|}}}{{{mines|}}}
| {{#if: {{{torpedoes|}}} | * {{{torpedoes}}}x[[Cruise Disruptors|CD]]/[[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''
 
}}
 
}}
Line 74: Line 80:
 
| {{formatnum:{{{maxspeed}}}}} m/s
 
| {{formatnum:{{{maxspeed}}}}} m/s
 
| ''unknown''
 
| ''unknown''
 +
}}
 +
{{#if: {{{maxturn|}}} | {{!}}- title="Maximum turning speed in degrees per second"
 +
{{!}}class="infobox-data-title" {{!}} '''Max. turn speed'''
 +
{{!}}style="padding-right: 1em;" {{!}} {{formatnum:{{{maxturn}}}}} deg/s | {{#if: {{{historical|}}} | | [[Category: Missing Turn Speed]]}}
 +
}}
 +
{{#if: {{{maxturntimeDISABLED|}}} | {{!}}- title="Time in milliseconds to accelerate from 0deg/s to the maximum turn speed"
 +
{{!}}class="infobox-data-title" {{!}} '''Time to max. turn speed'''
 +
{{!}}style="padding-right: 1em;" {{!}} {{formatnum:{{{maxturntime}}}}} ms
 
}}
 
}}
 
|- title="Maximum speed of this ship on thrusters"
 
|- title="Maximum speed of this ship on thrusters"
Line 81: Line 95:
 
| <span style="color: #990000; font-style: italic;">Thruster not available</span>
 
| <span style="color: #990000; font-style: italic;">Thruster not available</span>
 
}}
 
}}
 +
|- title="Maximum speed of this ship on cruise engines"
 +
|class="infobox-data-title" | '''Max. cruise speed'''
 +
|style="padding-right: 1em;" | {{#if: {{{maxcruise|}}}
 +
| {{formatnum:{{{maxcruise}}}}} m/s
 +
| {{#switch: {{{shipclass}}}
 +
| L_FIGHTER = 400 m/s
 +
| H_FIGHTER
 +
| VH_FIGHTER
 +
| SH_FIGHTER
 +
| SH_MINER
 +
| BOMBER
 +
| GUNSHIP
 +
| GUNBOAT
 +
| CRUISER
 +
| BATTLECRUISER
 +
| LIGHTCARRIER
 +
| BATTLESHIP
 +
| DREADNOUGHT
 +
| CARRIER
 +
| FREIGHTER
 +
| TRANSPORT
 +
| LINER = 350 m/s
 +
| #default = ''unknown''
 +
}}}}
 
|- title="Maximum reactor energy storage (capacitance)"
 
|- title="Maximum reactor energy storage (capacitance)"
 
|class="infobox-data-title" | '''Power output'''
 
|class="infobox-data-title" | '''Power output'''
Line 92: Line 130:
 
| {{formatnum:{{{recharge}}}}} u/s
 
| {{formatnum:{{{recharge}}}}} u/s
 
| ''unknown''
 
| ''unknown''
 +
}}{{#if: {{{specialslot|}}} | <br />
 +
{{!}}- title="Number of slots for Docking Bays"
 +
{{!}}class="infobox-data-title" {{!}} '''Hyperspatial Modules'''
 +
{{!}}style="padding-right: 1em;" {{!}} {{formatnum:{{{specialslot}}}}} {{#ifeq: {{{specialslot}}} | 1 | Hyperspatial Module | Hyperspatial Modules}}
 +
}}{{#if: {{{dockbays|}}} | <br />
 +
{{!}}- title="Number of slots for Docking Bays"
 +
{{!}}class="infobox-data-title" {{!}} '''Docking Bays'''
 +
{{!}}style="padding-right: 1em;" {{!}} {{#expr: {{{dockbays|0}}}+{{{hangars|0}}}}} {{#ifeq: {{#expr: {{{dockbays|0}}}+{{{hangars|0}}}}} | 1 | Docking Bay | Docking Bays}}
 +
}}{{#ifeq: {{{hangars|}}} | DISABLED | <br />
 +
{{!}}- title="Number of slots for Docking Bays"
 +
{{!}}class="infobox-data-title" {{!}} '''Ship Hangars'''
 +
{{!}}style="padding-right: 1em;" {{!}} {{{hangars}}} {{#ifeq: {{{hangars}}} | 1 | Ship Hangar | Ship Hangars}}
 +
}}{{#if: {{{basic_lf|}}}{{{basic_hf|}}}{{{basic_vhf|}}}{{{adv_lf|}}}{{{adv_hf|}}}{{{adv_vhf|}}}{{{bomber|}}}{{{basic_freighter|}}}{{{adv_freighter|}}}{{{faction|}}} | <nowiki />
 +
{{!}}-
 +
{{!}} colspan="2" class="infobox-section" {{!}} Variants
 +
}}{{#if: {{{basic_lf|}}} | <nowiki />
 +
{{!}}-
 +
{{!}} class="infobox-data-title" {{!}} '''Light Fighter'''
 +
{{!}} style="padding-right: 1em;" {{!}} {{{basic_lf|}}}
 +
}}{{#if: {{{adv_lf|}}} | <nowiki />
 +
{{!}}-
 +
{{!}} class="infobox-data-title" {{!}} '''Adv. Light Fighter'''
 +
{{!}} style="padding-right: 1em;" {{!}} {{{adv_lf|}}}
 +
}}{{#if: {{{basic_hf|}}} | <nowiki />
 +
{{!}}-
 +
{{!}} class="infobox-data-title" {{!}} '''Heavy Fighter'''
 +
{{!}} style="padding-right: 1em;" {{!}} {{{basic_hf|}}}
 +
}}{{#if: {{{basic_hf_1|}}} | <nowiki />
 +
{{!}}-
 +
{{!}} class="infobox-data-title" {{!}} '''Basic Heavy Fighter'''
 +
{{!}} style="padding-right: 1em;" {{!}} {{{basic_hf_1|}}}
 +
}}{{#if: {{{basic_hf_2|}}} | <nowiki />
 +
{{!}}-
 +
{{!}} class="infobox-data-title" {{!}} '''Basic Heavy Fighter'''
 +
{{!}} style="padding-right: 1em;" {{!}} {{{basic_hf_2|}}}
 +
}}{{#if: {{{adv_hf|}}} | <nowiki />
 +
{{!}}-
 +
{{!}} class="infobox-data-title" {{!}} '''Adv. Heavy Fighter'''
 +
{{!}} style="padding-right: 1em;" {{!}} {{{adv_hf|}}}
 +
}}{{#if: {{{basic_vhf|}}} | <nowiki />
 +
{{!}}-
 +
{{!}} class="infobox-data-title" {{!}} '''Very Heavy Fighter'''
 +
{{!}} style="padding-right: 1em;" {{!}} {{{basic_vhf|}}}
 +
}}{{#if: {{{adv_vhf|}}} | <nowiki />
 +
{{!}}-
 +
{{!}} class="infobox-data-title" {{!}} '''Adv. V. Heavy Fighter'''
 +
{{!}} style="padding-right: 1em;" {{!}} {{{adv_vhf|}}}
 +
}}{{#if: {{{bomber|}}} | <nowiki />
 +
{{!}}-
 +
{{!}} class="infobox-data-title" {{!}} '''Bomber'''
 +
{{!}} style="padding-right: 1em;" {{!}} {{{bomber|}}}
 +
}}{{#if: {{{basic_freighter|}}} | <nowiki />
 +
{{!}}-
 +
{{!}} class="infobox-data-title" {{!}} '''Freighter'''
 +
{{!}} style="padding-right: 1em;" {{!}} {{{basic_freighter|}}}
 +
}}{{#if: {{{adv_freighter|}}} | <nowiki />
 +
{{!}}-
 +
{{!}} class="infobox-data-title" {{!}} '''Adv. Freighter'''
 +
{{!}} style="padding-right: 1em;" {{!}} {{{adv_freighter|}}}
 
}}
 
}}
 
|-
 
|-
Line 106: Line 203:
 
| ${{formatnum:{{{fullcost}}}}}
 
| ${{formatnum:{{{fullcost}}}}}
 
| ''unknown''
 
| ''unknown''
 +
}}{{#switch: {{{toc|}}}
 +
| yes =
 +
| included =
 +
| no
 +
| #default = __NOTOC__
 
}}
 
}}
 
|}
 
|}
{{#switch: {{{shipclass}}}
+
{{#ifeq:{{NAMESPACE}}|Template||
| L_FIGHTER = [[Category:Light Fighters]]
+
[[Category:{{#switch: {{{shipclass}}}
| H_FIGHTER = [[Category:Heavy Fighters]]
+
| L_FIGHTER = Light Fighters
| VH_FIGHTER = [[Category:Very Heavy Fighters]]
+
| H_FIGHTER = Heavy Fighters
| SH_FIGHTER = [[Category:Super Heavy Fighters]]
+
| VH_FIGHTER = Very Heavy Fighters
| BOMBER = [[Category:Bombers]]
+
| SH_MINER
| GUNBOAT = [[Category:Gunboats]]
+
| SH_FIGHTER = Super Heavy Fighters
| CRUISER = [[Category:Cruisers]]
+
| BOMBER = Bombers
| BATTLECRUISER = [[Category:Battlecruisers]]
+
| GUNSHIP = Gunboats and Gunships
| BATTLESHIP = [[Category:Battleships]]
+
| GUNBOAT = Gunboats and Gunships
| DREADNOUGHT = [[Category:Battleships]]
+
| CRUISER = Cruisers
| LIGHTCARRIER = [[Category:Light Carriers]]
+
| BATTLECRUISER = Battlecruisers
| CARRIER= [[Category:Carriers]]
+
| BATTLESHIP = Battleships
| FREIGHTER = [[Category:Freighters]]
+
| DREADNOUGHT = Battleships
| TRANSPORT = [[Category:Transports]]
+
| LIGHTCARRIER = Light Carriers
| LINER = [[Category:Liners]]
+
| CARRIER = Carriers
| #default = [[Category:Uncategorised ships]]
+
| FREIGHTER = Freighters
}}[[Category:Ships]]{{#if: {{{image|}}}
+
| TRANSPORT = Transports
| | [[Category:Ship pages without profile images]]
+
| LINER = Liners
}}
+
| #default = Uncategorised ships
{{ShiplistNav}}
+
}}]][[Category:Ships]]{{#if:{{{image|}}}||[[Category:Ship pages without profile images]]}}}}<noinclude>-->
<noinclude>
 
-->
 
 
==Usage==
 
==Usage==
 
<pre><nowiki>{{Ship Infobox
 
<pre><nowiki>{{Ship Infobox
| name = RH-GM40 "Odin"
+
| name = Series X "Dagger" Light Fighter
| image = Odin-s.png
+
| image = Dagger-s.png
| shipclass = VH_FIGHTER
+
| shipclass = L_FIGHTER
| shipowner = [[Red Hessians]]
+
| shipowner = [[Border Worlds]]
| guns = 6
+
| shiptechcategory = [[Border Worlds]]
 +
| guns = 4
 
| turrets = 1
 
| turrets = 1
| torpedoes = 1
 
 
| mines = 1
 
| mines = 1
 +
| CD = 1
 
| CM = 1
 
| CM = 1
| hull = 9700
+
| dockbays = eleventy-seven
| cargo = 65
+
| specialslot = 69
| maxregens = 62
+
| hull = 1800
| optwepclass = 8
+
| cargo = 35
| maxwepclass = 10
+
| maxregens = 15
| maxshieldclass = 10
+
| optwepclass = 2
 +
| maxwepclass = 4
 +
| maxshieldclass = 4
 
| maxspeed = 80
 
| maxspeed = 80
 
| maxthrust = 199
 
| maxthrust = 199
| maxpower = 11400
+
| maxpower = 1800
| recharge = 1160
+
| maxcruise = 350
| hullcost = 1995000
+
| recharge = 183
| fullcost = 2128130
+
| 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
 
}}</nowiki></pre>
 
}}</nowiki></pre>
 
Ship class can be one of these choices:
 
Ship class can be one of these choices:
Line 160: Line 272:
 
* VH_FIGHTER
 
* VH_FIGHTER
 
* SH_FIGHTER
 
* SH_FIGHTER
 +
* SH_MINER
 
* BOMBER
 
* BOMBER
 +
* GUNSHIP
 
* GUNBOAT
 
* GUNBOAT
 
* CRUISER
 
* CRUISER
Line 174: Line 288:
 
==Result==
 
==Result==
 
{{Ship Infobox
 
{{Ship Infobox
| name = RH-GM40 "Odin"
+
| name = Series X "Dagger" Light Fighter
| image = Odin-s.png
+
| image = Dagger-s.png
| shipclass = VH_FIGHTER
+
| shipclass = L_FIGHTER
| shipowner = [[Red Hessians]]
+
| shipowner = [[Border Worlds]]
| guns = 6
+
| shiptechcategory = [[Border Worlds]]
 +
| guns = 4
 
| turrets = 1
 
| turrets = 1
| torpedoes = 1
 
 
| mines = 1
 
| mines = 1
 +
| CD = 1
 
| CM = 1
 
| CM = 1
| hull = 9700
+
| dockbays = 0
| cargo = 65
+
| specialslot = 69
| maxregens = 62
+
| hull = 1800
| optwepclass = 8
+
| cargo = 35
| maxwepclass = 10
+
| maxregens = 15
| maxshieldclass = 10
+
| optwepclass = 2
 +
| maxwepclass = 4
 +
| maxshieldclass = 4
 
| maxspeed = 80
 
| maxspeed = 80
 
| maxthrust = 199
 
| maxthrust = 199
| maxpower = 11400
+
| maxpower = 1800
| recharge = 1160
+
| maxcruise = 350
| hullcost = 1995000
+
| recharge = 183
| fullcost = 2128130
+
| 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
 
}}
 
}}
{{ShiplistNav}}
 
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 22:24, 16 July 2022

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