Difference between revisions of "Template:StarshipTest2"

Template page
Line 17: Line 17:
{{#if: {{{class|}}}|
{{#if: {{{class|}}}|
{{!}} class="ibleft" {{!}} Class & Type
{{!}} class="ibleft" {{!}} Class & Type
{{!}} class="ibright" {{!}} [[{{{class}}} Class|''{{{class}}}''-class {{{type}}}]]
{{#if: {{{type|}}}|{{!}} class="ibright" {{!}} [[{{{class}}} Class|''{{{class}}}''-class {{{type}}}]]|<!-- else -->{{!}} class="ibright" {{!}} [[{{{class}}} Class|''{{{class}}}''-class]]
}}
}}
}}
|-
|-
Line 49: Line 50:
{{#if: {{{unit|}}}|
{{#if: {{{unit|}}}|
{{!}} class="ibleft" {{!}} Unit
{{!}} class="ibleft" {{!}} Unit
{{!}} class="ibright" {{!}} {{{unit}}}
{{!}} class="ibright" {{!}} [[{{{unit}}}]]
}}
}}
|-
|-
Line 59: Line 60:
{{#if: {{{taskgroup|}}}|
{{#if: {{{taskgroup|}}}|
{{!}} class="ibleft" {{!}} Task Group
{{!}} class="ibleft" {{!}} Task Group
{{!}} class="ibright" {{!}} {{{taskgroup}}}
{{!}} class="ibright" {{!}} [[{{{taskforce}}}#{{{taskgroup}}}|{{{taskgroup}}}]]
}}
}}
|-
|-
Line 104: Line 105:
</div>
</div>
<includeonly>
<includeonly>
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Starships]][[Category:{{{class}}}-class]][[Category:{{{taskforce}}}]]{{DEFAULTSORT:{{{name}}}}}
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Starships]][[Category:{{{class}}}-class]]{{#if: {{{taskforce|}}}|[[Category:{{{taskforce}}}]]|<!-- do nothing -->}}{{#if: {{{unit|}}}|[[Category:{{{unit}}}]]|<!-- do nothing -->}}{{DEFAULTSORT:{{{name}}}}}
}}
}}
</includeonly><noinclude>
</includeonly><noinclude>
Line 129: Line 130:
| decommission =  
| decommission =  
| destroyed =
| destroyed =
| role =
| unit = (only for RPGs -- use Fourth Fleet Expeditionary Group)
| 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)
| taskforce = (only supply a task force for primary/squadron commands, RPGs are not in task forces)
Line 136: Line 136:
| mothership = (only for Aquarius escorts for their Odyssey motherships)
| mothership = (only for Aquarius escorts for their Odyssey motherships)
| homeport = (only supply for station attached ships)
| homeport = (only supply for station attached ships)
| role =
| co =  
| co =  
| xo =  
| xo =  
Line 142: Line 143:
{{clear}}
{{clear}}
==Example==
==Example==
{{StarshipTest2
{{Starship
| name = Lollipop
| name = Lollipop
| prefix = USS
| prefix = USS
Line 155: Line 156:
| destroyed =  
| destroyed =  
| unit =  
| unit =  
| role = Imaginary
| taskforce = Task Force Kickass
| taskforce = Task Force Kickass
| taskgroup = Task Group Whippersnapper
| taskgroup = Task Group Whippersnapper
Line 161: Line 161:
| mothership = [[USS Wonka|USS ''Wonka'']]
| mothership = [[USS Wonka|USS ''Wonka'']]
| homeport = [[Starbase Kickass]]
| homeport = [[Starbase Kickass]]
| 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
Line 169: Line 169:
The following code produced the infobox to the right.
The following code produced the infobox to the right.
<pre>
<pre>
{{StarshipTest2
{{Starship
| name = Lollipop
| name = Lollipop
| prefix = USS
| prefix = USS
Line 182: Line 182:
| destroyed =  
| destroyed =  
| unit =  
| unit =  
| role = Imaginary
| taskforce = Task Force Kickass
| taskforce = Task Force Kickass
| taskgroup = Task Group Whippersnapper
| taskgroup = Task Group Whippersnapper
Line 188: Line 187:
| mothership = [[USS Wonka|USS ''Wonka'']]
| mothership = [[USS Wonka|USS ''Wonka'']]
| homeport = [[Starbase Kickass]]
| homeport = [[Starbase Kickass]]
| 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

Revision as of 10:12, 15 January 2023

{{{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 =
| 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)
| role =
| co = 
| xo = 
| dedication = (image of ships dedication plague to be added here)
}}

Example



The following code produced the infobox to the right.

{{Starship
| 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 = 
| taskforce = Task Force Kickass
| taskgroup = Task Group Whippersnapper
| squadron = Kickass Squadron
| mothership = [[USS Wonka|USS ''Wonka'']]
| homeport = [[Starbase Kickass]]
| role = Imaginary
| co = Commander William T Riker
| xo = Also Riker, because there's two of them
| dedication =
}}