Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:StarshipTest: Difference between revisions

Template page
No edit summary
McGig (talk | contribs)
No edit summary
Line 1: Line 1:
<div class="infobox">
{| class="ibtable" align="right" cellpadding="3" cellspacing="0"
{{#if: {{{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}}}'''''
}}
|-
| class="ibheader" colspan="2" | '''General Information'''
|-
{{#if: {{{registry|}}}|
{{!}} class="ibleft" {{!}} Registry
{{!}} class="ibright" {{!}} {{{registry}}}
}}
|-
{{#if: {{{displayclass|}}}|
{{!}} class="ibleft" {{!}} Class & Type
{{!}} class="ibright" {{!}} {{{displayclass}}}
}}
|-
{{#if: {{{affiliation|}}}|
{{!}} class="ibleft" {{!}} Affiliation
{{!}} class="ibright" {{!}} {{{affiliation}}}
}}
|-
{{#if: {{{status|}}}|
{{!}} class="ibleft" {{!}} Status
{{!}} class="ibright" {{!}} {{{status}}}
}}
|-
{{#if: {{{commission|}}}|
{{!}} class="ibleft" {{!}} Commissioned
{{!}} class="ibright" {{!}} {{{commission}}}
}}
|-
{{#if: {{{decommission|}}}|
{{!}} class="ibleft" {{!}} Decommissioned
{{!}} class="ibright" {{!}} {{{decommission}}}
}}
|-
{{#if: {{{destroyed|}}}|
{{!}} class="ibleft" {{!}} Destroyed
{{!}} class="ibright" {{!}} {{{destroyed}}}
}}
|-
| class="ibheader" colspan="2" | '''Assignment'''
|-
{{#if: {{{unit|}}}|
{{!}} class="ibleft" {{!}} Unit
{{!}} class="ibright" {{!}} {{{unit}}}
}}
|-
{{#if: {{{taskforce|}}}|
{{!}} class="ibleft" {{!}} Task Force
{{!}} class="ibright" {{!}} {{{taskforce}}}
}}
|-
{{#if: {{{taskgroup|}}}|
{{!}} class="ibleft" {{!}} Task Group
{{!}} class="ibright" {{!}} {{{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: {{{role|}}}|
{{!}} class="ibleft" {{!}} Role
{{!}} class="ibright" {{!}} {{{role}}}
}}
|-
{{#if: {{{quadrant|}}}|
{{!}} class="ibleft" {{!}} Quadrant
{{!}} class="ibright" {{!}} {{{quadrant}}}
}}
|-
{{#if: {{{co|}}}|
{{!}} class="ibheader" colspan="2" {{!}} '''Key Personnel'''
}}
|-
{{#if: {{{co|}}}|
{{!}} class="ibleft" {{!}} Commanding Officer
{{!}} class="ibright" {{!}} {{{co}}}
}}
|-
{{#if: {{{xo|}}}|
{{!}} class="ibleft" {{!}} Executive Officer
{{!}} class="ibright" {{!}} {{{xo}}}
}}
|-
{{#if: {{{dedication|}}}|
{{!}} class="ibheader" colspan="2" {{!}} {{{dedication}}}
}}
|-
| class="ibheader" colspan="2" style="border-bottom-right-radius: 13px; border-bottom-left-radius: 13px;" | [[Template:StarshipTest]]
|}
</div>
<includeonly>
<includeonly>
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Starships]][[Category:{{{class}}}-class]]{{DEFAULTSORT:{{{name}}}}}
<infobox theme="bravo">
<title source="name">
<default>{{PAGENAME}}</default><format>'''{{{prefix|}}}''' '''''{{{name|}}}'''''</format>
</title>
<data source="image" name="image"><format>{{{image|}}}</format></data>
<header>General Information</header>
<data source="registry"><label>Registry</label><format>{{{registry|}}}</format></data>
<data source="class"><label>Class & Type</label><format>[[{{{class}}} Class|''{{{class}}}''-class {{{type}}}]]</format></data>
<data source="affiliation"><label>Affiliation</label><format>{{{affiliation|}}}</format></data>
<data source="status"><label>Status</label><format>{{{status|}}}</format></data>
<data source="commission"><label>Commissioned</label><format>{{{commission|}}}</format></data>
<data source="decommission"><label>Decommissioned</label><format>{{{decommission|}}}</format></data>
<data source="destroyed"><label>Destroyed</label><format>{{{destroyed|}}}</format></data>
<header>{{#if:{{{unit|}}}{{{taskforce|}}}{{{squadron|}}}{{{division|}}}{{{mothership|}}}{{{homeport|}}}{{{role|}}}|Assignment}}</header>
<data source="unit"><label>Unit</label><format>[[{{{unit|}}}]]</format></data>
<data source="taskforce"><label>Task Force</label><format>[[{{{taskforce|}}}]]</format></data>
<data source="taskgroup"><label>Task Group</label><format>[[{{{taskforce|}}}#{{{taskgroup|}}}|{{{taskgroup|}}}]]</format></data>
<data source="squadron"><label>Squadron</label><format>[[{{{squadron|}}}]]</format></data>
<data source="division"><label>Division</label><format>{{#if:{{{squadron|}}}|[[{{{squadron|}}}#{{{division|}}}|{{{division|}}}]]|[[{{{division|}}}]]}}</format></data>
<data source="mothership"><label>Mothership</label><format>{{{mothership|}}}</format></data>
<data source="homeport"><label>Home Port</label><format>{{{homeport|}}}</format></data>
<data source="role"><label>Role</label><format>{{{role|}}}</format></data>
<header>{{#if:{{{co|}}}{{{xo|}}}|Key Personnel}}</header>
<data source="co"><label>Commanding Officer</label><format>{{{co|}}}</format></data>
<data source="xo"><label>Executive Officer</label><format>{{{xo|}}}</format></data>
<data source="dedication" name="image"><format>{{{dedication|}}}</format></data>
<data source="seal" name="image"><format>{{{seal|}}}</format></data>
<header name="footer">[[Template:Starship]]</header>
</infobox>
{{#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}}}}}{{#set: Squadron={{#if:{{{squadron|}}}|{{{squadron|}}}|{{{division|}}}}} }}{{#set: Class={{{class|}}} }}
}}
}}
</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 purpse of providing and uniform 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 new ship article 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
==Notes==
*class - Just type in the class name, which sets the category
*Name - Just enter the starship's name here. No need for formattig.
*displayclass - What will appear in the infobox, i.e. Odyssey-class explorer.
*Class - Just type in the class name. No need for formatting.
*co - This can be linked to a BFMS character page
*CO - This should be linked for your BFMS character page.
*xo - This can be linked to a BFMS character page  
*XO - This should be linked for your BFMS character page.
*unit - Only use for RPGs--use Fourth Fleet Expeditionary Group
*Unit - This is only to be used by RPGs and ships belonging to BFSS members. Leave this blank.
*squadron - only use as applicable
*Squadron - Only use this if your BFMS group command consists of 4 or more commands. Otherwise leave blank.
*Division - Use this if your BFMS group command consists of 3 or less commands. Otherwise leave blank.
 
==Code==
<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 54:
| registry =  
| registry =  
| class =  
| class =  
| displayclass =  
| 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 136: Line 61:
| destroyed =
| destroyed =
| 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 commands, RPGs are not in task forces)
| taskgroup = (only supply a task force for primary commands, RPGs are not in task forces)
| squadron = (Use this if your group command on BFMS consists of 4 or more commands)
| division = (Use this if your group commend on BFMS consists of 3 or less commands)
| 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)
| 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)
| quadrant =
| role =  
| co =  
| co =  
| xo =  
| xo =  
| dedication = (image of ships dedication plague to be added here)
| dedication = (image of ships dedication plague to be added here)
}}</pre>
| seal = (use any seal image you may have. If you don't leave blank)
{{clear}}
}}
</pre>
 
==Example==
==Example==
{{StarshipTest
{{Starship
| name = Galaxy
| name = Atlantis
| prefix = USS
| prefix = USS
| image = [[file:Galaxyclass.png]]
| image = [[File:Sovereign1.png]]
| registry = NCC-72000
| registry = NCC-90562
| class = Galaxy
| class = Sovereign
| displayclass = [[Galaxy Class|''Galaxy''-class explorer]]
| type = explorer
| affiliation = [[Starfleet]]
| affiliation = [[Starfleet]]
| status = Active
| status = Active
| commission = 2358
| commission = 2400
| decommission =  
| decommission =  
| destroyed =  
| destroyed =  
| unit =
| unit =  
| taskforce = Task Force 99
| role = Deterrence Explorer
| taskgroup = Task Group 66
| taskforce = Task Force 47
| squadron = Galaxy Squadron
| taskgroup = Task Group 13
| mothership =
| squadron = Atlantis Squadron
| division =
| mothership =  
| homeport =  
| homeport =  
| quadrant = Beta Quadrant
| co = [[bfms_char:26791|Captain Tikva Theodoras]]
| role = Flagship
| xo = [[bfms char:90753|Commander Vilo Kendris]]
| co = Captain Bob
| dedication = [[File:Atlantisplaque.png]]
| xo = Commander Stacey
| seal = [[File:Harpyflight.png]]
| templatemode = nocats
| templatemode = nocats
}}
}}
The following code produced the infobox to the right.
<pre>
<pre>
{{StarshipTest
{{Starship
| name = Galaxy
| name = Atlantis
| prefix = USS
| prefix = USS
| image = [[file:Galaxyclass.png]]
| image = [[File:Sovereign1.png]]
| registry = NCC-72000
| registry = NCC-90562
| class = Galaxy
| class = Sovereign
| displayclass = [[Galaxy Class|''Galaxy''-class explorer]]
| type = explorer
| affiliation = [[Starfleet]]
| affiliation = [[Starfleet]]
| status = Active
| status = Active
| commission = 2358
| commission = 2400
| decommission =  
| decommission =  
| destroyed =  
| destroyed =  
| unit =
| unit =  
| taskforce = Task Force 99
| role = Deterrence Explorer
| taskgroup = Task Group 66
| taskforce = Task Force 47
| squadron = Galaxy Squadron
| taskgroup = Task Group 13
| mothership =
| squadron = Atlantis Squadron
| division =
| mothership =  
| homeport =  
| homeport =  
| quadrant = Beta Quadrant
| co = [[bfms_char:26791|Captain Tikva Theodoras]]
| role = Flagship
| xo = [[bfms char:90753|Commander Vilo Kendris]]
| co = Captain Bob
| dedication = [[File:Atlantisplaque.png]]
| xo = Commander Stacey
| seal = [[File:Harpyflight.png]]
| templatemode = nocats
}}
}}
</pre>
</pre>
[[Category:Infobox Templates]]{{clear}}
 
 
{{clear}}
[[Category:Infobox Templates]]
</noinclude>
</noinclude>

Revision as of 03:29, 15 October 2025


Starship

This infobox exists for the purpse of providing and uniform 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 new ship article page. For rows with no values, simply leave the line blank and it will not render in the final infobox.

Notes

  • Name - Just enter the starship's name here. No need for formattig.
  • Class - Just type in the class name. No need for formatting.
  • CO - This should be linked for your BFMS character page.
  • XO - This should be linked for your BFMS character page.
  • Unit - This is only to be used by RPGs and ships belonging to BFSS members. Leave this blank.
  • Squadron - Only use this if your BFMS group command consists of 4 or more commands. Otherwise leave blank.
  • Division - Use this if your BFMS group command consists of 3 or less commands. Otherwise leave blank.

Code

{{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 commands, RPGs are not in task forces)
| taskgroup = (only supply a task force for primary commands, RPGs are not in task forces)
| squadron = (Use this if your group command on BFMS consists of 4 or more commands)
| division = (Use this if your group commend on BFMS consists of 3 or less commands)
| 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)
| seal = (use any seal image you may have. If you don't leave blank)
}}

Example



{{Starship
| name = Atlantis
| prefix = USS
| image = [[File:Sovereign1.png]]
| registry = NCC-90562
| class = Sovereign
| type = explorer
| affiliation = [[Starfleet]]
| status = Active
| commission = 2400
| decommission = 
| destroyed = 
| unit = 
| role = Deterrence Explorer
| taskforce = Task Force 47
| taskgroup = Task Group 13
| squadron = Atlantis Squadron
| division = 
| mothership = 
| homeport = 
| co = [[bfms_char:26791|Captain Tikva Theodoras]]
| xo = [[bfms char:90753|Commander Vilo Kendris]]
| dedication = [[File:Atlantisplaque.png]]
| seal = [[File:Harpyflight.png]]
| templatemode = nocats
}}