Difference between revisions of "Template:TEST"

Template page
m
m
(13 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" {{!}} '''''{{{name}}}''-class'''|
     {{#if: {{{flightCrew|}}}|
         {{!}} class="ibname" colspan="2" style="border-top-right-radius: 13px; border-top-left-radius: 13px;" width="315px" {{!}} '''''{{{name}}}''-class'''
        {{!}} class="ibname" colspan="2" {{!}} '''''{{{name}}}'' shuttle'''|
        {{!}} class="ibname" colspan="2" {{!}} '''''{{{name}}}''-class'''}}|
    {{#if: {{{flightCrew|}}}|
        {{!}} class="ibname" colspan="2" style="border-top-right-radius: 13px; border-top-left-radius: 13px;" width="315px" {{!}} '''''{{{name}}}'' shuttle'''|
         {{!}} class="ibname" colspan="2" style="border-top-right-radius: 13px; border-top-left-radius: 13px;" width="315px" {{!}} '''''{{{name}}}''-class'''}}
}}
}}
|-
|-
Line 25: Line 29:
{{!}} class="ibleft" {{!}} Preceding Class
{{!}} class="ibleft" {{!}} Preceding Class
{{!}} class="ibright" {{!}}  
{{!}} class="ibright" {{!}}  
{{{precedingClass}}}
[[{{{precedingClass}}} Class|''{{{precedingClass}}}''-class]]
}}
}}
|-
|-
Line 31: Line 35:
{{!}} class="ibleft" {{!}} Succeeding Class
{{!}} class="ibleft" {{!}} Succeeding Class
{{!}} class="ibright" {{!}}  
{{!}} class="ibright" {{!}}  
{{{succeedingClass}}}
[[{{{succeedingClass}}} Class|''{{{succeedingClass}}}''-class]]
}}
}}
|-
|-
Line 58: Line 62:
}}
}}
|-
|-
{{#if: {{{crewcomplement|}}}{{{emergencyCap|}}}{{{civilians|}}}{{{populationCap|}}}|
{{#if: {{{crewcomplement|}}}{{{emergencyCap|}}}{{{civilians|}}}{{{populationCap|}}}{{{flightCrew|}}}{{{passengers|}}}|
     {{#if: {{{cruiseSpeed|}}}|
     {{#if: {{{cruiseSpeed|}}}|
         {{!}} class="ibheader" colspan="2" {{!}} '''Crew Capacity'''|
         {{!}} class="ibheader" colspan="2" {{!}} '''Crew Capacity'''|
Line 87: Line 91:
{{!}} class="ibright" {{!}}  
{{!}} class="ibright" {{!}}  
{{{populationCap}}}
{{{populationCap}}}
}}
|-
{{#if: {{{flightCrew|}}}|
{{!}} class="ibleft" {{!}} Flight Crew
{{!}} class="ibright" {{!}}
{{{flightCrew}}}
}}
|-
{{#if: {{{passengers|}}}|
{{!}} class="ibleft" {{!}} Passengers
{{!}} class="ibright" {{!}}
{{{passengers}}}
}}
}}
|-
|-
Line 214: Line 230:
{{!}} class="ibright" {{!}}  
{{!}} class="ibright" {{!}}  
{{{fighters}}}
{{{fighters}}}
}}
|-
{{#if: {{{msd|}}}|
{{!}} class="ibheader" colspan="2" {{!}} {{{msd}}}
}}
}}
|-
|-
Line 220: Line 240:
</div>
</div>
<includeonly>
<includeonly>
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Specifications]]{{DEFAULTSORT:{{{name}}}}}
{{#if: {{{templatemode|}}}{{{flightCrew|}}}|<!-- do nothing -->|<!--else-->[[Category:Specifications]]{{DEFAULTSORT:{{{name}}}}}
}}
}}
</includeonly><noinclude>
</includeonly><noinclude>
==Test==
==Test==
Test
TEST 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.
<pre>
| templatemode =
</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.
<pre>
<pre>
{{TEST
{{TEST
Line 241: Line 269:
| civilians =  
| civilians =  
| populationCap =  
| populationCap =  
| flightCrew = (If this value is provided, no DefaultSort value is assigned. Ideal for pages listing multiple small craft.)
| passengers =
| length =  
| length =  
| width =  
| width =  
| diameter = (starbase only)
| diameter = (Starbases only.)
| height =  
| height =  
| decks =  
| decks =  
| propulsionSystem =  
| propulsionSystem =  
| cruiseSpeed =  
| cruiseSpeed = (If this value is provided, Crew Complement header will change to read Population. Ideal for starbases.)
| maxSpeed =  
| maxSpeed =  
| emergencySpeed =  
| emergencySpeed =  
Line 259: Line 289:
| runabouts =  
| runabouts =  
| fighters =  
| fighters =  
| 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>
</pre>
Line 277: Line 309:
| civilians = 2000-4000
| civilians = 2000-4000
| populationCap = 15000
| populationCap = 15000
| flightCrew =
| passengers =
| length =  
| length =  
| width =  
| width =  
Line 297: Line 331:
| runabouts = 4 Danube-class
| runabouts = 4 Danube-class
| fighters =  
| fighters =  
| msd =
| templatemode = nocats
| templatemode = nocats
}}
}}
Line 316: Line 351:
| civilians = 2000-4000
| civilians = 2000-4000
| populationCap = 15000
| populationCap = 15000
| flightCrew =
| passengers =
| length =  
| length =  
| width =  
| width =  
Line 336: Line 373:
| runabouts = 4 Danube-class
| runabouts = 4 Danube-class
| fighters =  
| fighters =  
| msd =
}}</pre>
}}</pre>
{{clear}}
{{clear}}
Line 353: Line 391:
| civilians =  
| civilians =  
| populationCap =  
| populationCap =  
| flightCrew =
| passengers =
| length = 685.2 meters
| length = 685.2 meters
| width = 243 meters
| width = 243 meters
Line 374: Line 414:
| runabouts = 4
| runabouts = 4
| fighters = Like a bajillion!
| fighters = Like a bajillion!
| msd =
| templatemode = nocats
| templatemode = nocats
}}
}}
Line 393: Line 434:
| civilians =  
| civilians =  
| populationCap =  
| populationCap =  
| flightCrew =
| passengers =
| length = 685.2 meters
| length = 685.2 meters
| width = 243 meters
| width = 243 meters
Line 414: Line 457:
| runabouts = 4
| runabouts = 4
| fighters = Like a bajillion!
| fighters = Like a bajillion!
| msd =
}}</pre>
{{clear}}
{{TEST
| image = [[image:Type11Shuttle5.jpg]]
| name = Type-11
| affiliation = *United Federation of Planets
*Starfleet
| role = Personnel Transport
| precedingClass = Type-7 Personnel Shuttle
| succeedingClass = Type-14 Personnel Shuttle
| 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]]
}}
==Shuttle test here==
Starship test here
<pre>{{TEST
| image = [[image:Type11Shuttle5.jpg]]
| name = Type-11
| affiliation = *United Federation of Planets
*Starfleet
| role = Personnel Transport
| precedingClass = Type-7 Personnel Shuttle
| succeedingClass = Type-14 Personnel Shuttle
| 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]]
}}</pre>
}}</pre>
{{clear}}
{{clear}}
</noinclude>
</noinclude>

