Difference between pages "Template:Home/Discord" and "Template:Starship"

Template page
< Template:Home(Difference between pages)
m
 
(Adding in type, unit, taskgroup, homeship etc etc. And some new linking as well!)
 
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: {{{class|}}}|
{{!}} class="ibleft" {{!}} Class & Type
{{!}} class="ibright" {{!}} [[{{{class}}} Class|''{{{class}}}''-class {{{type}}}]]
}}
|-
{{#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: {{{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:Starship]]
|}
</div>
<includeonly>
<includeonly>
<div class="card" id="discord">
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Starships]][[Category:{{{class}}}-class]][[Category:{{{taskforce}}}]]{{DEFAULTSORT:{{{name}}}}}
<div class="card-text">
}}
<h3>Looking for help?</h3>
</includeonly><noinclude>
<p>Drop by Bravo Fleet's official Discord server if you need help editing or using our wiki!</p>
==Starship==
</div>
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.
<div class="card-button">[https://discordapp.com/invite/89vGzVV Chat Now]</div>
===Notes===
</div>
*name - Just enter in the name, no need for formatting
</includeonly>
*class - Just type in the class name, the infobox will do the rest
<noinclude>
*co - This can be linked to a BFMS character page
 
*xo - This can be linked to a BFMS character page
{{/doc}}
*unit - Only used for RPGs. Use Fourth Fleet Expeditionary Group
*squadron - only use as applicable
<pre>
{{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)
}}</pre>
{{clear}}
==Example==
{{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 =
| templatemode = nocats
}}
The following code produced the infobox to the right.
<pre>
{{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 =
}}
</pre>
[[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

Galaxyclass.png
{{{displayName}}}
Information
Affiliation

Starfleet - sorta

Status

A good ship.

Type

Asskicker

Role

Imaginary

Template:Specification


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 =
}}