Difference between revisions of "Template:Infobox Ship"

From Imperial Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<div id="Ship" class="infobox hidable" style="padding: 0px; {{#if:{{{width|}}}|width:{{{width}}};|}}">
==Usage==
{| class="infoboxtable hidable-content" cellspacing="0" cellpadding="4" style="border-width: 0px"
Put one of these in for all the ships in the wiki.  It creates an infobox for easy reference.
|-
 
| class="infoboximage" colspan="2" style="{{#if:{{{imageBG|}}}|background: #{{{imageBG}}}|{{#if:669|background: #669|background: #999999}}}}" | {{{image|}}}
<pre class="wrap"><nowiki>{{Eras|}}
|-
{{Ship
! class="infoboxheading" colspan="2" style="{{#if:669|background: #669|background: #999999}}; {{{css|}}}" | {{{{{{2|name}}}}}}
|image=
{{#if:{{{hidep|}}}|{{!}}-|{{!}}-
|imageBG=000
! class="infoboxsubheading" colspan="2" style="background: #bbd" {{!}} '''Production information'''}}
|name=
{{#if:{{{manufacturer|}}}|
|hidep=
{{!}}-
|manufacturer=
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Manufacturer
|line=
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
|model=
{{{manufacturer|}}}
|class=
{{!}}-
|cost=
|}}{{#if:{{{line|}}}|
|modifier=
{{!}}-
|hidet=
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Product line
|sysmods=
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
|length (m)=
{{{line|}}}
|width (m)=
{{!}}-
|draft (m)=
|}}{{#if:{{{model|}}}|
|volume (m^3)=
{{!}}-
|mass (tons)=
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Model
|max accel (G)=
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
|peak power (w)=
{{{model|}}}
|firepower (w)=
{{!}}-
|shield dissipation rate (w)=
|}}{{#if:{{{class|}}}|
|shield reserve (j)=
{{!}}-
|max airspeed=
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Class
|engines=
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
|hyperdrive=
{{{class|}}}
|hdrange=
{{!}}-
|power=
|}}{{#if:{{{cost|}}}|
|shield gen=
{{!}}-
|sensor=
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Cost
|target=
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
|navigation=
{{{cost|}}}
|avionics=
{{!}}-
|maincomp=
|}}{{#if:{{{modifier|}}}|
|countermeasures=
{{!}}-
|primary armament=
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Modified by
|secondary armament=
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
|tertiary armament=
{{{modifier|}}}
|other armament=
{{!}}-
|fighters carried=
|}}{{#if:{{{hidet|}}}|{{!}}-|{{!}}-
|complement=
! class="infoboxsubheading" colspan="2" style="background: #bbd" {{!}} '''Technical specifications'''}}
|bays=
{{#if:{{{sysmods|}}}|
|escapepods=
{{!}}-
|crew=
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Modified systems
|skeleton=
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
|troops/passengers=
{{{sysmods|}}}
|cargo capacity=
{{!}}-
|cargohandling=
|}}{{#if:{{{length|}}}|
|consumables=
{{!}}-
|EFPH=
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Length
|communications|othersystems=
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
|hideu=
{{{length|}}}
|era=
{{!}}-
|faction=
|}}{{#if:{{{width|}}}|
|modules=
{{!}}-
}}|modules=}}</nowiki></pre>
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Width
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{width|}}}
{{!}}-
|}}{{#if:{{{height|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Height/depth
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{height|}}}
{{!}}-
|}}{{#if:{{{mass|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Mass
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{mass|}}}
{{!}}-
|}}{{#if:{{{max accel|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Maximum acceleration
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{max accel|}}}
{{!}}-
|}}{{#if:{{{mglt|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} [[Megalight|MGLT]]
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{mglt|}}}
{{!}}-
|}}{{#if:{{{max speed|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Maximum speed (atmosphere)
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{max speed|}}}
{{!}}-
|}}{{#if:{{{engine|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Engine unit(s)
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{engine|}}}
{{!}}-
|}}{{#if:{{{hyperdrive|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Hyperdrive rating
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{hyperdrive|}}}
{{!}}-
|}}{{#if:{{{hdrange|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Hyperdrive range
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{hdrange|}}}
{{!}}-
|}}{{#if:{{{hdsystem|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Hyperdrive system
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{hdsystem|}}}
{{!}}-
|}}{{#if:{{{poweroutput|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Power output
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{poweroutput|}}}
{{!}}-
|}}{{#if:{{{power|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Power plant
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{power|}}}
{{!}}-
|}}{{#if:{{{shield gen|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Shielding
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{shield gen|}}}
{{!}}-
|}}{{#if:{{{hull|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Hull
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{hull|}}}
{{!}}-
|}}{{#if:{{{sensor|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Sensor systems
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{sensor|}}}
{{!}}-
|}}{{#if:{{{target|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Targeting systems
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{target|}}}
{{!}}-
|}}{{#if:{{{navigation|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Navigation system
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{navigation|}}}
{{!}}-
|}}{{#if:{{{avionics|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Avionics
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{avionics|}}}
{{!}}-
|}}{{#if:{{{maincomp|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Main computer
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{maincomp|}}}
{{!}}-
|}}{{#if:{{{countermeasures|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Countermeasures
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{countermeasures|}}}
{{!}}-
|}}{{#if:{{{armament|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Armament
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{armament|}}}
{{!}}-
|}}{{#if:{{{complement|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Complement
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{complement|}}}
{{!}}-
|}}{{#if:{{{bays|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Docking bays
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{bays|}}}
{{!}}-
|}}{{#if:{{{escapepods|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Escape craft
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{escapepods|}}}
{{!}}-
|}}{{#if:{{{crew|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Crew
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{crew|}}}
{{!}}-
|}}{{#if:{{{skeleton|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Minimum crew
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{skeleton|}}}
{{!}}-
|}}{{#if:{{{passengers|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Passengers
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{passengers|}}}
{{!}}-
|}}{{#if:{{{capacity|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Cargo capacity
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{capacity|}}}
{{!}}-
|}}{{#if:{{{cargohandling|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Cargo handling systems
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{cargohandling|}}}
{{!}}-
|}}{{#if:{{{consumables|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Consumables
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{consumables|}}}
{{!}}-
|}}{{#if:{{{lifesupport|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Life support
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{lifesupport|}}}
{{!}}-
|}}{{#if:{{{communications|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Communication systems
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{communications|}}}
{{!}}-
|}}{{#if:{{{othersystems|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Other systems
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{othersystems|}}}
{{!}}-
|}}{{#if:{{{hideu|}}}|{{!}}-|{{!}}-
! class="infoboxsubheading" colspan="2" style="background: #bbd" {{!}} '''Usage'''}}
{{#if:{{{availability|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Availability
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{availability|}}}
{{!}}-
|}}{{#if:{{{role|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Role(s)
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{role|}}}
{{!}}-
|}}{{#if:{{{firstuse|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Year introduced
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{firstuse|}}}
{{!}}-
|}}{{#if:{{{retired|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Retired
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{retired|}}}
{{!}}-
|}}{{#if:{{{era|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Era(s)
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{era|}}}
{{!}}-
|}}{{#if:{{{affiliation|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Affiliation
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{affiliation|}}}
{{!}}-
|}}{{#if:{{{modules|}}}|
{{!}}-
{{!}} colspan="2" {{!}}
<table border="0" cellpadding="0" cellspacing="0" style="padding:0; width:242px; margin:0 auto 0 auto; background:none;"><tr><td>
{{{modules|}}}
</td></tr></table>
{{!}}-
|}}
|}
<div class="infoboxfooter plainlinks" style="text-align: center; {{#if:669|background: #669|background: #999999}}"><span class="hidable-button"></span>[[{{{srclink|Template:Ship}}}|[Source]]]</div>
{{#if:669|{{rb|#669}}|{{rb|#999999}}}}</div><!-- TEMPLATE ENDS HERE. In order to regenerate the template, replace the code above with the source code provided. --><noinclude>__NOTOC__

Revision as of 05:47, 30 May 2008

Usage

Put one of these in for all the ships in the wiki. It creates an infobox for easy reference.

{{Eras|}}
{{Ship
|image=
|imageBG=000
|name=
|hidep=
|manufacturer=
|line=
|model=
|class=
|cost=
|modifier=
|hidet=
|sysmods=
|length (m)=
|width (m)=
|draft (m)=
|volume (m^3)=
|mass (tons)=
|max accel (G)=
|peak power (w)=
|firepower (w)=
|shield dissipation rate (w)=
|shield reserve (j)=
|max airspeed=
|engines=
|hyperdrive=
|hdrange=
|power=
|shield gen=
|sensor=
|target=
|navigation=
|avionics=
|maincomp=
|countermeasures=
|primary armament=
|secondary armament=
|tertiary armament=
|other armament=
|fighters carried=
|complement=
|bays=
|escapepods=
|crew=
|skeleton=
|troops/passengers=
|cargo capacity=
|cargohandling=
|consumables=
|EFPH=
|communications|othersystems=
|hideu=
|era=
|faction=
|modules=
}}|modules=}}