Difference between revisions of "Template:StarshipTest2"

Template page
(Created page with "<div class="infobox"> {| class="ibtable" align="right" cellpadding="3" cellspacing="0" {{#if: {{{image|}}}| {{!}} class="ibimage" colspan="2" style="border-top-right-radiu...")
 
Line 15: Line 15:
}}
}}
|-
|-
{{#if: {{{displayclass|}}}|
{{#if: {{{class|}}}|
{{!}} class="ibleft" {{!}} Class & Type
{{!}} class="ibleft" {{!}} Class
{{!}} class="ibright" {{!}} {{{displayclass}}}
{{!}} class="ibright" {{!}} {{{class}}}
}}
}}
|-
|-
Line 46: Line 46:
|-
|-
| class="ibheader" colspan="2" | '''Assignment'''
| class="ibheader" colspan="2" | '''Assignment'''
|-
{{#if: {{{role|}}}|
{{!}} class="ibleft" {{!}} Role
{{!}} class="ibright" {{!}} {{{role}}}
}}
|-
|-
{{#if: {{{unit|}}}|
{{#if: {{{unit|}}}|
Line 75: Line 80:
{{!}} class="ibleft" {{!}} Home Port
{{!}} class="ibleft" {{!}} Home Port
{{!}} class="ibright" {{!}} {{{homeport}}}
{{!}} class="ibright" {{!}} {{{homeport}}}
}}
|-
{{#if: {{{role|}}}|
{{!}} class="ibleft" {{!}} Role
{{!}} class="ibright" {{!}} {{{role}}}
}}
}}
|-
|-
Line 105: Line 105:
}}
}}
|-  
|-  
| class="ibheader" colspan="2" style="border-bottom-right-radius: 13px; border-bottom-left-radius: 13px;" | [[Template:StarshipTest]]
| class="ibheader" colspan="2" style="border-bottom-right-radius: 13px; border-bottom-left-radius: 13px;" | [[Template:Starship]]
|}
|}
</div>
</div>
Line 116: Line 116:
===Notes===
===Notes===
*name - Just enter in the name, no need for formatting
*name - Just enter in the name, no need for formatting
*class - Just type in the class name, which sets the category
*class - Just type in the class name, the infobox will do the rest
*displayclass - What will appear in the infobox, i.e. Odyssey-class explorer.
*co - This can be linked to a BFMS character page
*co - This can be linked to a BFMS character page
*xo - This can be linked to a BFMS character page  
*xo - This can be linked to a BFMS character page  
Line 123: Line 122:
*squadron - only use as applicable
*squadron - only use as applicable
<pre>
<pre>
{{StarshipTest
{{Starship
| name = (just put the name here)
| name = (just put the name here)
| prefix = (SS, USS, IKS etc)
| prefix = (SS, USS, IKS etc)
Line 129: Line 128:
| registry =  
| registry =  
| class =  
| class =  
| displayclass =
| affiliation =  
| affiliation =  
| status = (Active/Retired/NPC/Destroyed)
| status = (Active/Retired/NPC/Destroyed)
Line 149: Line 147:
{{clear}}
{{clear}}
==Example==
==Example==
{{StarshipTest
{{Starship
| name = Galaxy
| name = Lollipop
| prefix = USS
| prefix = USS
| image = [[file:Galaxyclass.png]]
| image = [[file:Galaxyclass.png]]
| registry = NCC-72000
| registry =  
| class = Galaxy
| class = Galaxy
| displayclass =  [[Galaxy Class|''Galaxy''-class explorer]]
| affiliation = Starbase Kickass
| affiliation = [[Starfleet]]
| status = A good ship.
| status = Active
| commission = It's just been commissioned.
| commission = 2358
| decommission =  
| decommission =  
| destroyed =  
| destroyed =  
| unit =
| unit =
| taskforce = Task Force 99
| taskforce =  
| taskgroup = Task Group 66
| taskgroup =  
| squadron =  Galaxy Squadron
| squadron =  
| mothership =
| quadrant = Right behind you
| homeport =  
| role = Imaginary
| quadrant = Beta Quadrant
| co = Commander William T Riker
| role = Flagship
| xo = Also Riker, because there's two of them
| co = Captain Bob
| xo = Commander Stacey
| templatemode = nocats
| templatemode = nocats
}}
}}
The following code produced the infobox to the right.
The following code produced the infobox to the right.
<pre>
<pre>
{{StarshipTest
{{Starship
| name = Galaxy
| name = Lollipop
| prefix = USS
| prefix = USS
| image = [[file:Galaxyclass.png]]
| image = [[file:Galaxyclass.png]]
| registry = NCC-72000
| registry =  
| class = Galaxy
| class = Galaxy
| displayclass =  [[Galaxy Class|''Galaxy''-class explorer]]
| affiliation = [[Starfleet]]
| affiliation = [[Starfleet]]
| status = Active
| status = A good ship
| commission = 2358
| commission =  
| decommission =  
| decommission =  
| destroyed =  
| destroyed =  
| unit =
| unit =
| taskforce = Task Force 99
| taskforce =  
| taskgroup = Task Group 66
| taskgroup =  
| squadron = Galaxy Squadron
| squadron =  
| mothership =
| mothership =
| homeport =  
| homeport =  
| quadrant = Beta Quadrant
| quadrant = Right behind you
| role = Flagship
| role = Imaginary
| co = Captain Bob
| co = Commander William T Riker
| xo = Commander Stacey
| xo = Also Riker, because there's two of them
}}
}}
</pre>
</pre>
[[Category:Infobox Templates]]{{clear}}
[[Category:Infobox Templates]]{{clear}}
</noinclude>
</noinclude>

Revision as of 22:57, 21 December 2022

{{{prefix}}} {{{name}}}
General Information
Assignment
Template:Starship

Starship

This infobox exists for the purposes of providing a uniform and consistent method for displaying starship information on a wiki article. The code snippet below should be copied in it's entirety and set at the top of a page. For rows with no values, simply leave the line blank and it will not render in the final infobox.

Notes

  • name - Just enter in the name, no need for formatting
  • class - Just type in the class name, the infobox will do the rest
  • co - This can be linked to a BFMS character page
  • xo - This can be linked to a BFMS character page
  • unit - Only use for RPGs--use Fourth Fleet Expeditionary Group
  • squadron - only use as applicable
{{Starship
| name = (just put the name here)
| prefix = (SS, USS, IKS etc)
| image = 
| registry = 
| class = 
| affiliation = 
| status = (Active/Retired/NPC/Destroyed)
| commission = 
| decommission = 
| destroyed =
| unit = (only for RPGs -- use Fourth Fleet Expeditionary Group)
| mothership = (only for Aquarius escorts for their Odyssey motherships)
| homeport = (only supply for station attached ships)
| taskforce = (only supply a task force for primary/squadron commands, RPGs are not in task forces)
| taskgroup = (only supply a task force for primary/squadron commands, RPGs are not in task forces)
| squadron = (only supply a squadron if you have a squadron)
| quadrant = 
| role = 
| co = 
| xo = 
| dedication = (image of ships dedication plague to be added here)
}}

Example

Galaxyclass.png
USS Lollipop
General Information
Class & Type Galaxy-class
Affiliation Starbase Kickass
Status A good ship.
Commissioned It's just been commissioned.
Assignment
Role Imaginary
Key Personnel
Commanding Officer Commander William T Riker
Executive Officer Also Riker, because there's two of them
Template:Starship


The following code produced the infobox to the right.

{{Starship
| name = Lollipop
| prefix = USS
| image = [[file:Galaxyclass.png]]
| registry = 
| class = Galaxy
| affiliation = [[Starfleet]]
| status = A good ship
| commission = 
| decommission = 
| destroyed = 
| unit =
| taskforce = 
| taskgroup = 
| squadron = 
| mothership =
| homeport = 
| quadrant = Right behind you
| role = Imaginary
| co = Commander William T Riker
| xo = Also Riker, because there's two of them
}}