Difference between revisions of "Template:Starship"
Template page
m |
m (An update to not do the class category if no class provided. Stops a -class category tag from forming.) |
||
(29 intermediate revisions by 4 users not shown) | |||
Line 8: | Line 8: | ||
}} | }} | ||
|- | |- | ||
| class="ibheader" colspan="2" | '''Information''' | | class="ibheader" colspan="2" | '''General Information''' | ||
|- | |- | ||
{{#if: {{{registry|}}}| | {{#if: {{{registry|}}}| | ||
Line 16: | Line 16: | ||
|- | |- | ||
{{#if: {{{class|}}}| | {{#if: {{{class|}}}| | ||
{{!}} class="ibleft" {{!}} Class | {{!}} class="ibleft" {{!}} Class & Type | ||
{{!}} class="ibright" {{!}} {{{class}}} | {{#if: {{{type|}}}|{{!}} class="ibright" {{!}} [[{{{class}}} Class|''{{{class}}}''-class {{{type}}}]]|<!-- else -->{{!}} class="ibright" {{!}} [[{{{class}}} Class|''{{{class}}}''-class]] | ||
}} | |||
}} | }} | ||
|- | |- | ||
Line 30: | Line 31: | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{ | {{#if: {{{commission|}}}| | ||
{{!}} class="ibleft" {{!}} Commissioned | {{!}} class="ibleft" {{!}} Commissioned | ||
{{!}} class="ibright" {{!}} {{{ | {{!}} class="ibright" {{!}} {{{commission}}} | ||
}} | }} | ||
|- | |- | ||
Line 47: | Line 48: | ||
| class="ibheader" colspan="2" | '''Assignment''' | | class="ibheader" colspan="2" | '''Assignment''' | ||
|- | |- | ||
{{#if: {{{ | {{#if: {{{unit|}}}| | ||
{{!}} class="ibleft" {{!}} | {{!}} class="ibleft" {{!}} Unit | ||
{{!}} class="ibright" {{!}} | {{!}} class="ibright" {{!}} [[{{{unit}}}]] | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{taskforce|}}}| | {{#if: {{{taskforce|}}}| | ||
{{!}} class="ibleft" {{!}} Task Force | {{!}} class="ibleft" {{!}} Task Force | ||
{{!}} class="ibright" {{!}} {{{taskforce}}} | {{!}} class="ibright" {{!}} [[{{{taskforce}}}]] | ||
}} | |||
|- | |||
{{#if: {{{taskgroup|}}}| | |||
{{!}} class="ibleft" {{!}} Task Group | |||
{{!}} class="ibright" {{!}} [[{{{taskforce}}}#{{{taskgroup}}}|{{{taskgroup}}}]] | |||
}} | |||
|- | |||
{{#if: {{{squadron|}}}| | |||
{{!}} class="ibleft" {{!}} Squadron | |||
{{!}} class="ibright" {{!}} [[{{{squadron}}}]] | |||
}} | |||
|- | |||
{{#if: {{{mothership|}}}| | |||
{{!}} class="ibleft" {{!}} Mothership | |||
{{!}} class="ibright" {{!}} {{{mothership}}} | |||
}} | |||
|- | |||
{{#if: {{{homeport|}}}| | |||
{{!}} class="ibleft" {{!}} Home Port | |||
{{!}} class="ibright" {{!}} {{{homeport}}} | |||
}} | }} | ||
|- | |- | ||
{{#if: {{{ | {{#if: {{{role|}}}| | ||
{{!}} class="ibleft" {{!}} | {{!}} class="ibleft" {{!}} Role | ||
{{!}} class="ibright" {{!}} {{{ | {{!}} class="ibright" {{!}} {{{role}}} | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{co|}}}| | {{#if: {{{co|}}}| | ||
{{!}} class="ibheader" colspan="2" {{!}} '''Personnel''' | {{!}} class="ibheader" colspan="2" {{!}} '''Key Personnel''' | ||
}} | }} | ||
|- | |- | ||
Line 84: | Line 105: | ||
</div> | </div> | ||
<includeonly> | <includeonly> | ||
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Starships]][[Category:{{{class}}}-class]]{{DEFAULTSORT{{{name}}}}}}} | {{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Starships]]{{#if: {{{class|}}}|[[Category:{{{class}}}-class]]}}{{#if: {{{taskforce|}}}|[[Category:{{{taskforce}}}]]|<!-- do nothing -->}}{{#if: {{{unit|}}}|[[Category:{{{unit}}}]]|<!-- do nothing -->}}{{DEFAULTSORT:{{{name}}}}} | ||
}} | |||
</includeonly><noinclude> | </includeonly><noinclude> | ||
==Starship== | ==Starship== | ||
This infobox exists for the | 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 | ||
*class - Just type in the class name, the infobox will do the rest | *class - Just type in the class name, the infobox will do the rest | ||
*co - | *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 used for RPGs. Use Fourth Fleet Expeditionary Group | |||
*squadron - only use as applicable | |||
<pre> | <pre> | ||
{{Starship | {{Starship | ||
Line 100: | Line 124: | ||
| 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) | ||
| commission = | | commission = | ||
| decommission = | | decommission = | ||
| destroyed = | | destroyed = | ||
| taskforce = (only supply a task force for commands, | | 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) | ||
| role = | | 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 = | | co = | ||
| xo = | | xo = | ||
Line 120: | Line 149: | ||
| registry = | | registry = | ||
| class = Galaxy | | class = Galaxy | ||
| affiliation = | | 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 = | ||
| taskforce = | | unit = | ||
| | | taskforce = Task Force Kickass | ||
| taskgroup = Task Group Whippersnapper | |||
| squadron = Kickass Squadron | |||
| mothership = [[USS Wonka|USS ''Wonka'']] | |||
| homeport = [[Starbase Kickass]] | |||
| role = Imaginary | | 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 | ||
}} | }} | ||
Line 140: | 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 = | ||
| taskforce = | | unit = | ||
| | | taskforce = Task Force Kickass | ||
| taskgroup = Task Group Whippersnapper | |||
| squadron = Kickass Squadron | |||
| mothership = [[USS Wonka|USS ''Wonka'']] | |||
| homeport = [[Starbase Kickass]] | |||
| role = Imaginary | | 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 05:14, 22 April 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
USS Lollipop | |
General Information | |
Class & Type | Galaxy-class Asskicker |
Affiliation | Starfleet - sorta |
Status | A good ship. |
Commissioned | It's just been commissioned. |
Assignment | |
Task Force | Task Force Kickass |
Task Group | Task Group Whippersnapper |
Squadron | Kickass Squadron |
Mothership | USS Wonka |
Home Port | Starbase Kickass |
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 | 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 = }}