Difference between revisions of "Template:Player Ship Infobox"

From Discovery Wiki
Jump to navigationJump to search
m
m (Alters the margin depending on the alignment of the infobox now.)
 
(18 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{| class="infobox bordered" style="float: right; margin-left: 1em; margin-bottom: 10px; width: 270px; font-size: 11px; line-height: 14px; border: 1px solid #dddddd;" cellpadding="3"
+
<includeonly>{| class="infobox bordered" style="float: {{#ifeq:{{{align|right}}}|right|right|left}}; margin-left: {{#ifeq:{{{align|right}}}|right|1em|0em}}; margin-right: {{#ifeq:{{{align|right}}}|right|0em|1em}}; margin-bottom: 10px; width: 270px; font-size: 11px; line-height: 14px; border: 1px solid #dddddd;" cellpadding="3"
 
|-
 
|-
 
| colspan="2" class="infobox-name"|'''{{{name}}}'''
 
| colspan="2" class="infobox-name"|'''{{{name}}}'''
Line 51: Line 51:
 
{{!}}style="padding-right: 1em;" {{!}}  
 
{{!}}style="padding-right: 1em;" {{!}}  
 
{{{c9|}}}
 
{{{c9|}}}
}}{{#if: {{{c8}}} | <br />
+
}}{{#if: {{{c8|}}} | <br />
 
{{!}}- title="Class 8 (Fighter) Guns"
 
{{!}}- title="Class 8 (Fighter) Guns"
 
{{!}}class="infobox-data-title" {{!}} '''Class 8 Guns'''
 
{{!}}class="infobox-data-title" {{!}} '''Class 8 Guns'''
Line 63: Line 63:
 
}}{{#if: {{{c6|}}} | <br />
 
}}{{#if: {{{c6|}}} | <br />
 
{{!}}- title="Class 6 (Bomber) Guns"
 
{{!}}- title="Class 6 (Bomber) Guns"
{{!}}class="infobox-data-title" {{!}} {{#switch: {{{classes|}}} | name = '''Bomber Guns''' | #default = '''Class 6 Guns'''}}}
+
{{!}}class="infobox-data-title" {{!}} {{#switch: {{{classes|}}} | name = '''Bomber Guns''' | #default = '''Class 6 Guns'''}}
 
{{!}}style="padding-right: 1em;" {{!}}  
 
{{!}}style="padding-right: 1em;" {{!}}  
 
{{{c6|}}}
 
{{{c6|}}}
Line 88: Line 88:
 
}}{{#if: {{{t10|}}} | <br />
 
}}{{#if: {{{t10|}}} | <br />
 
{{!}}- title="Class 10 (Battleship Heavy) Turrets"
 
{{!}}- title="Class 10 (Battleship Heavy) Turrets"
{{!}}class="infobox-data-title" {{!}} '''Class 10 Turrets'''
+
{{!}}class="infobox-data-title" {{!}} {{#switch: {{{classes|}}} | name = '''Battleship<br />Heavy Turrets''' | sname = '''Heavy Turrets''' | #default = '''Class 10 Turrets'''}}
 
{{!}}style="padding-right: 1em;" {{!}}  
 
{{!}}style="padding-right: 1em;" {{!}}  
 
{{{t10|}}}
 
{{{t10|}}}
 
}}{{#if: {{{t9|}}} | <br />
 
}}{{#if: {{{t9|}}} | <br />
 
{{!}}- title="Class 9 (Battleship Primary) Turrets"
 
{{!}}- title="Class 9 (Battleship Primary) Turrets"
{{!}}class="infobox-data-title" {{!}} '''Class 9 Turrets'''
+
{{!}}class="infobox-data-title" {{!}} {{#switch: {{{classes|}}} | name = '''Battleship<br />Primary Turrets''' | sname = '''Primary Turrets''' | #default = '''Class 9 Turrets'''}}
 
{{!}}style="padding-right: 1em;" {{!}}  
 
{{!}}style="padding-right: 1em;" {{!}}  
 
{{{t9|}}}
 
{{{t9|}}}
 
}}{{#if: {{{t8|}}} | <br />
 
}}{{#if: {{{t8|}}} | <br />
 
{{!}}- title="Class 8 (Battleship Secondary) Turrets"
 
{{!}}- title="Class 8 (Battleship Secondary) Turrets"
{{!}}class="infobox-data-title" {{!}} '''Class 8 Turrets'''
+
{{!}}class="infobox-data-title" {{!}} {{#switch: {{{classes|}}} | name = '''Battleship<br />Secondary Turrets''' | sname = '''Secondary Turrets''' | #default = '''Class 8 Turrets'''}}
 
{{!}}style="padding-right: 1em;" {{!}}  
 
{{!}}style="padding-right: 1em;" {{!}}  
 
{{{t8|}}}
 
{{{t8|}}}
 
}}{{#if: {{{t7|}}} | <br />
 
}}{{#if: {{{t7|}}} | <br />
 
{{!}}- title="Class 7 (Heavy Cruiser) Turrets"
 
{{!}}- title="Class 7 (Heavy Cruiser) Turrets"
{{!}}class="infobox-data-title" {{!}} '''Class 7 Turrets'''
+
{{!}}class="infobox-data-title" {{!}} {{#switch: {{{classes|}}} | name = '''Cruiser<br />Heavy Turrets''' | sname = '''Heavy Turrets''' | #default = '''Class 7 Turrets'''}}
 
{{!}}style="padding-right: 1em;" {{!}}  
 
{{!}}style="padding-right: 1em;" {{!}}  
{{{t|}}}
+
{{{t7|}}}
 
}}{{#if: {{{t6|}}} | <br />
 
}}{{#if: {{{t6|}}} | <br />
 
{{!}}- title="Class 6 (Cruiser) Turrets"
 
{{!}}- title="Class 6 (Cruiser) Turrets"
{{!}}class="infobox-data-title" {{!}} {{#switch: {{{classes|}}} | name = '''Cruiser Turrets''' | #default = '''Class 6 Turrets'''}}
+
{{!}}class="infobox-data-title" {{!}} {{#switch: {{{classes|}}} | sname | name = '''Cruiser Turrets''' | #default = '''Class 6 Turrets'''}}
 
{{!}}style="padding-right: 1em;" {{!}}  
 
{{!}}style="padding-right: 1em;" {{!}}  
 
{{{t6|}}}
 
{{{t6|}}}
Line 123: Line 123:
 
}}{{#if: {{{t3|}}} | <br />
 
}}{{#if: {{{t3|}}} | <br />
 
{{!}}- title="Class 3 (Bomber) Turrets"
 
{{!}}- title="Class 3 (Bomber) Turrets"
{{!}}class="infobox-data-title" {{!}} {{#switch: {{{classes|}}} | name = '''Bomber Turrets''' | #default = '''Class 3 Turrets'''}}}
+
{{!}}class="infobox-data-title" {{!}} {{#switch: {{{classes|}}} | name = '''Bomber Turrets''' | #default = '''Class 3 Turrets'''}}
 
{{!}}style="padding-right: 1em;" {{!}}  
 
{{!}}style="padding-right: 1em;" {{!}}  
 
{{{t3|}}}
 
{{{t3|}}}
Line 136: Line 136:
 
{{!}}style="padding-right: 1em;" {{!}}  
 
{{!}}style="padding-right: 1em;" {{!}}  
 
{{{t1|}}}
 
{{{t1|}}}
}}
+
}}{{#if: {{{btorps|}}}{{{btorpedo|}}}{{{btorp|}}} | <br />
|-
+
{{!}}- title="Bomber Torpedoes (Class 1 Guns)"
|class="infobox-data-title" | '''Additional equipment'''
+
{{!}}class="infobox-data-title" {{!}} '''Bomber Torpedoes'''
|style="padding-right: 1em;" | {{#if: {{{torpedoes|}}}{{{CD|}}}{{{CM|}}}{{{mines|}}}
+
{{!}}style="padding-right: 1em;" {{!}}
| {{#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]] }}
+
{{{btorp|}}}{{{btorpedo|}}}{{{btorps|}}}
| ''None''
+
}}{{#if: {{{ftorps|}}}{{{torpedo|}}}{{{ftorpedo|}}} | <br />
 +
{{!}}- title="Fighter Torpedoes"
 +
{{!}}class="infobox-data-title" {{!}} '''Fighter Torpedoes'''
 +
{{!}}style="padding-right: 1em;" {{!}}
 +
{{{ftorps|}}}{{{torpedo|}}}{{{ftorpedo|}}}
 +
}}{{#if: {{{cd|}}} | <br />
 +
{{!}}- title="Cruise Distuptors"
 +
{{!}}class="infobox-data-title" {{!}} '''Cruise Disruptor'''
 +
{{!}}style="padding-right: 1em;" {{!}}
 +
{{{cd|}}}
 +
}}{{#if: {{{cm|}}} | <br />
 +
{{!}}- title="Cruise Distuptors"
 +
{{!}}class="infobox-data-title" {{!}} '''Countermeasures'''
 +
{{!}}style="padding-right: 1em;" {{!}}
 +
{{{cm|}}}
 +
}}{{#if: {{{mines|}}} | <br />
 +
{{!}}- title="Cruise Distuptors"
 +
{{!}}class="infobox-data-title" {{!}} '''Mines'''
 +
{{!}}style="padding-right: 1em;" {{!}}  
 +
{{{mines|}}}
 
}}
 
}}
 
|- 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}}}}} {{#if: {{{armor|}}} | {{color|#ffbf00|(x{{#switch: {{{armor|}}}
 +
| AU1 | UAU1 | Armor Upgrade Mk I = 1.4
 +
| AU2 | UAU2 | Armor Upgrade Mk II = 1.7
 +
| AU3 | UAU3 | Armor Upgrade Mk III = 1.9
 +
| AU4 | UAU4 | Armor Upgrade Mk IV = 2.1
 +
| AU5 | UAU5 | Armor Upgrade Mk V = 2.2
 +
| AU6 | UAU6 | Armor Upgrade Mk VI = 2.3
 +
| AU7 | UAU7 | Armor Upgrade Mk VII = 2.4
 +
| AU8 | UAU8 | Armor Upgrade Mk VIII = 2.5
 +
| HAU1 | CAU1 | Heavy Armor Upgrade Mk I = 2.25
 +
| HAU2 | CAU2 | Heavy Armor Upgrade Mk II = 2.5
 +
| HAU3 | CAU3 | Heavy Armor Upgrade Mk III = 2.75
 +
| HAU4 | CAU4 | Heavy Armor Upgrade Mk IV = 3.0
 +
| cap5 | CAU5 | Capital Armor Upgrade Mk V = 3.3
 +
| cap6 | CAU6 | Capital Armor Upgrade Mk V = 3.6
 +
| cap7 | CAU7 | Capital Armor Upgrade Mk V = 3.8
 +
| cap8 | CAU8 | Capital Armor Upgrade Mk V = 4.0
 +
| #default = 1.0}})}}}}
 
| ''unknown''
 
| ''unknown''
 
}}
 
}}
Line 202: Line 238:
 
</includeonly>
 
</includeonly>
  
<noinclude>
+
<noinclude>{{Player Ship Infobox/doc}}
==Usage==
 
<pre><nowiki>{{Player Ship Infobox
 
| name = RH-GM40 "Odin"
 
| image = Odin-s.png
 
| shipclass = VH_FIGHTER
 
| captain = Johnny Whoever
 
| shipowner = [[Red Hessians]]
 
| guns = 6
 
| turrets = 1
 
| torpedoes = 1
 
| mines = 1
 
| CM = 1
 
| hull = 9700
 
| cargo = 65
 
| maxregens = 62
 
| optwepclass = 8
 
| maxwepclass = 10
 
| maxshieldclass = 10
 
| shield = 10186
 
| maxspeed = 80
 
| maxthrust = 199
 
| maxpower = 11400
 
| recharge = 1160
 
}}</nowiki></pre>
 
* You can add a custom field "| disclaimer = This is an admin-approved player owned ship" or the like if you don't wish to see the default disclaimer on the top of the page
 
==Result==
 
{{Player Ship Infobox
 
| name = RH-GM40 "Odin"
 
| image = Odin-s.png
 
| shipclass = VH_FIGHTER
 
| captain = Johnny Whoever
 
| shipowner = [[Red Hessians]]
 
| guns = 6
 
| turrets = 1
 
| torpedoes = 1
 
| mines = 1
 
| CM = 1
 
| hull = 9700
 
| cargo = 65
 
| maxregens = 62
 
| optwepclass = 8
 
| maxwepclass = 10
 
| maxshieldclass = 10
 
| shield = 10186
 
| maxspeed = 80
 
| maxthrust = 199
 
| maxpower = 11400
 
| recharge = 1160
 
}}
 
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 09:46, 31 August 2013


Variables, Syntax, and Form


name
Ship Class unknown
Built by shipowner
Captain captain
Technical information
Guns/Turrets guns / turrets
Class 10 Guns

c10

Class 9 Guns

c9

Class 8 Guns

c8

Class 7 Guns

c7

Class 6 Guns

c6

Class 5 Guns

c5

Class 4 Guns

c4

Class 3 Guns

c3

Class 2 Guns

c2

Class 10 Turrets

t10

Class 9 Turrets

t9

Class 8 Turrets

t8

Class 7 Turrets

t7

Class 6 Turrets

t6

Class 5 Turrets

t5

Class 4 Turrets

t4

Class 3 Turrets

t3

Class 2 Turrets

t2

Class 1 Turrets

t1

Bomber Torpedoes

btorps

Fighter Torpedoes

ftorps

Cruise Disruptor

cd

Countermeasures

cm

Mines

mines

Hull strength hull (x1.0)
Shield strength shield
Cargo space cargo units
Nanobots/Batteries maxregens/maxregens
Max. impulse speed 80 m/s
Max. thrust speed 199 m/s
Power output 36,000 u
Power recharge 1650
Hyperspatial Module jumpdrive
Hyperspatial Module surveyor
This is a player owned ship.


{{Player Ship Infobox
| name = name
| image = image
| shipclass = shipclass
| captain = captain
| shipowner = shipowner
| guns = guns
| turrets = turrets
| torpedoes = torpedoes
| mines = mines
| hull = hull
| armor = armor
| cargo = cargo
| maxregens = maxregens
| shield = shield
| maxspeed = 80
| maxthrust = 199
| maxpower = 36000
| recharge = 1650
| c2 = c2
| c3 = c3
| c4 = c4
| c5 = c5
| c6 = c6
| c7 = c7
| c8 = c8
| c9 = c9
| c10 = c10
| t1 = t1
| t2 = t2
| t3 = t3
| t4 = t4
| t5 = t5
| t6 = t6
| t7 = t7
| t8 = t8
| t9 = t9
| t10 = t10
| ftorps = ftorps
| btorps = btorps
| cm = cm
| cd = cd
| jumpdrive = jumpdrive
| surveyor = surveyor
}}


Examples

Liberty Dreadnought


LNS Coral Sea
Li dreadnought.png
Ship Class Dreadnought
Built by Liberty Navy
Captain Kevin Smith
Technical information
Guns/Turrets 0 / 13
Class 10 Turrets
Class 9 Turrets
Class 8 Turrets
Countermeasures

Enh. Countermeasure

Hull strength 840,000 (x2.5)
Shield strength 460,000 Graviton
Cargo space 1,600 units
Nanobots/Batteries 1600/1600
Max. impulse speed 80 m/s
Max. thrust speed Thruster not available
Power output 8,000,000 u
Power recharge 260,000 u/s (100%)
Hyperspatial Module Jump Drive Mk III
This is a player owned ship.


Code

{{Player Ship Infobox
| name = LNS Coral Sea
| image = LibDread-s.png
| shipclass = DREADNOUGHT
| captain = Kevin Smith
| shipowner = [[Liberty Navy]]
| turrets = 13
| cm = Enh. Countermeasure
| hull = 840000
| armor = UAU8
| cargo = 1600
| maxregens = 1600
| optwepclass = 9
| maxwepclass = 10
| shield = 460000 Graviton
| maxspeed = 80
| maxpower = 8000000
| recharge = 260,000
| jumpdrive = 3
| t10 = * [[Heavy Mortar]]
* [[Heavy Mortar]]
* [[Liberty Battleship Missile Turret|Battleship Missile]]
| t9 = * [[Liberty Battleship Primary Turret|Primary Turret]]
* [[Liberty Battleship Primary Turret|Primary Turret]]
* [[Liberty Battleship Primary Turret|Primary Turret]]
* [[Liberty Battleship Primary Turret|Primary Turret]]
| t8 = * [[Liberty Battleship Secondary Turret|Secondary Turret]]
* [[Liberty Battleship Secondary Turret|Secondary Turret]]
* [[Liberty Battleship Secondary Turret|Secondary Turret]]
* [[Liberty Battleship Secondary Turret|Secondary Turret]]
* [[Liberty Battleship Flak Turret|Flak Turret]]
* [[Liberty Battleship Flak Turret|Flak Turret]]
}}


Super Heavy Fighter


Junker "Recycler" SHF
Junkerbomber.png
Ship Class Super Heavy Fighter
Built by Junkers Congress
Captain Skid Marx
Technical information
Guns/Turrets 5 / 2
Bomber Torpedoes

Civilian SNAC

Fighter Torpedoes

Mini-Razor

Cruise Disruptor

Train CD

Countermeasures

Enhanced CM

Mines

1

Hull strength 24,600 (x2.5)
Shield strength 24,350 Molecular
Cargo space 200 units
Nanobots/Batteries 260/260
Max. impulse speed 80 m/s
Max. thrust speed 199 m/s
Power output 36,000 u
Power recharge 1650
This is a player owned ship.


Code

{{Player Ship Infobox
| name = Junker "Recycler" SHF
| image = Recycler-s.png
| shipclass = SH_FIGHTER
| captain = Skid Marx
| shipowner = [[The Junkers Congress|Junkers Congress]]
| guns = 5
| turrets = 2
| torpedoes = 1
| mines = 1
| btorpedo = [[Civilian SNAC]]
| torpedo = Mini-Razor
| cd = Train CD
| cm = Enhanced CM
| hull = 24600
| armor = UAU8
| cargo = 200
| maxregens = 260
| shield = 24350 Molecular
| maxspeed = 80
| maxthrust = 199
| maxpower = 36000
| recharge = 1650
}}