Template:Infobox/Ships: Difference between revisions
From Halopedia, the Halo wiki
m (Text replacement - "{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}" to "{{#if:{{{name|}}}|{{{name}}}|{{PAGETITLE}}}}") |
m (Text replacement - "F2F3F4" to "F0F0F0") |
||
Line 16: | Line 16: | ||
|- | |- | ||
{{#if:{{{class|}}}| | {{#if:{{{class|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|# | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{class-title|Class}}}: | {{{class-title|Class}}}: | ||
{{!}} class="infoboxcell" style="background:{{{fieldBG|# | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{class}}} | {{{class}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{type|}}}| | {{#if:{{{type|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|# | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{type-title|Type}}}: | {{{type-title|Type}}}: | ||
{{!}} class="infoboxcell" style="background:{{{fieldBG|# | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{type}}} | {{{type}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{length|}}}| | {{#if:{{{length|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|# | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{length-title|Length}}}: | {{{length-title|Length}}}: | ||
{{!}} class="infoboxcell" style="background:{{{fieldBG|# | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{length}}} | {{{length}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{width|}}}| | {{#if:{{{width|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|# | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{width-title|Width}}}: | {{{width-title|Width}}}: | ||
{{!}} class="infoboxcell" style="background:{{{fieldBG|# | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{width}}} | {{{width}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{height|}}}| | {{#if:{{{height|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|# | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{height-title|Height}}}: | {{{height-title|Height}}}: | ||
{{!}} class="infoboxcell" style="background:{{{fieldBG|# | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{height}}} | {{{height}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{mass|}}}| | {{#if:{{{mass|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|# | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{mass-title|Mass}}}: | {{{mass-title|Mass}}}: | ||
{{!}} class="infoboxcell" style="background:{{{fieldBG|# | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{mass}}} | {{{mass}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{power|}}}| | {{#if:{{{power|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|# | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{power-title|Power plant}}}: | {{{power-title|Power plant}}}: | ||
{{!}} class="infoboxcell" style="background:{{{fieldBG|# | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{power}}} | {{{power}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{maneuver drive|}}}| | {{#if:{{{maneuver drive|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|# | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{maneuver drive-title|[[Maneuver drive]]}}}: | {{{maneuver drive-title|[[Maneuver drive]]}}}: | ||
{{!}} class="infoboxcell" style="background:{{{fieldBG|# | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{maneuver drive}}} | {{{maneuver drive}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{slipspace drive|}}}| | {{#if:{{{slipspace drive|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|# | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{slipspace drive-title|[[Slipspace drive]]}}}: | {{{slipspace drive-title|[[Slipspace drive]]}}}: | ||
{{!}} class="infoboxcell" style="background:{{{fieldBG|# | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{slipspace drive}}} | {{{slipspace drive}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{crew|}}}| | {{#if:{{{crew|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|# | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{crew-title|Crew}}}: | {{{crew-title|Crew}}}: | ||
{{!}} class="infoboxcell" style="background:{{{fieldBG|# | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{crew}}} | {{{crew}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{complement|}}}| | {{#if:{{{complement|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|# | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{complement-title|Complement}}}: | {{{complement-title|Complement}}}: | ||
{{!}} class="infoboxcell" style="background:{{{fieldBG|# | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{complement}}} | {{{complement}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{troops|}}}| | {{#if:{{{troops|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|# | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{troops-title|Troops}}}: | {{{troops-title|Troops}}}: | ||
{{!}} class="infoboxcell" style="background:{{{fieldBG|# | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{troops}}} | {{{troops}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{hull|}}}| | {{#if:{{{hull|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|# | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{hull-title|Hull}}}: | {{{hull-title|Hull}}}: | ||
{{!}} class="infoboxcell" style="background:{{{fieldBG|# | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{hull}}} | {{{hull}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{shielding|}}}| | {{#if:{{{shielding|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|# | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{shielding-title|Shielding}}}: | {{{shielding-title|Shielding}}}: | ||
{{!}} class="infoboxcell" style="background:{{{fieldBG|# | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{shielding}}} | {{{shielding}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{sensors|}}}| | {{#if:{{{sensors|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|# | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{sensors-title|Sensors}}}: | {{{sensors-title|Sensors}}}: | ||
{{!}} class="infoboxcell" style="background:{{{fieldBG|# | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{sensors}}} | {{{sensors}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{ew|}}}| | {{#if:{{{ew|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|# | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{ew-title|Electronic warfare}}}: | {{{ew-title|Electronic warfare}}}: | ||
{{!}} class="infoboxcell" style="background:{{{fieldBG|# | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{ew}}} | {{{ew}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{armaments|}}}| | {{#if:{{{armaments|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|# | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{armaments-title|Armaments}}}: | {{{armaments-title|Armaments}}}: | ||
{{!}} class="infoboxcell" style="background:{{{fieldBG|# | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{armaments}}} | {{{armaments}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{aircraft|}}}| | {{#if:{{{aircraft|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|# | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{aircraft-title|Air wing}}}: | {{{aircraft-title|Air wing}}}: | ||
{{!}} class="infoboxcell" style="background:{{{fieldBG|# | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{aircraft}}} | {{{aircraft}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{air facilities|}}}| | {{#if:{{{air facilities|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|# | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{air facilities-title|Air facilities}}}: | {{{air facilities-title|Air facilities}}}: | ||
{{!}} class="infoboxcell" style="background:{{{fieldBG|# | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{air facilities}}} | {{{air facilities}}} | ||
}} | }} |
Revision as of 09:28, June 2, 2024
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.