|
|
Line 1: |
Line 1: |
− | <noinclude><!--</noinclude> | + | <noinclude>===This is a page for testing out templates=== |
− | {| 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"
| + | </noinclude><includeonly> |
− | |-
| + | <!-- YOUR TEMPLATE TEST GOES HERE --> |
− | | colspan="2" style="text-align: center; font-size: 14px; background: #f6f6f6;"|'''{{{name}}}'''
| + | </includeonly><noinclude> |
− | |-
| + | {{Template sandbox}} |
− | | 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''
| |
− | }}
| |
− | |}
| |
− | {{#if: {{{nocategories|}}}
| |
− | | | {{#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>
| |
− | --> | |
− | ==Usage==
| |
− | <pre><nowiki>{{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
| |
− | | nocategories = true
| |
− | }}</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==
| |
− | {{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
| |
− | | nocategories = true
| |
− | }} | |
− | [[Category:Templates]]
| |
| </noinclude> | | </noinclude> |