Difference between revisions of "Template:StarshipTest2"

Template page
(Created page with "<div class="infobox"> {| class="ibtable" align="right" cellpadding="3" cellspacing="0" {{#if: {{{image|}}}| {{!}} class="ibimage" colspan="2" style="border-top-right-radiu...")
 
 
(27 intermediate revisions by the same user not shown)
Line 4: Line 4:
     {{!}} class="ibimage" colspan="2" style="border-top-right-radius: 13px; border-top-left-radius: 13px;" width="315px" {{!}} {{{image}}}
     {{!}} class="ibimage" colspan="2" style="border-top-right-radius: 13px; border-top-left-radius: 13px;" width="315px" {{!}} {{{image}}}
     {{!}}-
     {{!}}-
     {{!}} class="ibname" colspan="2" {{!}} '''{{{prefix}}}''' '''''{{{name}}}'''''|
     {{!}} class="ibname" colspan="2" {{!}} {{{displayName}}}|
         {{!}} class="ibname" colspan="2" style="border-top-right-radius: 13px; border-top-left-radius: 13px;" width="315px" {{!}} '''{{{prefix}}}''' '''''{{{name}}}'''''
         {{!}} class="ibname" colspan="2" style="border-top-right-radius: 13px; border-top-left-radius: 13px;" width="315px" {{!}} {{{displayname}}}
}}
}}
|-
|-
| class="ibheader" colspan="2" | '''General Information'''
| class="ibheader" colspan="2" | '''Information'''
|-
|-
{{#if: {{{registry|}}}|
{{#if: {{{affiliation|}}}|
{{!}} class="ibleft" {{!}} Registry
{{!}} class="ibleft" {{!}} Affiliation
{{!}} class="ibright" {{!}} {{{registry}}}
{{!}} class="ibright" {{!}}  
{{{affiliation}}}
}}
|-
{{#if: {{{status|}}}|
{{!}} class="ibleft" {{!}} Status
{{!}} class="ibright" {{!}}
{{{status}}}
}}
|-
{{#if: {{{type|}}}|
{{!}} class="ibleft" {{!}} Type
{{!}} class="ibright" {{!}}
{{{type}}}
}}
|-
{{#if: {{{role|}}}|
{{!}} class="ibleft" {{!}} Role
{{!}} class="ibright" {{!}}
{{{role}}}
}}
|-
{{#if: {{{precedingClass|}}}{{{succeedingClass|}}}|
    {{!}} class="ibheader" colspan="2" {{!}} '''Lineage'''
}}
|-
{{#if: {{{precedingClass|}}}|
{{#if: {{{flightCrew|}}}|
{{!}} class="ibleft" {{!}} Preceding Class
{{!}} class="ibright" {{!}}
[[{{{precedingClass}}}]]|
{{!}} class="ibleft" {{!}} Preceding Class
{{!}} class="ibright" {{!}}
[[{{{precedingClass}}} Class|''{{{precedingClass}}}''-class]]
}}
}}
|-
{{#if: {{{succeedingClass|}}}|
    {{#if: {{{succeedingClass1|}}}|
        {{#if: {{{succeedingClass2|}}}|
            {{#if: {{{flightCrew|}}}|
                {{!}} class = "ibleft" {{!}} Succeeding Class
                {{!}} class = "ibright" {{!}}
*[[{{{succeedingClass}}}]]
*[[{{{succeedingClass1}}}]]
*[[{{{succeedingClass2}}}]]|
                {{!}} class = "ibleft" {{!}} Succeeding Class
                {{!}} class = "ibright" {{!}}
*[[{{{succeedingClass}}} Class|''{{{succeedingClass}}}''-class]]
*[[{{{succeedingClass1}}} Class|''{{{succeedingClass1}}}''-class]]
*[[{{{succeedingClass2}}} Class|''{{{succeedingClass2}}}''-class]]}}|
            {{#if: {{{flightCrew|}}}|
                {{!}} class = "ibleft" {{!}} Succeeding Class
                {{!}} class = "ibright" {{!}}
*[[{{{succeedingClass}}}]]
*[[{{{succeedingClass1}}}]]|
                {{!}} class = "ibleft" {{!}} Succeeding Class
                {{!}} class = "ibright" {{!}}
*[[{{{succeedingClass}}} Class|''{{{succeedingClass}}}''-class]]
*[[{{{succeedingClass1}}} Class|''{{{succeedingClass1}}}''-class]]}}
        }}|
        {{#if: {{{flightCrew|}}}|
            {{!}} class = "ibleft" {{!}} Succeeding Class
            {{!}} class = "ibright" {{!}} [[{{{succeedingClass}}}]]|
            {{!}} class = "ibleft" {{!}} Succeeding Class
            {{!}} class = "ibright" {{!}} [[{{{succeedingClass}}} Class|''{{{succeedingClass}}}''-class]]
        }}
    }}
}}     
|-
{{#if: {{{operator|}}}{{{dateEntered|}}}{{{productionEnd|}}}{{{retired|}}}|
    {{!}} class="ibheader" colspan="2" {{!}} '''Service'''
}}
|-
{{#if: {{{operator|}}}|
{{!}} class="ibleft" {{!}} Operator
{{!}} class="ibright" {{!}}
{{{operator}}}
}}
|-
{{#if: {{{dateEntered|}}}|
{{!}} class="ibleft" {{!}} Entered Service
{{!}} class="ibright" {{!}}
{{{dateEntered}}}
}}
|-
{{#if: {{{productionEnd|}}}|
{{!}} class="ibleft" {{!}} Production Ended
{{!}} class="ibright" {{!}}
{{{productionEnd}}}
}}
|-
{{#if: {{{retired|}}}|
{{!}} class="ibleft" {{!}} Retired
{{!}} class="ibright" {{!}}
{{{retired}}}
}}
|-
{{#if: {{{expectedDuration|}}}{{{expectedRefit|}}}{{{timeResupply|}}}|
    {{!}} class="ibheader" colspan="2" {{!}} '''Endurance'''
}}
|-
{{#if: {{{expectedDuration|}}}|
{{!}} class="ibleft" {{!}} Expected Design Life
{{!}} class="ibright" {{!}}
{{{expectedDuration}}}
}}
|-
{{#if: {{{expectedRefit|}}}|
{{!}} class="ibleft" {{!}} Expected Refit Cycle
{{!}} class="ibright" {{!}}
{{{expectedRefit}}}
}}
|-
{{#if: {{{timeResupply|}}}|
{{!}} class="ibleft" {{!}} Expected Resupply Cycle
{{!}} class="ibright" {{!}}
{{{timeResupply}}}
}}
}}
|-
|-
{{#if: {{{displayclass|}}}|
{{#if: {{{crewComplement|}}}{{{emergencyCap|}}}{{{civilians|}}}{{{populationCap|}}}{{{flightCrew|}}}{{{passengers|}}}|
{{!}} class="ibleft" {{!}} Class & Type
    {{#if: {{{cruiseSpeed|}}}|
{{!}} class="ibright" {{!}} {{{displayclass}}}
        {{!}} class="ibheader" colspan="2" {{!}} '''Crew Capacity'''|
            {{!}} class="ibheader" colspan="2" {{!}} '''Population'''
    }}
}}
}}
|-
|-
{{#if: {{{affiliation|}}}|
{{#if: {{{crewComplement|}}}|
{{!}} class="ibleft" {{!}} Affiliation
{{!}} class="ibleft" {{!}} Standard Complement
{{!}} class="ibright" {{!}} {{{affiliation}}}
{{!}} class="ibright" {{!}}  
{{{crewComplement}}}
}}
|-
{{#if: {{{emergencyCap|}}}|
{{!}} class="ibleft" {{!}} Emergency Capacity
{{!}} class="ibright" {{!}}
{{{emergencyCap}}}
}}
|-
{{#if: {{{civilians|}}}|
{{!}} class="ibleft" {{!}} Civilian Residents
{{!}} class="ibright" {{!}}
{{{civilians}}}
}}
|-
{{#if: {{{populationCap|}}}|
{{!}} class="ibleft" {{!}} Maximum Population
{{!}} class="ibright" {{!}}
{{{populationCap}}}
}}
|-
{{#if: {{{flightCrew|}}}|
{{!}} class="ibleft" {{!}} Flight Crew
{{!}} class="ibright" {{!}}
{{{flightCrew}}}
}}
|-
{{#if: {{{passengers|}}}|
{{!}} class="ibleft" {{!}} Passengers
{{!}} class="ibright" {{!}}
{{{passengers}}}
}}
|-
{{#if: {{{length|}}}{{{width|}}}{{{diameter|}}}{{{height|}}}{{{decks|}}}|
    {{!}} class="ibheader" colspan="2" {{!}} '''Dimensions'''
}}
|-
{{#if: {{{length|}}}|
{{!}} class="ibleft" {{!}} Length
{{!}} class="ibright" {{!}}
{{{length}}}
}}
|-
{{#if: {{{width|}}}|
{{!}} class="ibleft" {{!}} Width
{{!}} class="ibright" {{!}}
{{{width}}}
}}
|-
{{#if: {{{diameter|}}}|
{{!}} class="ibleft" {{!}} Diameter
{{!}} class="ibright" {{!}}
{{{diameter}}}
}}
|-
{{#if: {{{height|}}}|
{{!}} class="ibleft" {{!}} Height
{{!}} class="ibright" {{!}}
{{{height}}}
}}
|-
{{#if: {{{decks|}}}|
{{!}} class="ibleft" {{!}} Decks
{{!}} class="ibright" {{!}}
{{{decks}}}
}}
|-
{{#if: {{{propulsionSystem|}}}{{{cruiseSpeed|}}}{{{maxSpeed|}}}{{{emergencySpeed|}}}|
    {{!}} class="ibheader" colspan="2" {{!}} '''Propulsion'''
}}
}}
|-
|-
{{#if: {{{status|}}}|
{{#if: {{{propulsionSystem|}}}|
{{!}} class="ibleft" {{!}} Status
{{!}} class="ibleft" {{!}} Propulsion Systems
{{!}} class="ibright" {{!}} {{{status}}}
{{!}} class="ibright" {{!}}  
{{{propulsionSystem}}}
}}
}}
|-
|-
{{#if: {{{commission|}}}|
{{#if: {{{cruiseSpeed|}}}|
{{!}} class="ibleft" {{!}} Commissioned
{{!}} class="ibleft" {{!}} Cruise Speed
{{!}} class="ibright" {{!}} {{{commission}}}
{{!}} class="ibright" {{!}}  
{{{cruiseSpeed}}}
}}
}}
|-
|-
{{#if: {{{decommission|}}}|
{{#if: {{{maxSpeed|}}}|
{{!}} class="ibleft" {{!}} Decommissioned
{{!}} class="ibleft" {{!}} Maximum Speed
{{!}} class="ibright" {{!}} {{{decommission}}}
{{!}} class="ibright" {{!}}  
{{{maxSpeed}}}
}}
}}
|-
|-
{{#if: {{{destroyed|}}}|
{{#if: {{{emergencySpeed|}}}|
{{!}} class="ibleft" {{!}} Destroyed
{{!}} class="ibleft" {{!}} Emergency Speed
{{!}} class="ibright" {{!}} {{{destroyed}}}
{{!}} class="ibright" {{!}}  
{{{emergencySpeed}}}
}}
}}
|-
|-
| class="ibheader" colspan="2" | '''Assignment'''
{{#if: {{{energyWeapons|}}}{{{torpLaunchers|}}}{{{torpPayload|}}}{{{sheilds|}}}|
    {{!}} class="ibheader" colspan="2" {{!}} '''Armaments'''
}}
|-
|-
{{#if: {{{unit|}}}|
{{#if: {{{energyWeapons|}}}|
{{!}} class="ibleft" {{!}} Unit
{{!}} class="ibleft" {{!}} Energy Weapons
{{!}} class="ibright" {{!}} {{{unit}}}
{{!}} class="ibright" {{!}}  
{{{energyWeapons}}}
}}
}}
|-
|-
{{#if: {{{taskforce|}}}|
{{#if: {{{torpLaunchers|}}}|
{{!}} class="ibleft" {{!}} Task Force
{{!}} class="ibleft" {{!}} Torpedo Launchers
{{!}} class="ibright" {{!}} {{{taskforce}}}
{{!}} class="ibright" {{!}}  
{{{torpLaunchers}}}
}}
}}
|-
|-
{{#if: {{{taskgroup|}}}|
{{#if: {{{torpPayload|}}}|
{{!}} class="ibleft" {{!}} Task Group
{{!}} class="ibleft" {{!}} Torpedo Payload
{{!}} class="ibright" {{!}} {{{taskgroup}}}
{{!}} class="ibright" {{!}}  
{{{torpPayload}}}
}}
}}
|-
|-
{{#if: {{{squadron|}}}|
{{#if: {{{shields|}}}|
{{!}} class="ibleft" {{!}} Squadron
{{!}} class="ibleft" {{!}} Shields
{{!}} class="ibright" {{!}} {{{squadron}}}
{{!}} class="ibright" {{!}}  
{{{shields}}}
}}
}}
|-
|-
{{#if: {{{mothership|}}}|
{{#if: {{{dockingfacilities|}}}{{{shuttleBays|}}}{{{shuttles|}}}{{{runabouts|}}}{{{fighters|}}}|
{{!}} class="ibleft" {{!}} Mothership
    {{#if: {{{dockingfacilities|}}}|
{{!}} class="ibright" {{!}} {{{mothership}}}
    {{!}} class="ibheader" colspan="2" {{!}} '''Docking Facilities'''|
        {{!}} class="ibheader" colspan="2" {{!}} '''Small Craft'''
    }}
}}
}}
|-
|-
{{#if: {{{homeport|}}}|
{{#if: {{{dockingfacilities|}}}|
{{!}} class="ibleft" {{!}} Home Port
{{!}} class="ibleft" {{!}} Docking Facilities
{{!}} class="ibright" {{!}} {{{homeport}}}
{{!}} class="ibright" {{!}}  
{{{dockingfacilities}}}
}}
}}
|-
|-
{{#if: {{{role|}}}|
{{#if: {{{shuttleBays|}}}|
{{!}} class="ibleft" {{!}} Role
{{!}} class="ibleft" {{!}} Shuttlebays
{{!}} class="ibright" {{!}} {{{role}}}
{{!}} class="ibright" {{!}}  
{{{shuttleBays}}}
}}
}}
|-
|-
{{#if: {{{quadrant|}}}|
{{#if: {{{shuttles|}}}|
{{!}} class="ibleft" {{!}} Quadrant
{{!}} class="ibleft" {{!}} Shuttles
{{!}} class="ibright" {{!}} {{{quadrant}}}
{{!}} class="ibright" {{!}}  
{{{shuttles}}}
}}
}}
|-
|-
{{#if: {{{co|}}}|  
{{#if: {{{runabouts|}}}|
{{!}} class="ibheader" colspan="2" {{!}} '''Key Personnel'''
{{!}} class="ibleft" {{!}} Runabouts
{{!}} class="ibright" {{!}}  
{{{runabouts}}}
}}
}}
|-
|-
{{#if: {{{co|}}}|
{{#if: {{{fighters|}}}|
{{!}} class="ibleft" {{!}} Commanding Officer
{{!}} class="ibleft" {{!}} Fighters
{{!}} class="ibright" {{!}} {{{co}}}
{{!}} class="ibright" {{!}}  
{{{fighters}}}
}}
}}
|-
|-
{{#if: {{{xo|}}}|
{{#if: {{{aux|}}}|
{{!}} class="ibleft" {{!}} Executive Officer
{{!}} class="ibleft" {{!}} Auxiliary Craft
{{!}} class="ibright" {{!}} {{{xo}}}
{{!}} class="ibright" {{!}}  
{{{aux}}}
}}
}}
|-
|-
{{#if: {{{dedication|}}}|
{{#if: {{{msd|}}}|
{{!}} class="ibheader" colspan="2" {{!}} {{{dedication}}}
{{!}} class="ibheader" colspan="2" {{!}} {{{msd}}}
}}
}}
|-  
|-
| class="ibheader" colspan="2" style="border-bottom-right-radius: 13px; border-bottom-left-radius: 13px;" | [[Template:StarshipTest]]
| class="ibheader" colspan="2" style="border-bottom-right-radius: 13px; border-bottom-left-radius: 13px;" | [[Template:Specification]]
|}
|}
</div>
</div>
<includeonly>
<includeonly>
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Starships]][[Category:{{{class}}}-class]]{{DEFAULTSORT:{{{name}}}}}
<!-- Auto category and DEFAULTSORT shenanigans going on here. -->
{{#if: {{{templatemode|}}}|
    <!-- do nothing -->|
    <!-- else -->[[Category:Specifications]]
[[Category:{{#if: {{{affiliation|}}}|{{ShortName
| x = {{{affiliation}}}
}}
}} {{#if: {{{flightCrew|}}}|Small Craft|{{#if: {{{diameter|}}}|Starbase|Starship}}}} Classes]]
 
{{#if: {{{role|}}}|[[Category:{{{role|}}}]]}}
 
{{#if: {{{playable|}}}|[[Category:Playable {{ShortName
| x = {{{affiliation}}}
}} {{#if: {{{flightCrew|}}}|Small Craft|{{#if: {{{diameter|}}}|Starbase|Starships}}}}]]}}
 
    {{#if: {{{flightCrew|}}}|
        <!-- do nothing -->|
        <!-- else -->{{DEFAULTSORT:{{{name}}}}}
    }}
}}
}}
</includeonly><noinclude>
</includeonly><noinclude>
==Starship==
==Specification==
This infobox exists for the purposes of providing a uniform and consistent method for displaying starship information on a wiki article. The code snippet below should be copied in it's entirety and set at the top of a page. For rows with no values, simply leave the line blank and it will not render in the final infobox.
Specification template to demonstrate that Specifications, StationSpecifications and SmallCraftSpecifications can be handled by a single template infobox for displaying specifications on the wiki.
===Notes===
 
*name - Just enter in the name, no need for formatting
If the flightCrew value is populated then the DEFAULTSORT value will not be populated, and neither will the Category:Specifications value be added to the page in question at this time. This is done to eliminate any issues caused by multiple DEFAULTSORT keys on a single page thanks to multiple uses of the infobox on the same page.
*class - Just type in the class name, which sets the category
 
*displayclass - What will appear in the infobox, i.e. Odyssey-class explorer.
This can also be achieved by the use of an extra value on the template call.
*co - This can be linked to a BFMS character page
*xo - This can be linked to a BFMS character page
*unit - Only use for RPGs--use Fourth Fleet Expeditionary Group
*squadron - only use as applicable
<pre>
<pre>
{{StarshipTest
| templatemode =  
| name = (just put the name here)
</pre>
| prefix = (SS, USS, IKS etc)
Add that to the bottom of any call to the template and simply assign any value to trigger it. It will then cause DEFAULTSORT and Category:Specifications to both not present on the page.
<pre>
{{Specification
| image =  
| image =  
| registry =  
| displayName =  
| class =
| name =  
| displayclass =  
| affiliation =  
| affiliation =  
| status = (Active/Retired/NPC/Destroyed)
| operator =  
| commission =
| status =  
| decommission =
| destroyed =
| unit = (only for RPGs -- use Fourth Fleet Expeditionary Group)
| mothership = (only for Aquarius escorts for their Odyssey motherships)
| homeport = (only supply for station attached ships)
| taskforce = (only supply a task force for primary/squadron commands, RPGs are not in task forces)
| taskgroup = (only supply a task force for primary/squadron commands, RPGs are not in task forces)
| squadron = (only supply a squadron if you have a squadron)
| quadrant =  
| role =  
| role =  
| co =  
| type =  
| xo =  
| precedingClass =  
| dedication = (image of ships dedication plague to be added here)
| succeedingClass =
}}</pre>
| succeedingClass1 =
| succeedingClass2 =
| dateEntered =
| productionEnd =
| retired =
| expectedDuration =
| expectedRefit =
| timeResupply =
| crewComplement =
| emergencyCap =
| civilians =
| populationCap =
| flightCrew = (If this value is provided, no DefaultSort value is assigned. Ideal for pages listing multiple small craft. If used, please provide a value for type.)
| passengers =
| length =
| width =
| diameter = (Starbases only.)
| height =
| decks =
| propulsionSystem =
| cruiseSpeed = (If this value is absent, Crew Complement header will change to read Population. Ideal for starbases.)
| maxSpeed =
| emergencySpeed =
| energyWeapons =
| torpLaunchers =
| torpPayload =
| shields =
| dockingfacilities =
| shuttleBays =
| shuttles =
| runabouts =
| fighters =
| aux =
| msd =
| templatemode = (Any value here will prevent all automatic category tag assignment as well as defaultsort assignment. Ideal for testing/WIP. Should not be used on normal pages at all. Delete this line if not being used as preference is for pages to be in categories.)
| playable = (any value here will create a category tag of Playable {affiliation} {type} on the page. Leave blank for non-playable)
}}
</pre>
{{clear}}
{{clear}}
==Example==
{{StarshipTest2
{{StarshipTest
| image = [[Image:Ambassadorclass.png]]
| name = Galaxy
| displayName = '''''Ambassador'' Class'''
| prefix = USS
| name = Ambassador
| image = [[file:Galaxyclass.png]]
| affiliation = United Federation of Planets
| registry = NCC-72000
| operator = Starfleet
| class = Galaxy
| status = Retired
| displayclass = [[Galaxy Class|''Galaxy''-class explorer]]
| role = Heavy Cruiser
| affiliation = [[Starfleet]]
| type = Explorer
| status = Active
| precedingClass = Excelsior
| commission = 2358
| succeedingClass = Galaxy
| decommission =  
| succeedingClass1 =
| destroyed =  
| succeedingClass2 =
| unit =
| dateEntered = 4500
| taskforce = Task Force 99
| productionEnd = 2358
| taskgroup = Task Group 66
| retired = 2400
| squadron = Galaxy Squadron
| expectedDuration =
| mothership =
| expectedRefit = 8 Years
| homeport =  
| timeResupply = 4 Years
| quadrant = Beta Quadrant
| crewComplement = 750
| role = Flagship
| emergencyCap = 3200
| co = Captain Bob
| civilians =
| xo = Commander Stacey
| populationCap =
| flightCrew =
| passengers =
| length = 526 meters
| width = 320 meters
| diameter =  
| height = 125 meters
| decks = 31
| propulsionSystem = Matter/Antimatter powered warp drive
| cruiseSpeed = Warp 6.2
| maxSpeed = Warp 8.9
| emergencySpeed = Warp 9.4 (12 hours)
| energyWeapons = *10x Type-X Phaser Arrays
| torpLaunchers = *1 Forward
*1 aft
| torpPayload = *200 Photon Torpedoes
| shields = Multi-Layered Shielding System
| dockingfacilities =  
| shuttleBays = 2
| shuttles = 15
| runabouts = 2
| fighters =  
| aux =  
| msd =  
| templatemode = nocats
| templatemode = nocats
| playable = yes
}}
}}
The following code produced the infobox to the right.
==Starship Demonstration==
<pre>
Starship demonstration. The gold standard and primary use for this template.
{{StarshipTest
<pre>{{Specification
| name = Galaxy
| image = [[Image:Ambassadorclass.png]]
| prefix = USS
| displayName = '''''Ambassador'' Class'''
| image = [[file:Galaxyclass.png]]
| name = Ambassador
| registry = NCC-72000
| affiliation = United Federation of Planets
| class = Galaxy
| operator = Starfleet
| displayclass = [[Galaxy Class|''Galaxy''-class explorer]]
| status = Retired
| affiliation = [[Starfleet]]
| role = Heavy Cruiser
| status = Active
| type = Explorer
| commission = 2358
| precedingClass = Excelsior
| decommission =  
| succeedingClass = Galaxy
| destroyed =  
| succeedingClass1 =
| unit =
| succeedingClass2 =
| taskforce = Task Force 99
| dateEntered = 2330
| taskgroup = Task Group 66
| productionEnd = 2358
| squadron = Galaxy Squadron
| retired = 2400
| mothership =
| expectedDuration =
| homeport =  
| expectedRefit = 8 Years
| quadrant = Beta Quadrant
| timeResupply = 4 Years
| role = Flagship
| crewComplement = 750
| co = Captain Bob
| emergencyCap = 3200
| xo = Commander Stacey
| civilians =
}}
| populationCap =
</pre>
| flightCrew =
[[Category:Infobox Templates]]{{clear}}
| passengers =
| length = 526 meters
| width = 320 meters
| diameter =
| height = 125 meters
| decks = 31
| propulsionSystem = Matter/Antimatter powered warp drive
| cruiseSpeed = Warp 6.2
| maxSpeed = Warp 8.9
| emergencySpeed = Warp 9.4 (12 hours)
| energyWeapons = *10x Type-X Phaser Arrays
| torpLaunchers = *1 Forward
*1 aft
| torpPayload = *200 Photon Torpedoes
| shields = Multi-Layered Shielding System
| dockingfacilities =
| shuttleBays = 2
| shuttles = 15
| runabouts = 2
| fighters =  
| aux =  
| msd =  
| templatemode =  
| playable = yes
}}</pre>
{{clear}}
 
 
</noinclude>
</noinclude>

Latest revision as of 07:28, 22 April 2023

{{{displayname}}}
Information
Template:Specification

Specification

Specification template to demonstrate that Specifications, StationSpecifications and SmallCraftSpecifications can be handled by a single template infobox for displaying specifications on the wiki.

If the flightCrew value is populated then the DEFAULTSORT value will not be populated, and neither will the Category:Specifications value be added to the page in question at this time. This is done to eliminate any issues caused by multiple DEFAULTSORT keys on a single page thanks to multiple uses of the infobox on the same page.

This can also be achieved by the use of an extra value on the template call.

| templatemode = 

Add that to the bottom of any call to the template and simply assign any value to trigger it. It will then cause DEFAULTSORT and Category:Specifications to both not present on the page.

{{Specification
| image = 
| displayName = 
| name = 
| affiliation = 
| operator = 
| status = 
| role = 
| type = 
| precedingClass = 
| succeedingClass = 
| succeedingClass1 =
| succeedingClass2 =
| dateEntered = 
| productionEnd = 
| retired = 
| expectedDuration = 
| expectedRefit = 
| timeResupply = 
| crewComplement = 
| emergencyCap = 
| civilians = 
| populationCap = 
| flightCrew = (If this value is provided, no DefaultSort value is assigned. Ideal for pages listing multiple small craft. If used, please provide a value for type.)
| passengers = 
| length = 
| width = 
| diameter = (Starbases only.)
| height = 
| decks = 
| propulsionSystem = 
| cruiseSpeed = (If this value is absent, Crew Complement header will change to read Population. Ideal for starbases.)
| maxSpeed = 
| emergencySpeed = 
| energyWeapons = 
| torpLaunchers = 
| torpPayload = 
| shields = 
| dockingfacilities = 
| shuttleBays = 
| shuttles = 
| runabouts = 
| fighters = 
| aux = 
| msd = 
| templatemode = (Any value here will prevent all automatic category tag assignment as well as defaultsort assignment. Ideal for testing/WIP. Should not be used on normal pages at all. Delete this line if not being used as preference is for pages to be in categories.)
| playable = (any value here will create a category tag of Playable {affiliation} {type} on the page. Leave blank for non-playable)
}}
Ambassadorclass.png
Ambassador Class
Information
Affiliation

United Federation of Planets

Status

Retired

Type

Explorer

Role

Heavy Cruiser

Lineage
Preceding Class

Excelsior-class

Succeeding Class Galaxy-class
Service
Operator

Starfleet

Entered Service

4500

Production Ended

2358

Retired

2400

Endurance
Expected Refit Cycle

8 Years

Expected Resupply Cycle

4 Years

Crew Capacity
Standard Complement

750

Emergency Capacity

3200

Dimensions
Length

526 meters

Width

320 meters

Height

125 meters

Decks

31

Propulsion
Propulsion Systems

Matter/Antimatter powered warp drive

Cruise Speed

Warp 6.2

Maximum Speed

Warp 8.9

Emergency Speed

Warp 9.4 (12 hours)

Armaments
Energy Weapons
  • 10x Type-X Phaser Arrays
Torpedo Launchers
  • 1 Forward
  • 1 aft
Torpedo Payload
  • 200 Photon Torpedoes
Shields

Multi-Layered Shielding System

Small Craft
Shuttlebays

2

Shuttles

15

Runabouts

2

Template:Specification


Starship Demonstration

Starship demonstration. The gold standard and primary use for this template.

{{Specification
| image = [[Image:Ambassadorclass.png]]
| displayName = '''''Ambassador'' Class'''
| name = Ambassador
| affiliation = United Federation of Planets
| operator = Starfleet
| status = Retired
| role = Heavy Cruiser
| type = Explorer
| precedingClass = Excelsior
| succeedingClass = Galaxy
| succeedingClass1 =
| succeedingClass2 =
| dateEntered = 2330
| productionEnd = 2358
| retired = 2400
| expectedDuration = 
| expectedRefit = 8 Years
| timeResupply = 4 Years
| crewComplement = 750
| emergencyCap = 3200
| civilians = 
| populationCap = 
| flightCrew = 
| passengers = 
| length = 526 meters
| width = 320 meters
| diameter = 
| height = 125 meters
| decks = 31
| propulsionSystem = Matter/Antimatter powered warp drive
| cruiseSpeed = Warp 6.2
| maxSpeed = Warp 8.9
| emergencySpeed = Warp 9.4 (12 hours)
| energyWeapons = *10x Type-X Phaser Arrays
| torpLaunchers = *1 Forward
*1 aft
| torpPayload = *200 Photon Torpedoes
| shields = Multi-Layered Shielding System
| dockingfacilities = 
| shuttleBays = 2
| shuttles = 15
| runabouts = 2
| fighters = 
| aux = 
| msd = 
| templatemode = 
| playable = yes
}}