Difference between revisions of "Template:StarshipTest2"

Template page
 
(17 intermediate revisions by the same user not shown)
Line 319: Line 319:
{{#if: {{{templatemode|}}}|
{{#if: {{{templatemode|}}}|
     <!-- do nothing -->|
     <!-- do nothing -->|
     <!-- else -->
     <!-- else -->[[Category:Specifications]]
        [[Category:Specifications]]
[[Category:{{#if: {{{affiliation|}}}|{{ShortName
[[Category:{{{affiliation|}}} {{#if: {{{flightCrew|}}}|Small Craft}} Classes]]
| x = {{{affiliation}}}
{{#if: {{{role|}}}|[[Category:{{{role|}}}]]}}}
}}
{{#if: {{{playaable|}}}|[[Category:Playable]]}}}
}} {{#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|}}}|
     {{#if: {{{flightCrew|}}}|
Line 389: Line 394:
| msd =  
| 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.)
| 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>
</pre>
{{clear}}
{{clear}}
{{Specification
{{StarshipTest2
| image = [[Image:Ambassadorclass.png]]
| image = [[Image:Ambassadorclass.png]]
| displayName = '''''Ambassador'' Class'''
| displayName = '''''Ambassador'' Class'''
Line 405: Line 411:
| succeedingClass1 =  
| succeedingClass1 =  
| succeedingClass2 =  
| succeedingClass2 =  
| dateEntered = 2330
| dateEntered = 4500
| productionEnd = 2358
| productionEnd = 2358
| retired = 2400
| retired = 2400
Line 438: Line 444:
| aux =  
| aux =  
| msd =  
| msd =  
| templatemode =  
| templatemode = nocats
| playable = yes
| playable = yes
}}
}}
Line 489: Line 495:
| aux =  
| aux =  
| msd =  
| msd =  
| templatemode = nocats
| templatemode =  
| playable = yes
}}</pre>
}}</pre>
{{clear}}
{{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
}}
==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".
<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}}
[[Category:Infobox Templates]]
</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
}}