Difference between revisions of "Template:Starship"

Template page
(Adding in type, unit, taskgroup, homeship etc etc. And some new linking as well!)
Line 16: Line 16:
|-
|-
{{#if: {{{class|}}}|
{{#if: {{{class|}}}|
{{!}} class="ibleft" {{!}} Class
{{!}} class="ibleft" {{!}} Class & Type
{{!}} class="ibright" {{!}} {{{class}}}
{{!}} class="ibright" {{!}} [[{{{class}}} Class|''{{{class}}}''-class {{{type}}}]]
}}
}}
|-
|-
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 59: Line 54:
{{#if: {{{taskforce|}}}|
{{#if: {{{taskforce|}}}|
{{!}} class="ibleft" {{!}} Task Force
{{!}} class="ibleft" {{!}} Task Force
{{!}} class="ibright" {{!}} {{{taskforce}}}
{{!}} class="ibright" {{!}} [[{{{taskforce}}}]]
}}
}}
|-
|-
Line 69: Line 64:
{{#if: {{{squadron|}}}|
{{#if: {{{squadron|}}}|
{{!}} class="ibleft" {{!}} Squadron
{{!}} class="ibleft" {{!}} Squadron
{{!}} class="ibright" {{!}} {{{squadron}}}
{{!}} class="ibright" {{!}} [[{{{squadron}}}]]
}}
}}
|-
|-
Line 82: Line 77:
}}
}}
|-
|-
{{#if: {{{quadrant|}}}|
{{#if: {{{role|}}}|
{{!}} class="ibleft" {{!}} Quadrant
{{!}} class="ibleft" {{!}} Role
{{!}} class="ibright" {{!}} {{{quadrant}}}
{{!}} class="ibright" {{!}} {{{role}}}
}}
}}
|-
|-
Line 109: Line 104:
</div>
</div>
<includeonly>
<includeonly>
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Starships]][[Category:{{{class}}}-class]]{{DEFAULTSORT:{{{name}}}}}
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Starships]][[Category:{{{class}}}-class]][[Category:{{{taskforce}}}]]{{DEFAULTSORT:{{{name}}}}}
}}
}}
</includeonly><noinclude>
</includeonly><noinclude>
==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.
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.
===Notes===
===Notes===
*name - Just enter in the name, no need for formatting
*name - Just enter in the name, no need for formatting
Line 119: Line 114:
*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  
*unit - Only use for RPGs--use Fourth Fleet Expeditionary Group
*unit - Only used for RPGs. Use Fourth Fleet Expeditionary Group
*squadron - only use as applicable
*squadron - only use as applicable
<pre>
<pre>
Line 128: Line 123:
| registry =  
| registry =  
| class =  
| class =  
| type = (frigate, destroyer, cruiser etc etc. Consult class page if unsure or leave blank)
| affiliation =  
| affiliation =  
| status = (Active/Retired/NPC/Destroyed)
| status = (Active/Retired/NPC/Destroyed)
Line 133: Line 129:
| decommission =  
| decommission =  
| destroyed =
| destroyed =
| role =
| unit = (only for RPGs -- use Fourth Fleet Expeditionary Group)
| 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)
| 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)
| 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)
| squadron = (only supply a squadron if you have a squadron)
| quadrant =  
| mothership = (only for Aquarius escorts for their Odyssey motherships)
| role =  
| homeport = (only supply for station attached ships)
| co =  
| co =  
| xo =  
| xo =  
Line 147: Line 142:
{{clear}}
{{clear}}
==Example==
==Example==
{{Starship
{{StarshipTest2
| name = Lollipop
| name = Lollipop
| prefix = USS
| prefix = USS
Line 153: Line 148:
| registry =  
| registry =  
| class = Galaxy
| class = Galaxy
| affiliation = Starbase Kickass
| type = Asskicker
| affiliation = [[Starfleet]] - sorta
| status = A good ship.
| status = A good ship.
| commission = It's just been commissioned.
| commission = It's just been commissioned.
| decommission =  
| decommission =  
| destroyed =  
| destroyed =  
| unit =
| unit =  
| taskforce =  
| role = Imaginary
| taskgroup =  
| taskforce = Task Force Kickass
| squadron =  
| taskgroup = Task Group Whippersnapper
| squadron = Kickass Squadron
| mothership = [[USS Wonka|USS ''Wonka'']]
| homeport = [[Starbase Kickass]]
| quadrant = Right behind you
| quadrant = Right behind you
| role = Imaginary
| co = Commander William T Riker
| co = Commander William T Riker
| xo = Also Riker, because there's two of them
| xo = Also Riker, because there's two of them
| dedication =
| templatemode = nocats
| templatemode = nocats
}}
}}
The following code produced the infobox to the right.
The following code produced the infobox to the right.
<pre>
<pre>
{{Starship
{{StarshipTest2
| name = Lollipop
| name = Lollipop
| prefix = USS
| prefix = USS
Line 176: Line 175:
| registry =  
| registry =  
| class = Galaxy
| class = Galaxy
| affiliation = [[Starfleet]]
| type = Asskicker
| status = A good ship
| affiliation = [[Starfleet]] - sorta
| commission =  
| status = A good ship.
| commission = It's just been commissioned.
| decommission =  
| decommission =  
| destroyed =  
| destroyed =  
| unit =
| unit =  
| taskforce =  
| role = Imaginary
| taskgroup =  
| taskforce = Task Force Kickass
| squadron =  
| taskgroup = Task Group Whippersnapper
| mothership =
| squadron = Kickass Squadron
| homeport =  
| mothership = [[USS Wonka|USS ''Wonka'']]
| homeport = [[Starbase Kickass]]
| quadrant = Right behind you
| quadrant = Right behind you
| role = Imaginary
| co = Commander William T Riker
| co = Commander William T Riker
| xo = Also Riker, because there's two of them
| xo = Also Riker, because there's two of them
| dedication =
}}
}}
</pre>
</pre>
[[Category:Infobox Templates]]{{clear}}
[[Category:Infobox Templates]]{{clear}}
</noinclude>
</noinclude>

Revision as of 23:54, 21 December 2022

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

Starship

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.

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 used 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 = 
| type = (frigate, destroyer, cruiser etc etc. Consult class page if unsure or leave blank)
| affiliation = 
| status = (Active/Retired/NPC/Destroyed)
| commission = 
| decommission = 
| destroyed =
| role = 
| unit = (only for RPGs -- use Fourth Fleet Expeditionary Group)
| 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)
| mothership = (only for Aquarius escorts for their Odyssey motherships)
| homeport = (only supply for station attached ships)
| co = 
| xo = 
| dedication = (image of ships dedication plague to be added here)
}}

Example

Template:StarshipTest2 The following code produced the infobox to the right.

{{StarshipTest2
| name = Lollipop
| prefix = USS
| image = [[file:Galaxyclass.png]]
| registry = 
| class = Galaxy
| type = Asskicker
| affiliation = [[Starfleet]] - sorta
| status = A good ship.
| commission = It's just been commissioned.
| decommission = 
| destroyed = 
| unit = 
| role = Imaginary
| taskforce = Task Force Kickass
| taskgroup = Task Group Whippersnapper
| squadron = Kickass Squadron
| mothership = [[USS Wonka|USS ''Wonka'']]
| homeport = [[Starbase Kickass]]
| quadrant = Right behind you
| co = Commander William T Riker
| xo = Also Riker, because there's two of them
| dedication =
}}