Template:Infobox/Ships: Difference between revisions

From Halopedia, the Halo wiki

mNo edit summary
m (Text replacement - "dummy edit" to "Category:Infobox templates")
Tag: Manual revert
 
(34 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{| class="infobox" style="width:260px; background:{{{BG|#334B5B}}}; color:{{{color1|#000}}}" cellspacing="0"
<includeonly>{| class="infobox" style="width:260px; background:{{{BG|#334B5B}}}; color:{{{color1|#000}}}" cellspacing="0"
! class="infoboxheading" colspan="2" style="background:{{{nameBG|transparent}}}; color:{{{color2|#fff}}}" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
! class="infoboxheading" colspan="2" style="background:{{{nameBG|transparent}}}; color:{{{color2|#fff}}}" | {{#if:{{{name|}}}|{{{name}}}|{{PAGETITLE}}}}
{{!}}-
|-
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
{{!}} class="infoboxmedia" colspan="2" style="background:{{{imageBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999}}}" {{!}} {{{image}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}}
{{!}} class="infoboxmedia" colspan="2" style="background:{{{imageBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999}}}" {{!}} {{{image}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}}
}}
}}
{{!}}-
|-
{{{modules|}}}
|-
<!--General class characteristics-->
<!--General class characteristics-->
{{#if:{{{hide-characteristics|}}}||
{{#if:{{{hide-characteristics|}}}||
{{!}} colspan="2" style="padding:0 !important" {{!}}
{{!}} colspan="2" style="padding:0 !important" {{!}}
{{!}} class="details-table {{#if:{{{nocollapse|}}}||mw-collapsible mw-collapsed}}" style="color:{{{color|inherit}}}; width:100%; padding:0; margin:0" cellspacing="0"
{{{!}} class="details-table {{#if:{{{nocollapse|}}}||mw-collapsible mw-collapsed}}" style="color:{{{color|inherit}}}; width:100%; padding:0; margin:0" cellspacing="0"
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#fff}}}; background:{{{sectionBG|#5D8AA8}}}" {{!}} {{{section3-title|General characteristics}}}
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#fff}}}; background:{{{sectionBG|#5D8AA8}}}" {{!}} {{{section3-title|General characteristics}}}
}}
}}
{{!}}-
|-
{{#if:{{{class|}}}|
{{#if:{{{class|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F3F3F3}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{class-title|Class}}}:
{{{class-title|Class}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F3F3F3}}}; 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|#F3F3F3}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{type-title|Type}}}:
{{{type-title|Type}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F3F3F3}}}; 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|#F3F3F3}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{length-title|Length}}}:
{{{length-title|Length}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F3F3F3}}}; 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|#F3F3F3}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{width-title|Width}}}:
{{{width-title|Width}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F3F3F3}}}; 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|#F3F3F3}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{height-title|Height}}}:
{{{height-title|Height}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F3F3F3}}}; 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|#F3F3F3}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{mass-title|Mass}}}:
{{{mass-title|Mass}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F3F3F3}}}; 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|#F3F3F3}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{power-title|Power plant}}}:
{{{power-title|Power plant}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F3F3F3}}}; 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|#F3F3F3}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{maneuver drive-title|[[Maneuver drive]]}}}:
{{{maneuver drive-title|[[Maneuver drive]]}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F3F3F3}}}; 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|#F3F3F3}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{slipspace drive-title|[[Slipspace drive]]}}}:
{{{slipspace drive-title|[[Slipspace drive]]}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F3F3F3}}}; 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|#F3F3F3}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{crew-title|Crew}}}:
{{{crew-title|Crew}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F3F3F3}}}; 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|#F3F3F3}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{complement-title|Complement}}}:
{{{complement-title|Complement}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F3F3F3}}}; 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|#F3F3F3}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{troops-title|Troops}}}:
{{{troops-title|Troops}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F3F3F3}}}; 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|#F3F3F3}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{hull-title|hull}}}:
{{{hull-title|Hull}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F3F3F3}}}; 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|#F3F3F3}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{shielding-title|Shielding}}}:
{{{shielding-title|Shielding}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F3F3F3}}}; 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|#F3F3F3}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{sensors-title|Sensors}}}:
{{{sensors-title|Sensors}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F3F3F3}}}; 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|#F3F3F3}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{ew-title|Electronic warfare}}}:
{{{ew-title|Electronic warfare}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F3F3F3}}}; 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|#F3F3F3}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{armaments-title|Armaments}}}:
{{{armaments-title|Armaments}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F3F3F3}}}; 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|#F3F3F3}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{aircraft-title|Air wing}}}:
{{{aircraft-title|Air wing}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F3F3F3}}}; 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|#F3F3F3}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{air facilities-title|Air facilities}}}:
{{{air facilities-title|Air facilities}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F3F3F3}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{air facilities}}}
{{{air facilities}}}
}}
}}
{{!}}-
|-
{{#if:{{{hide-characteristics|}}}||
{{!}}}
{{!}}}
{{!}}-
}}
|-
| class="infoboxfooter" colspan="2" | &nbsp;
| class="infoboxfooter" colspan="2" | &nbsp;
|}<includeonly>{{pagetitle|{{{pagename|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}}}} - {{{pagelabel|Ship class {{#ifeq:{{SUBPAGENAME}}|Silver|(Silver Timeline)}}}}}}}</includeonly><noinclude>{{Doc/Template}} [[Category:Infobox templates]]</noinclude>
|}</includeonly><noinclude>{{Doc/Template}} [[Category:Infobox templates]]</noinclude>

Latest revision as of 10:11, June 14, 2024

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.