YellowWarningTriangle.png This wiki is closed in favour of the new wiki. Information shown is likely to be very out of date.

Difference between revisions of "Template:Template sandbox"

From Discovery Wiki
Jump to navigationJump to search
m
(Replaced with a copy of Template:Ship Infobox)
Line 1: Line 1:
 
<noinclude><!--</noinclude>
 
<noinclude><!--</noinclude>
{| class="infobox bordered" style="float: left; margin-right: 1em; margin-bottom: 10px; width: 350px; border: 1px solid #dddddd;" cellpadding="3"
+
{| 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"
 
|-
 
|-
| rowspan="2" style="width: 100px; text-align: center; font-size: larger;"|Image:{{{object_image}}}|center|thumb|100px
+
| colspan="2" style="text-align: center; font-size: 14px; background: #f6f6f6;"|'''{{{name}}}'''
| style="width: 150px; vertical-align: top; background: #f6f6f6;"| '''{{{object_name}}}'''
 
 
|-
 
|-
| style="vertical-align: top;"| ''{{{object_description}}}''
+
| colspan="2" style="padding: 0; text-align: center; padding: 5px 0px;"|{{#if: {{{image|}}}
 +
| [[image:{{{image}}}|center|254px]]
 +
| [[image:Noimage_test.jpg|center|254px]]
 +
}}
 +
|-
 +
|style="width: 115px; background: #f6f6f6;" | '''Ship Class'''
 +
|style="padding-right: 1em;" | {{#switch: {{{shipclass}}}
 +
| L_FIGHTER = [[Fighters#Light_Fighters|Light Fighter]]
 +
| H_FIGHTER = [[Fighters#Heavy_Fighters|Heavy Fighter]]
 +
| VH_FIGHTER = [[Fighters#Very_Heavy_Fighters|Very Heavy Fighter]]
 +
| SH_FIGHTER = [[Fighters#Very_Heavy_Fighters|Super Heavy Fighter]]
 +
| BOMBER = [[Bombers|Bomber]]
 +
| GUNBOAT = [[Gunboats|Gunboat]]
 +
| CRUISER = [[Capital_Ships#Cruisers|Cruiser]]
 +
| BATTLESHIP = [[Capital_Ships#Battleships|Battleship]]
 +
| FREIGHTER = [[Freighters|Freighter]]
 +
| TRANSPORT = [[Transports|Transport]]
 +
| LINER = [[Liners|Liner]]
 +
| #default = ''unknown''
 +
}}
 +
|-
 +
|style="background: #f6f6f6;" | '''Built by'''
 +
|style="padding-right: 1em;" | {{#if: {{{shipowner|}}} | {{{shipowner}}} | ''unknown''}}
 +
|-
 +
| colspan="2" style="vertical-align: top; font-weight: bold; text-align: center; background: #ebdab9;" | Technical information
 +
|- title="Amount of gun and turret hardpoints on this ship"
 +
|style="background: #f6f6f6;" | '''Guns/Turrets'''
 +
|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"
 +
|style="background: #f6f6f6;" | '''Opt. weapon class'''
 +
|style="padding-right: 1em;" | {{{optwepclass|''unknown''}}}
 +
|- title="Maximum class of weapons that can be mounted on this ship"
 +
|style="background: #f6f6f6;" | '''Max. weapon class'''
 +
|style="padding-right: 1em;" | {{{maxwepclass|''unknown''}}}
 +
|-
 +
|style="background: #f6f6f6;" | '''Additional equipment'''
 +
|style="padding-right: 1em;" | {{#if: {{{torpedoes|}}}{{{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]] }}
 +
| ''None''
 +
}}
 +
|- title="Amount of hull hitpoints"
 +
|style="background: #f6f6f6;" | '''Hull strength'''
 +
|style="padding-right: 1em; color: #009900; font-weight: bold;" | {{#if: {{{hull|}}}
 +
| {{formatnum:{{{hull}}}}}
 +
| ''unknown''
 +
}}
 +
|- title="Maximum class of shield that can be mounted on this ship"
 +
|style="background: #f6f6f6;" | '''Max. shield class'''
 +
|style="padding-right: 1em; color: #006699; font-weight: bold;" | {{{maxshieldclass|''unknown''}}}
 +
|- title="Amount of cargo this ship is able to carry"
 +
|style="background: #f6f6f6;" | '''Cargo space'''
 +
|style="padding-right: 1em;" | {{#if: {{{cargo|}}}
 +
| {{formatnum:{{{cargo}}}}} units
 +
| ''unknown''
 +
}}
 +
|- title="Maximum number of shield batteries/nanobots carried by this ship"
 +
|style="background: #f6f6f6;" | '''Nanobots/Batteries'''
 +
|style="padding-right: 1em;" | {{#if: {{{maxregens|}}}
 +
| {{{maxregens}}}/{{{maxregens}}}
 +
| ''unknown''
 +
}}
 +
|- title="Maximum speed of this ship on impulse drive"
 +
|style="background: #f6f6f6;" | '''Max. impulse speed'''
 +
|style="padding-right: 1em;" | {{#if: {{{maxspeed|}}}
 +
| {{formatnum:{{{maxspeed}}}}} m/s
 +
| ''unknown''
 +
}}
 +
|- title="Maximum speed of this ship on thrusters"
 +
|style="background: #f6f6f6;" | '''Max. thrust speed'''
 +
|style="padding-right: 1em;" | {{#if: {{{maxthrust|}}}
 +
| {{formatnum:{{{maxthrust}}}}} m/s
 +
| <span style="color: #990000; font-style: italic;">Thruster not available</span>
 +
}}
 +
|- title="Maximum reactor energy storage (capacitance)"
 +
|style="background: #f6f6f6;" | '''Power output'''
 +
|style="padding-right: 1em;" | {{#if: {{{maxpower|}}}
 +
| {{formatnum:{{{maxpower}}}}} u
 +
| ''unknown''
 +
}}
 +
|- title="Amount of energy units generated per second"
 +
|style="background: #f6f6f6;" | '''Power recharge'''
 +
|style="padding-right: 1em;" | {{#if: {{{recharge|}}}
 +
| {{formatnum:{{{recharge}}}}} u/s
 +
| ''unknown''
 +
}}
 +
|-
 +
| colspan="2" style="vertical-align: top; font-weight: bold; text-align: center; background: #ebdab9;" | Additional information
 +
|- title="Price of the ship without any mounted equipment"
 +
|style="background: #f6f6f6;" | '''Ship price'''
 +
|style="padding-right: 1em;" | {{#if: {{{hullcost|}}}
 +
| ${{formatnum:{{{hullcost}}}}}
 +
| ''unknown''
 +
}}
 +
|- title="Price of the ship with the default equipment"
 +
|style="background: #f6f6f6;" | '''Package price'''
 +
|style="padding-right: 1em;" | {{#if: {{{fullcost|}}}
 +
| ${{formatnum:{{{fullcost}}}}}
 +
| ''unknown''
 +
}}
 
|}
 
|}
 +
{{#switch: {{{shipclass}}}
 +
| L_FIGHTER = [[Category:Light Fighters]]
 +
| H_FIGHTER = [[Category:Heavy Fighters]]
 +
| VH_FIGHTER = [[Category:Very Heavy Fighters]]
 +
| SH_FIGHTER = [[Category:Super Heavy Fighters]]
 +
| BOMBER = [[Category:Bombers]]
 +
| GUNBOAT = [[Category:Gunboats]]
 +
| CRUISER = [[Category:Cruisers]]
 +
| BATTLESHIP = [[Category:Battleships]]
 +
| FREIGHTER = [[Category:Freighters]]
 +
| TRANSPORT = [[Category:Transports]]
 +
| LINER = [[Category:Liners]]
 +
| #default = [[Category:Uncategorised ships]]
 +
}}[[Category:Ships]]{{#if: {{{image|}}}
 +
| | [[Category:Ship pages without profile images]]
 +
}}
 
<noinclude>
 
<noinclude>
 
-->
 
-->
 
==Usage==
 
==Usage==
<pre><nowiki>{{Template sandbox
+
<pre><nowiki>{{Ship Infobox
|object_image = Flag-rheinlandvector.gif
+
| name = RH-GM40 "Odin"
|object_name = House Rheinland
+
| image = Odin1.jpg
|object_owner = Bundesrepublik Rheinland
+
| shipclass = VH_FIGHTER
 +
| 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
 +
| maxspeed = 80
 +
| maxthrust = 199
 +
| maxpower = 11400
 +
| recharge = 1160
 +
| hullcost = 1995000
 +
| fullcost = 2128130
 
}}</nowiki></pre>
 
}}</nowiki></pre>
 +
Ship class can be one of these choices:
 +
* L_FIGHTER
 +
* H_FIGHTER
 +
* VH_FIGHTER
 +
* SH_FIGHTER
 +
* BOMBER
 +
* GUNBOAT
 +
* CRUISER
 +
* BATTLESHIP
 +
* FREIGHTER
 +
* TRANSPORT
 +
* LINER
 +
 
==Result==
 
==Result==
{{Template sandbox
+
{{Ship Infobox
|object_image = Flag-rheinlandvector.gif
+
| name = RH-GM40 "Odin"
|object_name = House Rheinland
+
| image = Odin1.jpg
|object_owner = Bundesrepublik Rheinland
+
| shipclass = VH_FIGHTER
 +
| 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
 +
| maxspeed = 80
 +
| maxthrust = 199
 +
| maxpower = 11400
 +
| recharge = 1160
 +
| hullcost = 1995000
 +
| fullcost = 2128130
 
}}
 
}}
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 15:16, 24 April 2009

Usage

{{Ship Infobox
| name = RH-GM40 "Odin"
| image = Odin1.jpg
| shipclass = VH_FIGHTER
| 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
| maxspeed = 80
| maxthrust = 199
| maxpower = 11400
| recharge = 1160
| hullcost = 1995000
| fullcost = 2128130
}}

Ship class can be one of these choices:

  • L_FIGHTER
  • H_FIGHTER
  • VH_FIGHTER
  • SH_FIGHTER
  • BOMBER
  • GUNBOAT
  • CRUISER
  • BATTLESHIP
  • FREIGHTER
  • TRANSPORT
  • LINER

Result

RH-GM40 "Odin"
Ship Class Very Heavy Fighter
Built by Red Hessians
Technical information
Guns/Turrets 6 / 1
Opt. weapon class 8
Max. weapon class 10
Other equipment
Hull strength 9,700
Max. shield class 10
Cargo space 65 units
Nanobots/Batteries 62/62
Max. impulse speed 80 m/s
Max. thrust speed 199 m/s
Max. cruise speed 350 m/s
Power output 11,400 u
Power recharge 1,160 u/s
Additional information
Ship price $1,995,000
Package price $2,128,130