Revision as of 12:57, 29 June 2022

{{{name}}}-class
Information
Template:TEST

Test

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

{{TEST
| image = 
| name = 
| affiliation = 
| role = 
| precedingClass = 
| succeedingClass = 
| dateEntered = 
| 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.)
| passengers = 
| length = 
| width = 
| diameter = (Starbases only.)
| height = 
| decks = 
| propulsionSystem = 
| cruiseSpeed = (If this value is provided, Crew Complement header will change to read Population. Ideal for starbases.)
| maxSpeed = 
| emergencySpeed = 
| energyWeapons = 
| torpLaunchers = 
| torpPayload = 
| shields = 
| dockingfacilities = 
| shuttleBays = 
| shuttles = 
| runabouts = 
| fighters = 
| 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.)
}}
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:TEST


Station test

Station test here

{{TEST
| image = [[File:Smolboi.png]]
| name = Narendra
| affiliation = Starfleet
| role = Outpost
| precedingClass = 
| succeedingClass = 
| 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 = 
| msd = 
}}
Sovereign1.png
Sovereign-class
Information
Affiliation

Starfleet

Role

Explorer

Preceding Class

Galaxy-class

Succeeding Class

Odyssey-class

Entered Service

2369

Expected Refit Cycle

10 Years

Expected Resupply Cycle

5 Years

Crew Capacity
Standard Complement

820

Emergency Capacity

4,500

Dimensions
Length

685.2 meters

Width

243 meters

Height

87 meters

Decks

24

Propulsion
Propulsion Systems

Matter/Antimatter powered warp drive

Cruise Speed

Warp 8

Maximum Speed

Warp 9.5

Emergency Speed

Warp 9.95 (36 hours)

Armaments
Energy Weapons
  • 16x Type-XII Phaser Arrays
Torpedo Launchers
  • 1 Forward turret
  • 3 forward
  • 5 aft
Torpedo Payload
  • 300 Photon Torpedoes
  • 150 Quantum Torpedoes
Shields

Multi-Layered Shielding System

Small Craft
Shuttlebays

2

Shuttles

10

Runabouts

4

Fighters

Like a bajillion!

Template:TEST


Starship test here

Starship test here

{{TEST
| image = [[Image:Sovereign1.png]]
| name = Sovereign
| affiliation = Starfleet
| role = Explorer
| precedingClass = Galaxy
| succeedingClass = Odyssey
| dateEntered = 2369
| expectedDuration = 
| expectedRefit = 10 Years
| timeResupply = 5 Years
| crewComplement = 820
| emergencyCap = 4,500
| civilians = 
| populationCap = 
| flightCrew = 
| passengers = 
| length = 685.2 meters
| width = 243 meters
| diameter = 
| height = 87 meters
| decks = 24
| propulsionSystem = Matter/Antimatter powered warp drive
| cruiseSpeed = Warp 8
| maxSpeed = Warp 9.5
| emergencySpeed = Warp 9.95 (36 hours)
| energyWeapons = *16x Type-XII Phaser Arrays
| torpLaunchers = *1 Forward turret
*3 forward
*5 aft
| torpPayload = *300 Photon Torpedoes
*150 Quantum Torpedoes
| shields = Multi-Layered Shielding System
| dockingfacilities = 
| shuttleBays = 2
| shuttles = 10
| runabouts = 4
| fighters = Like a bajillion!
| msd = 
}}
Type11Shuttle5.jpg
Type-11 shuttle
Information
Affiliation
  • United Federation of Planets
  • Starfleet
Role

Personnel Transport

Preceding Class

Type-7 Personnel Shuttle-class

Succeeding Class

Type-14 Personnel Shuttle-class

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:TEST


Shuttle test here

Starship test here

{{TEST
| image = [[image:Type11Shuttle5.jpg]]
| name = Type-11
| affiliation = *United Federation of Planets
*Starfleet
| role = Personnel Transport
| precedingClass = Type-7 Personnel Shuttle
| succeedingClass = Type-14 Personnel Shuttle
| 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]]
}}