Difference between revisions of "Template:StarshipTest2"

Template page
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: {{{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: {{{class|}}}|
{{#if: {{{flightCrew|}}}|
{{!}} class="ibleft" {{!}} Class & Type
{{!}} class="ibleft" {{!}} Flight Crew
{{#if: {{{type|}}}|{{!}} class="ibright" {{!}} [[{{{class}}} Class|''{{{class}}}''-class {{{type}}}]]|<!-- else -->{{!}} class="ibright" {{!}} [[{{{class}}} Class|''{{{class}}}''-class]]
{{!}} class="ibright" {{!}}  
{{{flightCrew}}}
}}
}}
|-
{{#if: {{{passengers|}}}|
{{!}} class="ibleft" {{!}} Passengers
{{!}} class="ibright" {{!}}
{{{passengers}}}
}}
}}
|-
|-
{{#if: {{{affiliation|}}}|
{{#if: {{{length|}}}{{{width|}}}{{{diameter|}}}{{{height|}}}{{{decks|}}}|
{{!}} class="ibleft" {{!}} Affiliation
    {{!}} class="ibheader" colspan="2" {{!}} '''Dimensions'''
{{!}} class="ibright" {{!}} {{{affiliation}}}
}}
|-
{{#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: {{{status|}}}|
{{#if: {{{cruiseSpeed|}}}|
{{!}} class="ibleft" {{!}} Status
{{!}} class="ibleft" {{!}} Cruise Speed
{{!}} class="ibright" {{!}} {{{status}}}
{{!}} class="ibright" {{!}}  
{{{cruiseSpeed}}}
}}
}}
|-
|-
{{#if: {{{commission|}}}|
{{#if: {{{maxSpeed|}}}|
{{!}} class="ibleft" {{!}} Commissioned
{{!}} class="ibleft" {{!}} Maximum Speed
{{!}} class="ibright" {{!}} {{{commission}}}
{{!}} class="ibright" {{!}}  
{{{maxSpeed}}}
}}
}}
|-
|-
{{#if: {{{decommission|}}}|
{{#if: {{{emergencySpeed|}}}|
{{!}} class="ibleft" {{!}} Decommissioned
{{!}} class="ibleft" {{!}} Emergency Speed
{{!}} class="ibright" {{!}} {{{decommission}}}
{{!}} class="ibright" {{!}}  
{{{emergencySpeed}}}
}}
}}
|-
|-
{{#if: {{{destroyed|}}}|
{{#if: {{{energyWeapons|}}}{{{torpLaunchers|}}}{{{torpPayload|}}}{{{sheilds|}}}|
{{!}} class="ibleft" {{!}} Destroyed
    {{!}} class="ibheader" colspan="2" {{!}} '''Armaments'''
{{!}} class="ibright" {{!}} {{{destroyed}}}
}}
}}
|-
|-
| class="ibheader" colspan="2" | '''Assignment'''
{{#if: {{{energyWeapons|}}}|
{{!}} class="ibleft" {{!}} Energy Weapons
{{!}} class="ibright" {{!}}
{{{energyWeapons}}}
}}
|-
|-
{{#if: {{{unit|}}}|
{{#if: {{{torpLaunchers|}}}|
{{!}} class="ibleft" {{!}} Unit
{{!}} class="ibleft" {{!}} Torpedo Launchers
{{!}} class="ibright" {{!}} [[{{{unit}}}]]
{{!}} class="ibright" {{!}}  
{{{torpLaunchers}}}
}}
}}
|-
|-
{{#if: {{{taskforce|}}}|
{{#if: {{{torpPayload|}}}|
{{!}} class="ibleft" {{!}} Task Force
{{!}} class="ibleft" {{!}} Torpedo Payload
{{!}} class="ibright" {{!}} [[{{{taskforce}}}]]
{{!}} class="ibright" {{!}}  
{{{torpPayload}}}
}}
}}
|-
|-
{{#if: {{{taskgroup|}}}|
{{#if: {{{shields|}}}|
{{!}} class="ibleft" {{!}} Task Group
{{!}} class="ibleft" {{!}} Shields
{{!}} class="ibright" {{!}} [[{{{taskforce}}}#{{{taskgroup}}}|{{{taskgroup}}}]]
{{!}} class="ibright" {{!}}  
{{{shields}}}
}}
}}
|-
|-
{{#if: {{{squadron|}}}|
{{#if: {{{dockingfacilities|}}}{{{shuttleBays|}}}{{{shuttles|}}}{{{runabouts|}}}{{{fighters|}}}|
{{!}} class="ibleft" {{!}} Squadron
    {{#if: {{{dockingfacilities|}}}|
{{!}} class="ibright" {{!}} [[{{{squadron}}}]]
    {{!}} class="ibheader" colspan="2" {{!}} '''Docking Facilities'''|
        {{!}} class="ibheader" colspan="2" {{!}} '''Small Craft'''
    }}
}}
}}
|-
|-
{{#if: {{{mothership|}}}|
{{#if: {{{dockingfacilities|}}}|
{{!}} class="ibleft" {{!}} Mothership
{{!}} class="ibleft" {{!}} Docking Facilities
{{!}} class="ibright" {{!}} {{{mothership}}}
{{!}} class="ibright" {{!}}  
{{{dockingfacilities}}}
}}
}}
|-
|-
{{#if: {{{homeport|}}}|
{{#if: {{{shuttleBays|}}}|
{{!}} class="ibleft" {{!}} Home Port
{{!}} class="ibleft" {{!}} Shuttlebays
{{!}} class="ibright" {{!}} {{{homeport}}}
{{!}} class="ibright" {{!}}  
{{{shuttleBays}}}
}}
}}
|-
|-
{{#if: {{{role|}}}|
{{#if: {{{shuttles|}}}|
{{!}} class="ibleft" {{!}} Role
{{!}} class="ibleft" {{!}} Shuttles
{{!}} class="ibright" {{!}} {{{role}}}
{{!}} 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:Starship]]
| 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]]{{#if: {{{taskforce|}}}|[[Category:{{{taskforce}}}]]|<!-- do nothing -->}}{{#if: {{{unit|}}}|[[Category:{{{unit}}}]]|<!-- do nothing -->}}{{DEFAULTSORT:{{{name}}}}}
<!-- Auto category and DEFAULTSORT shenanigans going on here. -->
{{#if: {{{templatemode|}}}|
    <!-- do nothing -->|
    <!-- else -->
        [[Category:Specifications]]
[[Category:{{{affiliation|}}} {{#if: {{{flightCrew|}}}|Small Craft}} Classes]]
{{#if: {{{role|}}}|[[Category:{{{role|}}}]]}}}
{{#if: {{{playaable|}}}|[[Category:Playable]]}}}
 
 
    {{#if: {{{flightCrew|}}}|
        <!-- do nothing -->|
        <!-- else -->{{DEFAULTSORT:{{{name}}}}}
    }}
}}
}}
</includeonly><noinclude>
</includeonly><noinclude>
==Starship==
==Specification==
This infobox exists for the purpose of providing a uniform and consistent method for displaying starship information on a wiki article. The code snippet below should be copied in its 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, the infobox will do the rest
 
*co - This can be linked to a BFMS character page
This can also be achieved by the use of an extra value on the template call.
*xo - This can be linked to a BFMS character page  
*unit - Only used for RPGs. Use Fourth Fleet Expeditionary Group
*squadron - only use as applicable
<pre>
<pre>
{{Starship
| 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 =  
| type = (frigate, destroyer, cruiser etc etc. Consult class page if unsure or leave blank)
| affiliation =  
| affiliation =  
| status = (Active/Retired/NPC/Destroyed)
| operator =
| commission =  
| status =
| decommission =  
| role =
| destroyed =
| type =
| unit = (only for RPGs -- use Fourth Fleet Expeditionary Group)
| precedingClass =
| taskforce = (only supply a task force for primary/squadron commands, RPGs are not in task forces)
| succeedingClass =
| taskgroup = (only supply a task force for primary/squadron commands, RPGs are not in task forces)
| succeedingClass1 =
| squadron = (only supply a squadron if you have a squadron)
| succeedingClass2 =
| mothership = (only for Aquarius escorts for their Odyssey motherships)
| dateEntered =
| homeport = (only supply for station attached ships)
| productionEnd =
| role =
| retired =
| co =  
| expectedDuration =
| xo =  
| expectedRefit =
| dedication = (image of ships dedication plague to be added here)
| 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.)
}}
</pre>
{{clear}}
{{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 = nocats
}}
==Starship Demonstration==
Starship demonstration. The gold standard and primary use for this template.
<pre>{{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 = nocats
}}</pre>
}}</pre>
{{clear}}
{{clear}}
==Example==
{{Specification
{{Starship
| image = [[File:Smolboi.png]]
| name = Lollipop
| displayName = '''''Narendra'' Class'''
| prefix = USS
| name = Narendra
| image = [[file:Galaxyclass.png]]
| affiliation = Starfleet
| registry =  
| role = Outpost
| class = Galaxy
| type =
| type = Asskicker
| precedingClass =
| affiliation = [[Starfleet]] - sorta
| succeedingClass =  
| status = A good ship.
| succeedingClass1 =
| commission = It's just been commissioned.
| succeedingClass2 =
| decommission =  
| dateEntered =  
| destroyed =  
| expectedDuration =  
| unit =  
| expectedRefit =  
| taskforce = Task Force Kickass
| timeResupply =  
| taskgroup = Task Group Whippersnapper
| crewComplement = 2000
| squadron = Kickass Squadron
| emergencyCap =  
| mothership = [[USS Wonka|USS ''Wonka'']]
| civilians = 2000-4000
| homeport = [[Starbase Kickass]]
| populationCap = 15000
| role = Imaginary
| flightCrew =
| co = Commander William T Riker
| passengers =
| xo = Also Riker, because there's two of them
| length =
| dedication =
| 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
}}
}}
The following code produced the infobox to the right.
==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".
{{Starship
<pre>{{Specification
| name = Lollipop
| image = [[File:Smolboi.png]]
| prefix = USS
| displayName = '''''Narendra'' Class'''
| image = [[file:Galaxyclass.png]]
| name = Narendra
| registry =  
| affiliation = Starfleet
| class = Galaxy
| role = Outpost
| type = Asskicker
| type =
| affiliation = [[Starfleet]] - sorta
| precedingClass =
| status = A good ship.
| succeedingClass =
| commission = It's just been commissioned.
| succeedingClass1 =
| decommission =  
| succeedingClass2 =
| destroyed =  
| dateEntered =
| unit =  
| expectedDuration =
| taskforce = Task Force Kickass
| expectedRefit =
| taskgroup = Task Group Whippersnapper
| timeResupply =
| squadron = Kickass Squadron
| crewComplement = 2000
| mothership = [[USS Wonka|USS ''Wonka'']]
| emergencyCap =
| homeport = [[Starbase Kickass]]
| civilians = 2000-4000
| role = Imaginary
| populationCap = 15000
| co = Commander William T Riker
| flightCrew =
| xo = Also Riker, because there's two of them
| passengers =
| dedication =
| 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
}}
}}
</pre>
==Shuttle Demonstration==
[[Category:Infobox Templates]]{{clear}}
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}}
[[Category:Infobox Templates]]
</noinclude>
</noinclude>

Revision as of 03:56, 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.)
}}
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

2330

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 = nocats
}}
Smolboi.png
Narendra Class
Information
Affiliation

Starfleet

Role

Outpost

Population
Standard Complement

2000

Civilian Residents

2000-4000

Maximum Population

15000

Dimensions
Diameter

1,000 meters

Propulsion
Propulsion Systems

Manuvering Thrusters

Armaments
Energy Weapons
  • xx Type-XII Phaser Arrays
  • xx Type-X Phaser Banks
Torpedo Launchers
  • xx Torpedo Launchers
Shields

Graviton Shields

Docking Facilities
Docking Facilities
  • 6 perimeter docking facilities
  • 6 cargo/shuttle bays
Runabouts

4 Danube-class

Template:Specification


Station Demonstration

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".

{{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 = 
}}
Type11Shuttle5.jpg
Type-11 Personnel Shuttle
Information
Affiliation
  • United Federation of Planets
  • Starfleet
Type

Shuttle

Role

Personnel Shuttle

Lineage
Preceding Class

Type-7 Personnel Shuttle

Succeeding Class Type-14 Personnel Shuttle
Service
Entered Service

2375

Crew Capacity
Flight Crew

2

Passengers

12

Dimensions
Length

14.64 meters

Width

3.26 meters

Height

4.5 meters

Propulsion
Propulsion Systems

Warp Drive

Cruise Speed

Warp 6

Armaments
Energy Weapons
  • 4x Type-VII Phaser Arrays
Type11Shuttle.jpg
Template:Specification


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.

{{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]]
}}