Difference between revisions of "Template:Starship"

From Bravo Fleet
m (An update to not do the class category if no class provided. Stops a -class category tag from forming.)
 
(58 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
<div class="infobox">
 
<div class="infobox">
{| width="315" align="right" cellpadding="3" cellspacing="0" style="border-radius:13px;margin-bottom:0;padding-left:10px;"
+
{| class="ibtable" align="right" cellpadding="3" cellspacing="0"
 
{{#if: {{{image|}}}|
 
{{#if: {{{image|}}}|
{{!}} colspan="2" bgcolor={{{bgcolor_value|#222222; style="border-top-right-radius: 13px; border-top-left-radius: 13px; background: #f3f3f3 !important; color: #cccccc; font-size:smaller; text-align: center;padding: 10px;"}}} {{!}} {{{image}}} }}
+
    {{!}} class="ibimage" colspan="2" style="border-top-right-radius: 13px; border-top-left-radius: 13px;" width="315px" {{!}} {{{image}}}
 +
    {{!}}-
 +
    {{!}} class="ibname" colspan="2" {{!}} '''{{{prefix}}}''' '''''{{{name}}}'''''|
 +
        {{!}} class="ibname" colspan="2" style="border-top-right-radius: 13px; border-top-left-radius: 13px;" width="315px" {{!}} '''{{{prefix}}}''' '''''{{{name}}}'''''
 +
}}
 
|-
 
|-
| colspan="2" style="text-align: center; color: #e5e5ed; font-size:larger; background-color:#304665 !important; text-align:center;padding: .3rem 1.25rem;" | '''{{{prefix}}}''' '''''{{{name}}}'''''
+
| class="ibheader" colspan="2" | '''General Information'''
|-
 
| colspan="2" style="text-align: center; color: #e5e5ed; background-color:#2a4667c9; text-align:center; font-size:8pt; padding: 6px" | '''Information'''
 
 
|-
 
|-
 
{{#if: {{{registry|}}}|
 
{{#if: {{{registry|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Registry
+
{{!}} class="ibleft" {{!}} Registry
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
+
{{!}} class="ibright" {{!}} {{{registry}}}
{{{registry}}} }}
+
}}
 
|-
 
|-
 
{{#if: {{{class|}}}|
 
{{#if: {{{class|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Class
+
{{!}} class="ibleft" {{!}} Class & Type
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
+
{{#if: {{{type|}}}|{{!}} class="ibright" {{!}} [[{{{class}}} Class|''{{{class}}}''-class {{{type}}}]]|<!-- else -->{{!}} class="ibright" {{!}} [[{{{class}}} Class|''{{{class}}}''-class]]
[[{{{class}}}_Class|''{{{class}}}''-class]] }}
+
}}
 +
}}
 
|-
 
|-
 
{{#if: {{{affiliation|}}}|
 
{{#if: {{{affiliation|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Affiliation
+
{{!}} class="ibleft" {{!}} Affiliation
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
+
{{!}} class="ibright" {{!}} {{{affiliation}}}
{{{affiliation}}} }}
+
}}
 
|-
 
|-
 
{{#if: {{{status|}}}|
 
{{#if: {{{status|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Status
+
{{!}} class="ibleft" {{!}} Status
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
+
{{!}} class="ibright" {{!}} {{{status}}}
{{{status}}} }}
+
}}
 
|-
 
|-
 
{{#if: {{{commission|}}}|
 
{{#if: {{{commission|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Commissioned
+
{{!}} class="ibleft" {{!}} Commissioned
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
+
{{!}} class="ibright" {{!}} {{{commission}}}
{{{commission}}} }}
+
}}
 
|-
 
|-
 
{{#if: {{{decommission|}}}|
 
{{#if: {{{decommission|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Decommissioned
+
{{!}} class="ibleft" {{!}} Decommissioned
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
+
{{!}} class="ibright" {{!}} {{{decommission}}}
{{{decommission}}} }}
+
}}
 
|-
 
|-
 
{{#if: {{{destroyed|}}}|
 
{{#if: {{{destroyed|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Destroyed
+
{{!}} class="ibleft" {{!}} Destroyed
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
+
{{!}} class="ibright" {{!}} {{{destroyed}}}
{{{destroyed}}} }}
+
}}
 
|-
 
|-
{{#if: {{{role|}}}{{{taskforce|}}}{{{quadrant|}}}|
+
| class="ibheader" colspan="2" | '''Assignment'''
{{!}} colspan="2" style="text-align: center; color: #e5e5ed; background-color:#2a4667c9; text-align:center; font-size:8pt;padding: 6px" {{!}} '''Assignment'''
 
}}
 
 
|-
 
|-
{{#if: {{{role|}}}|
+
{{#if: {{{unit|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Role
+
{{!}} class="ibleft" {{!}} Unit
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
+
{{!}} class="ibright" {{!}} [[{{{unit}}}]]
{{{role}}} }}
+
}}
 
|-
 
|-
 
{{#if: {{{taskforce|}}}|
 
{{#if: {{{taskforce|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Task Force
+
{{!}} class="ibleft" {{!}} Task Force
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
+
{{!}} class="ibright" {{!}} [[{{{taskforce}}}]]
{{{taskforce}}} }}
+
}}
 
|-
 
|-
{{#if: {{{quadrant|}}}|
+
{{#if: {{{taskgroup|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Quadrant
+
{{!}} class="ibleft" {{!}} Task Group
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
+
{{!}} class="ibright" {{!}} [[{{{taskforce}}}#{{{taskgroup}}}|{{{taskgroup}}}]]
{{{quadrant}}} }}
+
}}
 
|-
 
|-
{{#if: {{{co|}}}{{{crew|}}}
+
{{#if: {{{squadron|}}}|
{{!}} colspan="2" style="text-align: center; color: #e5e5ed; background-color:#2a4667c9; text-align:center; font-size:8pt;padding: 6px" {{!}} '''Personnel'''
+
{{!}} class="ibleft" {{!}} Squadron
}}  
+
{{!}} class="ibright" {{!}} [[{{{squadron}}}]]
 +
}}
 +
|-
 +
{{#if: {{{mothership|}}}|
 +
{{!}} class="ibleft" {{!}} Mothership
 +
{{!}} class="ibright" {{!}} {{{mothership}}}
 +
}}
 +
|-
 +
{{#if: {{{homeport|}}}|
 +
{{!}} class="ibleft" {{!}} Home Port
 +
{{!}} class="ibright" {{!}} {{{homeport}}}
 +
}}
 +
|-
 +
{{#if: {{{role|}}}|
 +
{{!}} class="ibleft" {{!}} Role
 +
{{!}} class="ibright" {{!}} {{{role}}}
 +
}}
 +
|-
 +
{{#if: {{{co|}}}|
 +
{{!}} class="ibheader" colspan="2" {{!}} '''Key Personnel'''
 +
}}
 
|-
 
|-
 
{{#if: {{{co|}}}|
 
{{#if: {{{co|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Commanding Officer
+
{{!}} class="ibleft" {{!}} Commanding Officer
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
+
{{!}} class="ibright" {{!}} {{{co}}}
{{{co}}} }}
+
}}
 
|-
 
|-
 
{{#if: {{{xo|}}}|
 
{{#if: {{{xo|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Executive Officer
+
{{!}} class="ibleft" {{!}} Executive Officer
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
+
{{!}} class="ibright" {{!}} {{{xo}}}
{{{xo}}} }}
+
}}
 
|-
 
|-
 
{{#if: {{{dedication|}}}|
 
{{#if: {{{dedication|}}}|
{{!}} colspan="2" style="text-align: center; color: #e5e5ed; background-color:#2a4667c9; text-align:center; font-size:8pt;padding: 6px" {{!}} {{{dedication}}}
+
{{!}} class="ibheader" colspan="2" {{!}} {{{dedication}}}
}}  
+
}}
|-
+
|-  
|- class="infobox-link" style="border-radius-bottom-right: 13px; border-radius-bottom-left: 13px;"
+
| class="ibheader" colspan="2" style="border-bottom-right-radius: 13px; border-bottom-left-radius: 13px;" | [[Template:Starship]]
|colspan="2" style="border-bottom-right-radius: 13px; border-bottom-left-radius: 13px; text-align: center; color: #F67F00; font-size: 8pt; background-color:#2a4667c9; text-align:center;padding: 6px 0;" | [[Template:Starship]]
+
|}
|}</div>
+
</div>
<includeonly>{{TEST | |[[Category:Starships]][[Category:{{{class}}}-class]]}}</includeonly>
+
<includeonly>
<noinclude>
+
{{#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}}}}}
<br clear=all>
+
}}
 +
</includeonly><noinclude>
 +
==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
 
<pre>
 
<pre>
 
{{Starship
 
{{Starship
| name =  
+
| name = (just put the name here)
| prefix =  
+
| prefix = (SS, USS, IKS etc)
 
| image =  
 
| image =  
 
| 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 =  
+
| unit = (only for RPGs -- use Fourth Fleet Expeditionary Group)
| quadrant =  
+
| 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 =  
| dedication =  
+
| dedication = (image of ships dedication plague to be added here)
 
}}</pre>
 
}}</pre>
 
+
{{clear}}
[[Category:Infobox Templates]]
+
==Example==
 +
{{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 =
 +
| templatemode = nocats
 +
}}
 +
The following code produced the infobox to the right.
 +
<pre>
 +
{{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 =
 +
}}
 +
</pre>
 +
[[Category:Infobox Templates]]{{clear}}
 
</noinclude>
 
</noinclude>

Latest 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

Galaxyclass.png
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 =
}}