Template:Infobox/Ships: Difference between revisions

From Halopedia, the Halo wiki

m (Text replacement - "}}}}} {{!}}-" to "}}} }} |-")
m (Text replacement - "{{!}}-}}" to "}} |-")
Line 18: Line 18:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{class}}}
{{{class}}}
{{!}}-}}
}}
|-
{{#if:{{{type|}}}|
{{#if:{{{type|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
Line 24: Line 25:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{type}}}
{{{type}}}
{{!}}-}}
}}
|-
{{#if:{{{length|}}}|
{{#if:{{{length|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
Line 30: Line 32:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{length}}}
{{{length}}}
{{!}}-}}
}}
|-
{{#if:{{{width|}}}|
{{#if:{{{width|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
Line 36: Line 39:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{width}}}
{{{width}}}
{{!}}-}}
}}
|-
{{#if:{{{height|}}}|
{{#if:{{{height|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
Line 42: Line 46:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{height}}}
{{{height}}}
{{!}}-}}
}}
|-
{{#if:{{{mass|}}}|
{{#if:{{{mass|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
Line 48: Line 53:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{mass}}}
{{{mass}}}
{{!}}-}}
}}
|-
{{#if:{{{power|}}}|
{{#if:{{{power|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
Line 54: Line 60:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{power}}}
{{{power}}}
{{!}}-}}
}}
|-
{{#if:{{{maneuver drive|}}}|
{{#if:{{{maneuver drive|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
Line 60: Line 67:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{maneuver drive}}}
{{{maneuver drive}}}
{{!}}-}}
}}
|-
{{#if:{{{slipspace drive|}}}|
{{#if:{{{slipspace drive|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
Line 66: Line 74:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{slipspace drive}}}
{{{slipspace drive}}}
{{!}}-}}
}}
|-
{{#if:{{{crew|}}}|
{{#if:{{{crew|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
Line 72: Line 81:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{crew}}}
{{{crew}}}
{{!}}-}}
}}
|-
{{#if:{{{complement|}}}|
{{#if:{{{complement|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
Line 78: Line 88:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{complement}}}
{{{complement}}}
{{!}}-}}
}}
|-
{{#if:{{{troops|}}}|
{{#if:{{{troops|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
Line 84: Line 95:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{troops}}}
{{{troops}}}
{{!}}-}}
}}
|-
{{#if:{{{hull|}}}|
{{#if:{{{hull|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
Line 90: Line 102:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{hull}}}
{{{hull}}}
{{!}}-}}
}}
|-
{{#if:{{{shielding|}}}|
{{#if:{{{shielding|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
Line 96: Line 109:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{shielding}}}
{{{shielding}}}
{{!}}-}}
}}
|-
{{#if:{{{sensors|}}}|
{{#if:{{{sensors|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
Line 102: Line 116:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{sensors}}}
{{{sensors}}}
{{!}}-}}
}}
|-
{{#if:{{{ew|}}}|
{{#if:{{{ew|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
Line 108: Line 123:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{ew}}}
{{{ew}}}
{{!}}-}}
}}
|-
{{#if:{{{armaments|}}}|
{{#if:{{{armaments|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
Line 114: Line 130:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{armaments}}}
{{{armaments}}}
{{!}}-}}
}}
|-
{{#if:{{{aircraft|}}}|
{{#if:{{{aircraft|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
Line 120: Line 137:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{aircraft}}}
{{{aircraft}}}
{{!}}-}}
}}
|-
{{#if:{{{air facilities|}}}|
{{#if:{{{air facilities|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
Line 126: Line 144:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{air facilities}}}
{{{air facilities}}}
{{!}}-}}
}}
|-
{{!}}}
{{!}}}
|-
|-
| class="infoboxfooter" colspan="2" |  
| class="infoboxfooter" colspan="2" |  
|}<includeonly>{{pagetitle|{{{pagename|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}}}} - {{{pagelabel|Ship class {{#ifeq:{{SUBPAGENAME}}|Silver|(Silver Timeline)}}}}}}}</includeonly><noinclude>{{Doc/Template}} [[Category:Infobox templates]]</noinclude>
|}<includeonly>{{pagetitle|{{{pagename|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}}}} - {{{pagelabel|Ship class {{#ifeq:{{SUBPAGENAME}}|Silver|(Silver Timeline)}}}}}}}</includeonly><noinclude>{{Doc/Template}} [[Category:Infobox templates]]</noinclude>

Revision as of 09:58, October 18, 2022

vde
Template Documentation

Description

This template is used to insert an infobox for use on articles about both individual spacecraft and spacecraft classes. The template is modular, and can be divided into three basic sections;

  • The universal template parameters - things that can be used on both individual ships and ship class articles
  • The individual ship career characteristics
  • The ship class characteristics

Usage

Syntax

To insert this template onto a page, place the following wikitext onto the article.

{{Infobox/Ships}}

Parameters

The following parameters are used on this template.

{{Infobox/Ships
|name            = <!--The name of the ship-->
|image           = <!--The image for the box - should be capped at 300px for most cases-->
|caption         = 
|modules         = <!--/Individual or /Class sub-modules should be placed here-->

|hide-characteristics=<!--leave blank unless you want to hide the characteristics section header-->
|nocollapse      = <!--leave blank unless you want to disable the show/hide functionality-->
|type            = 
|length          = 
|width           = 
|height          = 
|mass            = 
|power           = 
|maneuver drive  = 
|slipspace drive = 
|crew            = <!--Describes crew counts only-->
|complement      = 
|troops          = <!--Describes on-boarded Marine, Army etc ground troop forces-->
|hull            = <!--Describes hull plate material-->
|shielding       = <!--Describes shielding-->
|sensors         = <!--Describes sensors and whatnot-->
|ew              = <!--Describes electronic warfare capabilities-->
|armaments       = <!--Describes weapons etc-->
|aircraft        = <!--Describes embarked aircraft and dropships-->
|air facilities  = <!--Describes hangars and whatnot-->
}}

Individual ship parameters

When writing an article about a single spacecraft, the following code can be inserted between the |caption= and |class= parameters. This set of parameters can be used multiple times, should the ship have changed hands throughout its service lifetime.

{{Infobox/Ships/Individual
|country              = <!--The empire, state or nation this vessel is within service of, not the military (unless no appreciable distinction exists)-->
|country flag         = <!--For use with [[Template:Icon]]-->
|name                 = <!--The ship's name, sans any prefixes-->
|class                = <!--The ship's class-->
|namesake             = <!--The ship's namesake, if any-->
|identification       = <!--The ship's hull code-->
|operator             = <!--The armed forces/branch that uses this ship-->
|manufacturer         = 
|architect            = 
|laid down            = 
|launched             = 
|commissioned         = 
|decommissioned       = 
|fate                 = <!--The ultimate fate of the ship, if it is no longer in present service-->
|status               = <!--The current status of the ship if it is still active, and one is known-->
|captains             = 
|ai                   = 
|motto                = 
|badge                = 
}}

Ship class parameters

When writing an article about a class of spacecraft, use the following code inserted between the |caption= and |class= parameters.

{{Infobox/Ships/Class
|hide-class           = 
|class identification = <!--The hull code of the class-->
|class operator       = <!--The navy/navies who use this ship class-->
|class manufacturer   = <!--Who makes the ship class-->
|class architect      = <!--The naval architect(s) for the class-->
|class built          = <!--How many ships of this class were constructed-->
|class in service     = <!--The years/ages in which ships of this class were in service-->
}}

Example

Here is an example of what the template will output, when used:


Dependencies

Template dependencies

This template does not depend on any other templates. It does require the usage of the following associated templates:

Extension dependencies

This template does not require any extensions.

Dependent templates

No following templates depend upon this one.