Difference between revisions of "Template:Specification"

Template page
m (Breaking up the category stuff so I can tell each apart, adding in the new auto category pieces.)
m
 
(25 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="infobox">
{| class="ibtable" align="right" cellpadding="3" cellspacing="0"
{{#if: {{{image|}}}|
    {{!}} class="ibimage" colspan="2" style="border-top-right-radius: 13px; border-top-left-radius: 13px;" width="315px" {{!}} {{{image}}}
    {{!}}-
    {{!}} class="ibname" colspan="2" {{!}} {{{displayName}}}|
        {{!}} class="ibname" colspan="2" style="border-top-right-radius: 13px; border-top-left-radius: 13px;" width="315px" {{!}} {{{displayname}}}
}}
|-
| class="ibheader" colspan="2" | '''Information'''
|-
{{#if: {{{affiliation|}}}|
{{!}} class="ibleft" {{!}} Affiliation
{{!}} 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: {{{crewComplement|}}}{{{emergencyCap|}}}{{{civilians|}}}{{{populationCap|}}}{{{flightCrew|}}}{{{passengers|}}}|
    {{#if: {{{cruiseSpeed|}}}|
        {{!}} class="ibheader" colspan="2" {{!}} '''Crew Capacity'''|
            {{!}} class="ibheader" colspan="2" {{!}} '''Population'''
    }}
}}
|-
{{#if: {{{crewComplement|}}}|
{{!}} class="ibleft" {{!}} Standard Complement
{{!}} 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: {{{propulsionSystem|}}}|
{{!}} class="ibleft" {{!}} Propulsion Systems
{{!}} class="ibright" {{!}}
{{{propulsionSystem}}}
}}
|-
{{#if: {{{cruiseSpeed|}}}|
{{!}} class="ibleft" {{!}} Cruise Speed
{{!}} class="ibright" {{!}}
{{{cruiseSpeed}}}
}}
|-
{{#if: {{{maxSpeed|}}}|
{{!}} class="ibleft" {{!}} Maximum Speed
{{!}} class="ibright" {{!}}
{{{maxSpeed}}}
}}
|-
{{#if: {{{emergencySpeed|}}}|
{{!}} class="ibleft" {{!}} Emergency Speed
{{!}} class="ibright" {{!}}
{{{emergencySpeed}}}
}}
|-
{{#if: {{{energyWeapons|}}}{{{torpLaunchers|}}}{{{torpPayload|}}}{{{sheilds|}}}|
    {{!}} class="ibheader" colspan="2" {{!}} '''Armaments'''
}}
|-
{{#if: {{{energyWeapons|}}}|
{{!}} class="ibleft" {{!}} Energy Weapons
{{!}} class="ibright" {{!}}
{{{energyWeapons}}}
}}
|-
{{#if: {{{torpLaunchers|}}}|
{{!}} class="ibleft" {{!}} Torpedo Launchers
{{!}} class="ibright" {{!}}
{{{torpLaunchers}}}
}}
|-
{{#if: {{{torpPayload|}}}|
{{!}} class="ibleft" {{!}} Torpedo Payload
{{!}} class="ibright" {{!}}
{{{torpPayload}}}
}}
|-
{{#if: {{{shields|}}}|
{{!}} class="ibleft" {{!}} Shields
{{!}} class="ibright" {{!}}
{{{shields}}}
}}
|-
{{#if: {{{dockingfacilities|}}}{{{shuttleBays|}}}{{{shuttles|}}}{{{runabouts|}}}{{{fighters|}}}|
    {{#if: {{{dockingfacilities|}}}|
    {{!}} class="ibheader" colspan="2" {{!}} '''Docking Facilities'''|
        {{!}} class="ibheader" colspan="2" {{!}} '''Small Craft'''
    }}
}}
|-
{{#if: {{{dockingfacilities|}}}|
{{!}} class="ibleft" {{!}} Docking Facilities
{{!}} class="ibright" {{!}}
{{{dockingfacilities}}}
}}
|-
{{#if: {{{shuttleBays|}}}|
{{!}} class="ibleft" {{!}} Shuttlebays
{{!}} class="ibright" {{!}}
{{{shuttleBays}}}
}}
|-
{{#if: {{{shuttles|}}}|
{{!}} class="ibleft" {{!}} Shuttles
{{!}} class="ibright" {{!}}
{{{shuttles}}}
}}
|-
{{#if: {{{runabouts|}}}|
{{!}} class="ibleft" {{!}} Runabouts
{{!}} class="ibright" {{!}}
{{{runabouts}}}
}}
|-
{{#if: {{{fighters|}}}|
{{!}} class="ibleft" {{!}} Fighters
{{!}} class="ibright" {{!}}
{{{fighters}}}
}}
|-
{{#if: {{{aux|}}}|
{{!}} class="ibleft" {{!}} Auxiliary Craft
{{!}} class="ibright" {{!}}
{{{aux}}}
}}
|-
{{#if: {{{msd|}}}|
{{!}} class="ibheader" colspan="2" {{!}} {{{msd}}}
}}
|-
| class="ibheader" colspan="2" style="border-bottom-right-radius: 13px; border-bottom-left-radius: 13px;" | [[Template:Specification]]
|}
</div>
<includeonly>
<includeonly>
<!-- Auto category and DEFAULTSORT shenanigans going on here. -->
<infobox theme="bravo">
<title source="name">
<default>{{PAGENAME}}</default><format>''{{{name|}}}''-class {{lc:{{{type|}}}}}</format>
</title>
<image source="image"/>
<header>{{#if:{{{tab1|}}}||Information}}</header>
<data source="affiliation"><label>Affiliation</label><format>{{#if:{{{tab1|}}}||{{{affiliation}}}}}</format></data>
<data source="status"><label>Status</label><format>{{#if:{{{tab1|}}}||{{{status}}}}}</format></data>
<data source="type"><label>Type</label><format>{{#if:{{{tab1|}}}||{{{type}}}}}</format></data>
<data source="role"><label>Role</label><format>{{#if:{{{tab1|}}}||{{{role}}}}}</format></data>
<header>{{#if:{{{tab1|}}}||{{#if:{{{precedingClass|}}}{{{succeedingClass|}}}|Lineage|}}}}</header>
<data source="precedingClass"><label>Preceding Class</label><format>{{#if:{{{tab1|}}}||[[{{{precedingClass|}}} Class|''{{{precedingClass|}}}''-class]]}}</format></data>
<data source="succeedingClass"><label>Succeeding Class</label><format>{{#if:{{{tab1|}}}||[[{{{succeedingClass|}}} Class|''{{{succeedingClass|}}}''-class]]}}</format></data>
<header>{{#if:{{{tab1|}}}||{{#if:{{{operator|}}}{{{dateEntered|}}}{{{productionEnded|}}}{{{retired|}}}|Service|}}}}</header>
<data source="operator"><label>Operator</label><format>{{#if:{{{tab1|}}}||{{{operator|}}}}}</format></data>
<data source="dateEntered"><label>Entered Service</label><format>{{#if:{{{tab1|}}}||{{{dateEntered|}}}}}</format></data>
<data source="productionEnd"><label>Production Ended</label><format>{{#if:{{{tab1|}}}||{{{productionEnd|}}}}}</format></data>
<data source="retired"><label>Retired</label><format>{{#if:{{{tab1|}}}||{{{retired|}}}}}</format></data>
<header>{{#if:{{{tab1|}}}||{{#if:{{{expectedDuration|}}}{{{expectedRefit|}}}{{{timeResupply|}}}|Endurance|}}}}</header>
<data source="expectedDuration"><label>Expected Design Life</label><format>{{#if:{{{tab1|}}}||{{{expectedDuration|}}}}}</format></data>
<data source="expectedRefit"><label>Expected Refit Cycle</label><format>{{#if:{{{tab1|}}}||{{{expectedRefit|}}}}}</format></data>
<data source="timeResupply"><label>Expected Resupply Cycle</label><format>{{#if:{{{tab1|}}}||{{{timeResupply|}}}}}</format></data>
<header>{{#if:{{{tab1|}}}||{{#if:{{{crewComplement|}}}{{{emergencyCap|}}}{{{civilians|}}}{{{populationCap|}}}{{{flightCrew|}}}{{{passengers|}}}|{{#if:{{{cruiseSpeed|}}}|Crew Capacity|Population}}|}}}}</header>
<data source="crewComplement"><label>Standard Complement</label><format>{{#if:{{{tab1|}}}||{{{crewComplement|}}}}}</format></data>
<data source="emergencyCap"><label>Emergency Capacity</label><format>{{#if:{{{tab1|}}}||{{{emergencyCap|}}}}}</format></data>
<data source="civilians"><label>Civilian Residents</label><format>{{#if:{{{tab1|}}}||{{{civilians|}}}}}</format></data>
<data source="populationCap"><label>Maximum Population</label><format>{{#if:{{{tab1|}}}||{{{populationCap|}}}}}</format></data>
<data source="flightCrew"><label>Flight Crew</label><format>{{#if:{{{tab1|}}}||{{{flightCrew|}}}}}</format></data>
<data source="passengers"><label>Passengers</label><format>{{#if:{{{tab1|}}}||{{{passengers|}}}}}</format></data>
<header>{{#if:{{{tab1|}}}||{{#if:{{{length|}}}{{{width|}}}{{{diameter|}}}{{{height|}}}{{{decks|}}}|Dimensions|}}}}</header>
<data source="length"><label>Length</label><format>{{#if:{{{tab1|}}}||{{{length|}}}}}</format></data>
<data source="width"><label>Width</label><format>{{#if:{{{tab1|}}}||{{{width|}}}}}</format></data>
<data source="diameter"><label>Diameter</label><format>{{#if:{{{tab1|}}}||{{{diameter|}}}}}</format></data>
<data source="height"><label>Height</label><format>{{#if:{{{tab1|}}}||{{{height|}}}}}</format></data>
<data source="decks"><label>Decks</label><format>{{#if:{{{tab1|}}}||{{{decks|}}}}}</format></data>
<header>{{#if:{{{tab1|}}}||{{#if:{{{propulsionSystem|}}}{{{cruiseSpeed|}}}{{{maxSpeed|}}}{{{emergencySpeed|}}}|Propulsion|}}}}</header>
<data source="propulsionSystem"><label>Propulsion System</label><format>{{#if:{{{tab1|}}}||{{{propulsionSystem|}}}}}</format></data>
<data source="cruiseSpeed"><label>Cruise Speed</label><format>{{#if:{{{tab1|}}}||{{{cruiseSpeed|}}}}}</format></data>
<data source="maxSpeed"><label>Maximum Speed</label><format>{{#if:{{{tab1|}}}||{{{maxSpeed|}}}}}</format></data>
<data source="emergencySpeed"><label>Emergency Speed</label><format>{{#if:{{{tab1|}}}||{{{emergencySpeed|}}}}}</format></data>
<header>{{#if:{{{tab1|}}}||{{#if:{{{energyWeapons|}}}{{{torpLaunchers|}}}{{{torpPayload|}}}{{{sheilds|}}}|Armaments|}}}}</header>
<data source="energyWeapons"><label>Energy Weapons</label><format>{{#if:{{{tab1|}}}||{{{energyWeapons|}}}}}</format></data>
<data source="torpLaunchers"><label>Torpedo Launchers</label><format>{{#if:{{{tab1|}}}||{{{torpLaunchers|}}}}}</format></data>
<data source="torpPayload"><label>Torpedo Payload</label><format>{{#if:{{{tab1|}}}||{{{torpPayload|}}}}}</format></data>
<data source="shields"><label>Shields</label><format>{{#if:{{{tab1|}}}||{{{shields|}}}}}</format></data>
<header>{{#if:{{{tab1|}}}||{{#if:{{{dockingfacilities|}}}{{{shuttleBays|}}}{{{shuttles|}}}{{{runabouts|}}}{{{fighters|}}}{{{aux|}}}|Small Craft|}}}}</header>
<data source="dockingfacilities"><label>Docking Facilities</label><format>{{#if:{{{tab1|}}}||{{{dockingfacilities|}}}}}</format></data>
<data source="shuttleBays"><label>Shuttle Bays</label><format>{{#if:{{{tab1|}}}||{{{shuttleBays|}}}}}</format></data>
<data source="shuttles"><label>Shuttles</label><format>{{#if:{{{tab1|}}}||{{{shuttles|}}}}}</format></data>
<data source="runabouts"><label>Runabouts</label><format>{{#if:{{{tab1|}}}||{{{runabouts|}}}}}</format></data>
<data source="fighters"><label>Fighters</label><format>{{#if:{{{tab1|}}}||{{{fighters|}}}}}</format></data>
<data source="aux"><label>Auxiliary Craft</label><format>{{#if:{{{tab1|}}}||{{{aux|}}}}}</format></data>
<panel name="configuration">
<header>{{#if:{{{tab1|}}}|Configuration|}}</header>
<section name="Configuration1">
<label>{{{tab1}}}</label>
<group>
<image source="t1image"/>
<header>{{#if:{{{tab1|}}}|Information|}}</header>
<data source="t1affiliation"><label>Affiliation</label><default>{{#if:{{{tab1|}}}|{{{affiliation|}}}|}}</default></data>
<data source="t1status"><label>Status</label><default>{{#if:{{{tab1|}}}|{{{status|}}}|}}</default></data>
<data source="t1type"><label>Type</label><default>{{#if:{{{tab1|}}}|{{{type|}}}|}}</default></data>
<data source="t1role"><label>Role</label><default>{{#if:{{{tab1|}}}|{{{role|}}}|}}</default></data>
<header>{{#if:{{{tab1|}}}|{{#if:{{{t1precedingClass|}}}{{{t1succeedingClass|}}}{{{precedingClass|}}}{{{succeedingClass|}}}|Lineage|}}|}}</header>
<data source="t1precedingClass"><label>Preceding Class</label><format>[[{{{t1precedingClass|}}} Class|''{{{t1precedingClass|}}}''-class]]</format><default>{{#if:{{{tab1|}}}|[[{{{precedingClass|}}} Class|''{{{precedingClass|}}}''-class]]|}}</default></data>
<data source="t1succeedingClass"><label>Succeeding Class</label><format>[[{{{t1succeedingClass|}}} Class|''{{{t1succeedingClass|}}}''-class]]</format><default>{{#if:{{{tab1|}}}|[[{{{succeedingClass|}}} Class|''{{{succeedingClass|}}}''-class]]|}}</default></data>
<header>{{#if:{{{tab1|}}}|{{#if:{{{t1operator|}}}{{{t1dateEntered|}}}{{{t1productionEnded|}}}{{{t1retired|}}}{{{operator|}}}{{{dateEntered|}}}{{{productionEnded|}}}{{{retired|}}}|Service|}}|}}</header>
<data source="t1operator"><label>Operator</label><default>{{#if:{{{tab1|}}}|{{{operator|}}}|}}</default></data>
<data source="t1dateEntered"><label>Entered Service</label><default>{{#if:{{{tab1|}}}|{{{dateEntered|}}}|}}</default></data>
<data source="t1productionEnd"><label>Production Ended</label><default>{{#if:{{{tab1|}}}|{{{productionEnd|}}}|}}</default></data>
<data source="t1retired"><label>Retired</label><default>{{#if:{{{tab1|}}}|{{{retired|}}}|}}</default></data>
<header>{{#if:{{{tab1|}}}|{{#if:{{{t1expectedDuration|}}}{{{t1expectedRefit|}}}{{{t1timeResupply|}}}{{{expectedDuration|}}}{{{expectedRefit|}}}{{{timeResupply|}}}|Endurance|}}|}}</header>
<data source="t1expectedDuration"><label>Expected Design Life</label><default>{{#if:{{{tab1|}}}|{{{expectedDuration|}}}|}}</default></data>
<data source="t1expectedRefit"><label>Expected Refit Cycle</label><default>{{#if:{{{tab1|}}}|{{{expectedRefit|}}}|}}</default></data>
<data source="t1timeResupply"><label>Expected Resupply Cycle</label><default>{{#if:{{{tab1|}}}|{{{timeResupply|}}}|}}</default></data>
<header>{{#if:{{{tab1|}}}|{{#if:{{{t1crewComplement|}}}{{{t1emergencyCap|}}}{{{t1civilians|}}}{{{t1populationCap|}}}{{{t1flightCrew|}}}{{{t1passengers|}}}{{{crewComplement|}}}{{{emergencyCap|}}}{{{civilians|}}}{{{populationCap|}}}{{{flightCrew|}}}{{{passengers|}}}|{{#if:{{{cruiseSpeed|}}}|Crew Capacity|Population}}|}}|}}</header>
<data source="t1crewComplement"><label>Standard Complement</label><default>{{#if:{{{tab1|}}}|{{{crewComplement|}}}|}}</default></data>
<data source="t1emergencyCap"><label>Emergency Capacity</label><default>{{#if:{{{tab1|}}}|{{{emergencyCap|}}}|}}</default></data>
<data source="t1civilians"><label>Civilian Residents</label><default>{{#if:{{{tab1|}}}||{{{civilians|}}}|}}</default></data>
<data source="t1populationCap"><label>Maximum Population</label><default>{{#if:{{{tab1|}}}|{{{populationCap|}}}|}}</default></data>
<data source="t1flightCrew"><label>Flight Crew</label><default>{{#if:{{{tab1|}}}|{{{flightCrew|}}}|}}</default></data>
<data source="t1passengers"><label>Passengers</label><default>{{#if:{{{tab1|}}}|{{{passengers|}}}|}}</default></data>
<header>{{#if:{{{tab1|}}}|{{#if:{{{t1length|}}}{{{t1width|}}}{{{t1diameter|}}}{{{t1height|}}}{{{t1decks|}}}{{{length|}}}{{{width|}}}{{{diameter|}}}{{{height|}}}{{{decks|}}}|Dimensions|}}|}}</header>
<data source="t1length"><label>Length</label><default>{{#if:{{{tab1|}}}|{{{length|}}}|}}</default></data>
<data source="t1width"><label>Width</label><default>{{#if:{{{tab1|}}}|{{{width|}}}|}}</default></data>
<data source="t1diameter"><label>Diameter</label><default>{{#if:{{{tab1|}}}|{{{diameter|}}}|}}</default></data>
<data source="t1height"><label>Height</label><default>{{#if:{{{tab1|}}}|{{{height|}}}|}}</default></data>
<data source="t1decks"><label>Decks</label><default>{{#if:{{{tab1|}}}|{{{decks|}}}|}}</default></data>
<header>{{#if:{{{tab1|}}}|{{#if:{{{t1propulsionSystem|}}}{{{t1cruiseSpeed|}}}{{{t1maxSpeed|}}}{{{t1emergencySpeed|}}}{{{propulsionSystem|}}}{{{cruiseSpeed|}}}{{{maxSpeed|}}}{{{emergencySpeed|}}}|Propulsion|}}|}}</header>
<data source="t1propulsionSystem"><label>Propulsion System</label><default>{{#if:{{{tab1|}}}|{{{propulsionSystem|}}}|}}</default></data>
<data source="t1cruiseSpeed"><label>Cruise Speed</label><default>{{#if:{{{tab1|}}}|{{{cruiseSpeed|}}}|}}</default></data>
<data source="t1maxSpeed"><label>Maximum Speed</label><default>{{#if:{{{tab1|}}}|{{{maxSpeed|}}}|}}</default></data>
<data source="t1emergencySpeed"><label>Emergency Speed</label><default>{{#if:{{{tab1|}}}|{{{emergencySpeed|}}}|}}</default></data>
<header>{{#if:{{{tab1|}}}|{{#if:{{{t1energyWeapons|}}}{{{t1torpLaunchers|}}}{{{t1torpPayload|}}}{{{t1sheilds|}}}{{{energyWeapons|}}}{{{torpLaunchers|}}}{{{torpPayload|}}}{{{sheilds|}}}|Armaments|}}|}}</header>
<data source="t1energyWeapons"><label>Energy Weapons</label><default>{{#if:{{{tab1|}}}|{{{energyWeapons|}}}|}}</default></data>
<data source="t1torpLaunchers"><label>Torpedo Launchers</label><default>{{#if:{{{tab1|}}}|{{{torpLaunchers|}}}|}}</default></data>
<data source="t1torpPayload"><label>Torpedo Payload</label><default>{{#if:{{{tab1|}}}|{{{torpPayload|}}}|}}</default></data>
<data source="t1shields"><label>Shields</label><default>{{#if:{{{tab1|}}}|{{{shields|}}}|}}</default></data>
<header>{{#if:{{{tab1|}}}|{{#if:{{{t1dockingfacilities|}}}{{{t1shuttleBays|}}}{{{t1shuttles|}}}{{{t1runabouts|}}}{{{t1fighters|}}}{{{t1aux|}}}{{{dockingfacilities|}}}{{{shuttleBays|}}}{{{shuttles|}}}{{{runabouts|}}}{{{fighters|}}}{{{aux|}}}|Small Craft|}}|}}</header>
<data source="t1dockingfacilities"><label>Docking Facilities</label><default>{{#if:{{{tab1|}}}|{{{dockingfacilities|}}}|}}</default></data>
<data source="t1shuttleBays"><label>Shuttle Bays</label><default>{{#if:{{{tab1|}}}|{{{shuttleBays|}}}|}}</default></data>
<data source="t1shuttles"><label>Shuttles</label><default>{{#if:{{{tab1|}}}|{{{shuttles|}}}|}}</default></data>
<data source="t1runabouts"><label>Runabouts</label><default>{{#if:{{{tab1|}}}|{{{runabouts|}}}|}}</default></data>
<data source="t1fighters"><label>Fighters</label><default>{{#if:{{{tab1|}}}|{{{fighters|}}}|}}</default></data>
<data source="t1aux"><label>Auxiliary Craft</label><default>{{#if:{{{tab1|}}}|{{{aux|}}}|}}</default></data>
</group>
</section>
<section name="Configuration2">
<label>{{{tab2}}}</label>
<group>
<image source="t2image"/>
<header>{{#if:{{{tab2|}}}|Information|}}</header>
<data source="t2affiliation"><label>Affiliation</label><default>{{#if:{{{tab2|}}}|{{{affiliation|}}}|}}</default></data>
<data source="t2status"><label>Status</label><default>{{#if:{{{tab2|}}}|{{{status|}}}|}}</default></data>
<data source="t2type"><label>Type</label><default>{{#if:{{{tab2|}}}|{{{type|}}}|}}</default></data>
<data source="t2role"><label>Role</label><default>{{#if:{{{tab2|}}}|{{{role|}}}|}}</default></data>
<header>{{#if:{{{tab2|}}}|{{#if:{{{t2precedingClass|}}}{{{t2succeedingClass|}}}{{{precedingClass|}}}{{{succeedingClass|}}}|Lineage|}}|}}</header>
<data source="t2precedingClass"><label>Preceding Class</label><format>[[{{{t2precedingClass|}}} Class|''{{{t2precedingClass|}}}''-class]]</format><default>{{#if:{{{tab2|}}}|[[{{{precedingClass|}}} Class|''{{{precedingClass|}}}''-class]]|}}</default></data>
<data source="t2succeedingClass"><label>Succeeding Class</label><format>[[{{{t2succeedingClass|}}} Class|''{{{t2succeedingClass|}}}''-class]]</format><default>{{#if:{{{tab2|}}}|[[{{{succeedingClass|}}} Class|''{{{succeedingClass|}}}''-class]]|}}</default></data>
<header>{{#if:{{{tab2|}}}|{{#if:{{{t2operator|}}}{{{t2dateEntered|}}}{{{t2productionEnded|}}}{{{t2retired|}}}{{{operator|}}}{{{dateEntered|}}}{{{productionEnded|}}}{{{retired|}}}|Service|}}|}}</header>
<data source="t2operator"><label>Operator</label><default>{{#if:{{{tab2|}}}|{{{operator|}}}|}}</default></data>
<data source="t2dateEntered"><label>Entered Service</label><default>{{#if:{{{tab2|}}}|{{{dateEntered|}}}|}}</default></data>
<data source="t2productionEnd"><label>Production Ended</label><default>{{#if:{{{tab2|}}}|{{{productionEnd|}}}|}}</default></data>
<data source="t2retired"><label>Retired</label><default>{{#if:{{{tab2|}}}|{{{retired|}}}|}}</default></data>
<header>{{#if:{{{tab2|}}}|{{#if:{{{t2expectedDuration|}}}{{{t2expectedRefit|}}}{{{t2timeResupply|}}}{{{expectedDuration|}}}{{{expectedRefit|}}}{{{timeResupply|}}}|Endurance|}}|}}</header>
<data source="t2expectedDuration"><label>Expected Design Life</label><default>{{#if:{{{tab2|}}}|{{{expectedDuration|}}}|}}</default></data>
<data source="t2expectedRefit"><label>Expected Refit Cycle</label><default>{{#if:{{{tab2|}}}|{{{expectedRefit|}}}|}}</default></data>
<data source="t2timeResupply"><label>Expected Resupply Cycle</label><default>{{#if:{{{tab2|}}}|{{{timeResupply|}}}|}}</default></data>
<header>{{#if:{{{tab2|}}}|{{#if:{{{t2crewComplement|}}}{{{t2emergencyCap|}}}{{{t2civilians|}}}{{{t2populationCap|}}}{{{t2flightCrew|}}}{{{t2passengers|}}}{{{crewComplement|}}}{{{emergencyCap|}}}{{{civilians|}}}{{{populationCap|}}}{{{flightCrew|}}}{{{passengers|}}}|{{#if:{{{cruiseSpeed|}}}|Crew Capacity|Population}}|}}|}}</header>
<data source="t2crewComplement"><label>Standard Complement</label><default>{{#if:{{{tab2|}}}|{{{crewComplement|}}}|}}</default></data>
<data source="t2emergencyCap"><label>Emergency Capacity</label><default>{{#if:{{{tab2|}}}|{{{emergencyCap|}}}|}}</default></data>
<data source="t2civilians"><label>Civilian Residents</label><default>{{#if:{{{tab2|}}}||{{{civilians|}}}|}}</default></data>
<data source="t2populationCap"><label>Maximum Population</label><default>{{#if:{{{tab2|}}}|{{{populationCap|}}}|}}</default></data>
<data source="t2flightCrew"><label>Flight Crew</label><default>{{#if:{{{tab2|}}}|{{{flightCrew|}}}|}}</default></data>
<data source="t2passengers"><label>Passengers</label><default>{{#if:{{{tab2|}}}|{{{passengers|}}}|}}</default></data>
<header>{{#if:{{{tab2|}}}|{{#if:{{{t2length|}}}{{{t2width|}}}{{{t2diameter|}}}{{{t2height|}}}{{{t2decks|}}}{{{length|}}}{{{width|}}}{{{diameter|}}}{{{height|}}}{{{decks|}}}|Dimensions|}}|}}</header>
<data source="t2length"><label>Length</label><default>{{#if:{{{tab2|}}}|{{{length|}}}|}}</default></data>
<data source="t2width"><label>Width</label><default>{{#if:{{{tab2|}}}|{{{width|}}}|}}</default></data>
<data source="t2diameter"><label>Diameter</label><default>{{#if:{{{tab2|}}}|{{{diameter|}}}|}}</default></data>
<data source="t2height"><label>Height</label><default>{{#if:{{{tab2|}}}|{{{height|}}}|}}</default></data>
<data source="t2decks"><label>Decks</label><default>{{#if:{{{tab2|}}}|{{{decks|}}}|}}</default></data>
<header>{{#if:{{{tab2|}}}|{{#if:{{{t2propulsionSystem|}}}{{{t2cruiseSpeed|}}}{{{t2maxSpeed|}}}{{{t2emergencySpeed|}}}{{{propulsionSystem|}}}{{{cruiseSpeed|}}}{{{maxSpeed|}}}{{{emergencySpeed|}}}|Propulsion|}}|}}</header>
<data source="t2propulsionSystem"><label>Propulsion System</label><default>{{#if:{{{tab2|}}}|{{{propulsionSystem|}}}|}}</default></data>
<data source="t2cruiseSpeed"><label>Cruise Speed</label><default>{{#if:{{{tab2|}}}|{{{cruiseSpeed|}}}|}}</default></data>
<data source="t2maxSpeed"><label>Maximum Speed</label><default>{{#if:{{{tab2|}}}|{{{maxSpeed|}}}|}}</default></data>
<data source="t2emergencySpeed"><label>Emergency Speed</label><default>{{#if:{{{tab2|}}}|{{{emergencySpeed|}}}|}}</default></data>
<header>{{#if:{{{tab2|}}}|{{#if:{{{t2energyWeapons|}}}{{{t2torpLaunchers|}}}{{{t2torpPayload|}}}{{{t2sheilds|}}}{{{energyWeapons|}}}{{{torpLaunchers|}}}{{{torpPayload|}}}{{{sheilds|}}}|Armaments|}}|}}</header>
<data source="t2energyWeapons"><label>Energy Weapons</label><default>{{#if:{{{tab2|}}}|{{{energyWeapons|}}}|}}</default></data>
<data source="t2torpLaunchers"><label>Torpedo Launchers</label><default>{{#if:{{{tab2|}}}|{{{torpLaunchers|}}}|}}</default></data>
<data source="t2torpPayload"><label>Torpedo Payload</label><default>{{#if:{{{tab2|}}}|{{{torpPayload|}}}|}}</default></data>
<data source="t2shields"><label>Shields</label><default>{{#if:{{{tab2|}}}|{{{shields|}}}|}}</default></data>
<header>{{#if:{{{tab2|}}}|{{#if:{{{t2dockingfacilities|}}}{{{t2shuttleBays|}}}{{{t2shuttles|}}}{{{t2runabouts|}}}{{{t2fighters|}}}{{{t2aux|}}}{{{dockingfacilities|}}}{{{shuttleBays|}}}{{{shuttles|}}}{{{runabouts|}}}{{{fighters|}}}{{{aux|}}}|Small Craft|}}|}}</header>
<data source="t2dockingfacilities"><label>Docking Facilities</label><default>{{#if:{{{tab2|}}}|{{{dockingfacilities|}}}|}}</default></data>
<data source="t2shuttleBays"><label>Shuttle Bays</label><default>{{#if:{{{tab2|}}}|{{{shuttleBays|}}}|}}</default></data>
<data source="t2shuttles"><label>Shuttles</label><default>{{#if:{{{tab2|}}}|{{{shuttles|}}}|}}</default></data>
<data source="t2runabouts"><label>Runabouts</label><default>{{#if:{{{tab2|}}}|{{{runabouts|}}}|}}</default></data>
<data source="t2fighters"><label>Fighters</label><default>{{#if:{{{tab2|}}}|{{{fighters|}}}|}}</default></data>
<data source="t2aux"><label>Auxiliary Craft</label><default>{{#if:{{{tab2|}}}|{{{aux|}}}|}}</default></data>
</group>
</section>
</panel>
<header>{{#if:{{{bfmsRegistry|}}}|Additional Information|}}</header>
<data name="full"><default>{{#if:{{{bfmsRegistry|}}}|[{{{bfmsRegistry|}}} BFMS Registry]|}}</default></data>
<data name="full"><default>{{#if:{{{bfmsRegistry|}}}|[https://wiki.bravofleet.com/index.php?title=Category:{{{name|}}}-class ''{{{name|}}}''-class Command Pages]|}}</default></data>
<header name="footer">[[Template:Specification]]</header>
</infobox>
{{#if: {{{templatemode|}}}|
{{#if: {{{templatemode|}}}|
    <!-- do nothing -->|
<!-- do nothing -->|
    <!-- else -->[[Category:Specifications]]
<!-- else -->[[Category:Specifications]]
 
[[Category:{{#if: {{{affiliation|}}}|{{ShortName
[[Category:{{#if: {{{affiliation|}}}|{{ShortName
| x = {{{affiliation}}}
| x = {{{affiliation}}}
Line 325: Line 175:
}} {{#if: {{{flightCrew|}}}|Small Craft|{{#if: {{{diameter|}}}|Starbase|Starship}}}} Classes]]
}} {{#if: {{{flightCrew|}}}|Small Craft|{{#if: {{{diameter|}}}|Starbase|Starship}}}} Classes]]


{{#if: {{{role|}}}|[[Category:{{{role|}}}]]}}
{{#if: {{{type|}}}|[[Category:{{{type|}}}s]]}}


{{#if: {{{playable|}}}|[[Category:Playable {{ShortName
{{#if: {{{playable|}}}|[[Category:Playable {{ShortName
Line 331: Line 181:
}} {{#if: {{{flightCrew|}}}|Small Craft|{{#if: {{{diameter|}}}|Starbase|Starships}}}}]]}}
}} {{#if: {{{flightCrew|}}}|Small Craft|{{#if: {{{diameter|}}}|Starbase|Starships}}}}]]}}


    {{#if: {{{flightCrew|}}}|
{{#if: {{{flightCrew|}}}|
        <!-- do nothing -->|
<!-- do nothing -->|
        <!-- else -->{{DEFAULTSORT:{{{name}}}}}
<!-- else -->{{DEFAULTSORT:{{{name}}}}}
    }}
}}
}}
</includeonly><noinclude>
 
{{#ifeq: {{{affiliation|}}} | [[United Federation of Planets]] |
    {{#ifeq: {{ShortName| x = {{{status}}} }} | Retired | [[Category:Retired Federation Starship Classes]] | <!-- do nothing --> }} |
    <!-- do nothing -->
}}
}}
</includeonly>
<noinclude>
==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.
Specification template to for specification infoboxes 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.
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. This is done to eliminate any issues caused by multiple DEFAULTSORT kets on a single page thanks to multiple users of the infobox on the same page.


This can also be achieved by the use of an extra value on the template call.
==Sandboxes==
If you are experimenting with this infobox on a sandbox page, please include the following to the bottom of the infobox call
<pre>
<pre>
| templatemode =  
| templatemode =
</pre>
</pre>
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.
 
==Usage==
<pre>
<pre>
{{Specification
{{Specification
| image =  
| image =  
| displayName =
| name =  
| name =  
| affiliation =  
| affiliation =  
Line 393: Line 250:
| aux =  
| aux =  
| msd =  
| msd =  
| playable =
| bfmsRegistry =
| 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.)
| 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.)
}}
}}
</pre>
</pre>
==Multiple versions of a given class==
This needs to be populated at some point. Ask the wiki-goblin for advise for now.
{{clear}}
{{clear}}
==Demo==
{{Specification
{{Specification
| image = [[Image:Ambassadorclass.png]]
| tab1 = Excelsior
| displayName = '''''Ambassador'' Class'''
| tab2 = Enterprise
| name = Ambassador
| t1image = [[Image:Excelsiorclass.png]]
| affiliation = United Federation of Planets
| t2image = [[Image:Excelrefit.png]]
| operator = Starfleet
| name = Excelsior
| affiliation = [[United Federation of Planets]]
| operator = [[Starfleet]]
| status = Retired
| status = Retired
| role = Heavy Cruiser
| role = Heavy Cruiser
| type = Explorer
| type =  
| precedingClass = Excelsior
| precedingClass = Constitution
| succeedingClass = Galaxy
| succeedingClass = Nebula
| succeedingClass1 =
| dateEntered = 2285
| succeedingClass2 =  
| t2dateEntered = 2294
| dateEntered = 2330
| productionEnd =  
| productionEnd = 2358
| retired =  
| retired = 2400
| expectedDuration = 100 Years
| expectedDuration =  
| expectedRefit = 10 Years
| expectedRefit = 8 Years
| timeResupply = 5 Years
| timeResupply = 4 Years
| crewComplement = 650
| crewComplement = 750
| emergencyCap = 1,500
| emergencyCap = 3200
| civilians =  
| civilians =  
| populationCap =  
| populationCap =  
| flightCrew =  
| flightCrew =  
| passengers =  
| passengers =  
| length = 526 meters
| length = 467 meters
| width = 320 meters
| width = 181.6 meters
| diameter =  
| diameter =  
| height = 125 meters
| height = 77.8 meters
| decks = 31
| decks = 28
| propulsionSystem = Matter/Antimatter powered warp drive
| propulsionSystem = M/AM Warp Drive
| cruiseSpeed = Warp 6.2
| cruiseSpeed = Warp 7
| maxSpeed = Warp 8.9
| maxSpeed = Warp 8.8
| emergencySpeed = Warp 9.4 (12 hours)
| emergencySpeed = Warp 9.4 (12 hours)
| energyWeapons = *10x Type-X Phaser Arrays
| energyWeapons = *10x [[Phasers|Type-VIII Dual Emitter Phaser Banks]]
| torpLaunchers = *1 Forward
| t2energyWeapons = *12 Type-VIII Dual Emitter Phaser Banks
*1 aft
| torpLaunchers = *2 forward
*2 aft
| torpPayload = *200 Photon Torpedoes
| torpPayload = *200 Photon Torpedoes
| shields = Multi-Layered Shielding System
| shields = [[Shields|Regenerative Shielding System]]
| dockingfacilities =  
| dockingfacilities =  
| shuttleBays = 2
| shuttleBays = 2
| shuttles = 15
| shuttles = 10
| runabouts = 2
| runabouts = 2
| fighters =  
| fighters =  
| aux =  
| aux =  
| msd =  
| msd =  
| playable =
| bfmsRegistry =
| templatemode = nocats
| templatemode = nocats
}}
}}
==Starship Demonstration==
<pre>
Starship demonstration. The gold standard and primary use for this template.
{{Specification
<pre>{{Specification
| tab1 = Excelsior
| image = [[Image:Ambassadorclass.png]]
| tab2 = Enterprise
| displayName = '''''Ambassador'' Class'''
| t1image = [[Image:Excelsiorclass.png]]
| name = Ambassador
| t2image = [[Image:Excelrefit.png]]
| affiliation = United Federation of Planets
| name = Excelsior
| operator = Starfleet
| affiliation = [[United Federation of Planets]]
| operator = [[Starfleet]]
| status = Retired
| status = Retired
| role = Heavy Cruiser
| role = Heavy Cruiser
| type = Explorer
| type =  
| precedingClass = Excelsior
| precedingClass = Constitution
| succeedingClass = Galaxy
| succeedingClass = Nebula
| succeedingClass1 =
| dateEntered = 2285
| succeedingClass2 =
| t2dateEntered = 2294
| dateEntered = 2330
| productionEnd =  
| productionEnd = 2358
| retired =  
| retired = 2400
| expectedDuration = 100 Years
| expectedDuration =  
| expectedRefit = 10 Years
| expectedRefit = 8 Years
| timeResupply = 5 Years
| timeResupply = 4 Years
| crewComplement = 650
| crewComplement = 750
| emergencyCap = 1,500
| emergencyCap = 3200
| civilians =  
| civilians =  
| populationCap =  
| populationCap =  
| flightCrew =  
| flightCrew =  
| passengers =  
| passengers =  
| length = 526 meters
| length = 467 meters
| width = 320 meters
| width = 181.6 meters
| diameter =  
| diameter =  
| height = 125 meters
| height = 77.8 meters
| decks = 31
| decks = 28
| propulsionSystem = Matter/Antimatter powered warp drive
| propulsionSystem = M/AM Warp Drive
| cruiseSpeed = Warp 6.2
| cruiseSpeed = Warp 7
| maxSpeed = Warp 8.9
| maxSpeed = Warp 8.8
| emergencySpeed = Warp 9.4 (12 hours)
| emergencySpeed = Warp 9.4 (12 hours)
| energyWeapons = *10x Type-X Phaser Arrays
| energyWeapons = *10x [[Phasers|Type-VIII Dual Emitter Phaser Banks]]
| torpLaunchers = *1 Forward
| t2energyWeapons = *12 Type-VIII Dual Emitter Phaser Banks
*1 aft
| torpLaunchers = *2 forward
*2 aft
| torpPayload = *200 Photon Torpedoes
| torpPayload = *200 Photon Torpedoes
| shields = Multi-Layered Shielding System
| shields = [[Shields|Regenerative Shielding System]]
| dockingfacilities =  
| dockingfacilities =  
| shuttleBays = 2
| shuttleBays = 2
| shuttles = 15
| shuttles = 10
| runabouts = 2
| runabouts = 2
| fighters =  
| fighters =  
| aux =  
| aux =  
| msd =  
| msd =  
| templatemode = nocats
| playable =  
}}</pre>
| bfmsRegistry = https://bravofleet.com/registry?_status=&_class=53686&_sort=namesake&_per_page=100
{{clear}}
{{Specification
| image = [[File:Smolboi.png]]
| displayName = '''''Narendra'' Class'''
| name = Narendra
| affiliation = Starfleet
| role = Outpost
| type =
| precedingClass =
| succeedingClass =
| succeedingClass1 =
| succeedingClass2 =
| dateEntered =
| expectedDuration =
| expectedRefit =
| timeResupply =
| crewComplement = 2000
| emergencyCap =
| civilians = 2000-4000
| populationCap = 15000
| flightCrew =
| passengers =
| length =
| width =
| diameter = 1,000 meters
| height =
| decks =
| propulsionSystem = Manuvering Thrusters
| cruiseSpeed =
| maxSpeed =
| emergencySpeed =
| energyWeapons = *xx Type-XII Phaser Arrays
*xx Type-X Phaser Banks
| torpLaunchers = *xx Torpedo Launchers
| torpPayload =
| shields = Graviton Shields
| dockingfacilities = *6 perimeter docking facilities
*6 cargo/shuttle bays
| shuttleBays =  
| shuttles =  
| runabouts = 4 Danube-class
| fighters =
| aux =
| msd =  
| templatemode = nocats
| templatemode = nocats
}}
}}
==Station Demonstration==
</pre>
Station demonstration, showing how different values will change headers. A lack of a cruiseSpeed has changed "Crew Capacity" to "Population". Inclusion of Diameter has also added that value into the Dimensions section. The use of the dockingfacilities variable has also changed the "Small Craft" header to read "Docking Facilities".
<pre>{{Specification
| image = [[File:Smolboi.png]]
| displayName = '''''Narendra'' Class'''
| name = Narendra
| affiliation = Starfleet
| role = Outpost
| type =
| precedingClass =
| succeedingClass =
| succeedingClass1 =
| succeedingClass2 =
| dateEntered =
| expectedDuration =
| expectedRefit =
| timeResupply =
| crewComplement = 2000
| emergencyCap =
| civilians = 2000-4000
| populationCap = 15000
| flightCrew =
| passengers =
| length =
| width =
| diameter = 1,000 meters
| height =
| decks =
| propulsionSystem = Manuvering Thrusters
| cruiseSpeed =
| maxSpeed =
| emergencySpeed =
| energyWeapons = *xx Type-XII Phaser Arrays
*xx Type-X Phaser Banks
| torpLaunchers = *xx Torpedo Launchers
| torpPayload =
| shields = Graviton Shields
| dockingfacilities = *6 perimeter docking facilities
*6 cargo/shuttle bays
| shuttleBays =
| shuttles =
| runabouts = 4 Danube-class
| fighters =
| aux =
| msd =
}}</pre>
{{clear}}
{{Specification
| image = [[image:Type11Shuttle5.jpg]]
| displayName = '''Type-11 Personnel Shuttle'''
| name = Type-11 Personnel Shuttle
| affiliation = *United Federation of Planets
*Starfleet
| role = Personnel Shuttle
| type = Shuttle
| precedingClass = Type-7 Personnel Shuttle
| succeedingClass = Type-14 Personnel Shuttle
| succeedingClass1 =
| succeedingClass2 =
| dateEntered = 2375
| expectedDuration =
| expectedRefit =
| timeResupply =
| crewComplement =
| emergencyCap =
| civilians =
| populationCap =
| flightCrew = 2
| passengers = 12
| length = 14.64 meters
| width = 3.26 meters
| diameter =
| height = 4.5 meters
| decks =
| propulsionSystem = Warp Drive
| cruiseSpeed = Warp 6
| maxSpeed =
| emergencySpeed =
| energyWeapons = *4x Type-VII Phaser Arrays
| torpLaunchers =
| torpPayload =
| shields =
| dockingfacilities =
| shuttleBays =
| shuttles =
| runabouts =
| fighters =
| msd = [[File:Type11Shuttle.jpg]]
| templatemode = nocats
}}
==Shuttle Demonstration==
Shuttle demonstration. Use for flightCrew variable has changed the class header from a '''''name''-class''' setup to a '''''name'' type''' setup, using the type variable to dictate the type. The variable has also stopped automatic Category values and DEFAULTSORT from being applied at this time.
<pre>{{Specification
| image = [[image:Type11Shuttle5.jpg]]
| displayName = '''Type-11 Personnel Shuttle'''
| name = Type-11 Personnel Shuttle
| affiliation = *United Federation of Planets
*Starfleet
| role = Personnel Shuttle
| type = Shuttle
| precedingClass = Type-7 Personnel Shuttle
| succeedingClass = Type-14 Personnel Shuttle
| succeedingClass1 =
| succeedingClass2 =
| dateEntered = 2375
| expectedDuration =
| expectedRefit =
| timeResupply =
| crewComplement =
| emergencyCap =
| civilians =
| populationCap =
| flightCrew = 2
| passengers = 12
| length = 14.64 meters
| width = 3.26 meters
| diameter =
| height = 4.5 meters
| decks =
| propulsionSystem = Warp Drive
| cruiseSpeed = Warp 6
| maxSpeed =
| emergencySpeed =
| energyWeapons = *4x Type-VII Phaser Arrays
| torpLaunchers =
| torpPayload =
| shields =
| dockingfacilities =
| shuttleBays =
| shuttles =
| runabouts =
| fighters =
| aux =
| msd = [[File:Type11Shuttle.jpg]]
}}</pre>
{{clear}}
{{clear}}
[[Category:Infobox Templates]]
[[Category:Infobox Templates]]
</noinclude>
</noinclude>

Latest revision as of 03:06, 15 November 2024


Specification

Specification template to for specification infoboxes 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. This is done to eliminate any issues caused by multiple DEFAULTSORT kets on a single page thanks to multiple users of the infobox on the same page.

Sandboxes

If you are experimenting with this infobox on a sandbox page, please include the following to the bottom of the infobox call

| templatemode =

Usage

{{Specification
| image = 
| 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 = 
| playable = 
| bfmsRegistry = 
| 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.)
}}

Multiple versions of a given class

This needs to be populated at some point. Ask the wiki-goblin for advise for now.

Demo


{{Specification
| tab1 = Excelsior
| tab2 = Enterprise
| t1image = [[Image:Excelsiorclass.png]]
| t2image = [[Image:Excelrefit.png]]
| name = Excelsior
| affiliation = [[United Federation of Planets]]
| operator = [[Starfleet]]
| status = Retired
| role = Heavy Cruiser
| type = 
| precedingClass = Constitution
| succeedingClass = Nebula
| dateEntered = 2285
| t2dateEntered = 2294
| productionEnd = 
| retired = 
| expectedDuration = 100 Years 
| expectedRefit = 10 Years
| timeResupply = 5 Years
| crewComplement = 650
| emergencyCap = 1,500
| civilians = 
| populationCap = 
| flightCrew = 
| passengers = 
| length = 467 meters
| width = 181.6 meters
| diameter = 
| height = 77.8 meters
| decks = 28
| propulsionSystem = M/AM Warp Drive
| cruiseSpeed = Warp 7
| maxSpeed = Warp 8.8
| emergencySpeed = Warp 9.4 (12 hours)
| energyWeapons = *10x [[Phasers|Type-VIII Dual Emitter Phaser Banks]]
| t2energyWeapons = *12 Type-VIII Dual Emitter Phaser Banks
| torpLaunchers = *2 forward
*2 aft
| torpPayload = *200 Photon Torpedoes
| shields = [[Shields|Regenerative Shielding System]]
| dockingfacilities = 
| shuttleBays = 2
| shuttles = 10
| runabouts = 2
| fighters = 
| aux = 
| msd = 
| playable = 
| bfmsRegistry = https://bravofleet.com/registry?_status=&_class=53686&_sort=namesake&_per_page=100
| templatemode = nocats
}}