This template is part of the WikiProject Ships ship infobox. It adds a Characteristics section to the infobox. Each section, except Infobox Ship Begin, can be repeated as necessary to support multiple careers, multiple sets of characteristics, etc. The header of the Characteristics box can be hidden by setting its "Hide header=yes". This allows you to repeat certain fields by adding a second Characteristics box with a hidden header. Also, additional text can be added to the Characteristics box with "Header caption=". If you have any questions or comments, please ask User:TomTheHand.
- NB. {{Infobox ship begin}} contains code for automatically making the ship name display in italics in the article title. This will only work with titles beginning with one of the prefixes (HMS, SS, etc.) that are listed in the code of Template:Ship prefix. If this does not work on a particular article (after purging), then please either (1) add the prefix to Template:Ship prefix (provided it is a single "word"); or (2) italicize the title manually (outside the ship infobox templates) using {{Italic title}} or {{Italic title prefixed}}; or (3) italicize part of the title manually by adding the following example to the top of the article, outside any infobox:
{{DISPLAYTITLE:RV ''Oceania''}}
. (If putting it at the top of the article doesn't work, try putting it after the infobox instead; remember that the display title has to have all of the same characters as the actual title.)
This ship infobox supports a very large number of fields, including some specialty fields that will rarely be used. Some fields simply don't make sense in some cases. Some different sets of code have been prepared using only the most common fields. Select the most appropriate set below and copy and paste the entire code to the top of a ship article, then fill in as many fields as possible. Empty fields should generally be kept so that a future editor can fill them in unless they make no sense for the ship in question.
The "Full" code contains every field the template supports. If you want, you can copy one of the simplified sets of code and add a few fields from the "Full" code.
If you have ideas for improvements or would like to add brand new fields to these templates, please post on Template talk:Infobox ship begin to discuss the changes and how they should be implemented.
Usage
Code for individual ships
For infoboxes of individual ships, please copy the appropriate example for the type of ship:
Warships (except submarines). Select show to expand. |
---|
|
Submarines. Select show to expand. |
---|
|
Age of sail. Select show to expand. |
---|
|
Commercial vessels. Select show to expand. |
---|
|
If none of the above fit, you may use this full setup:
Full code for individual ships. Select show to expand. |
---|
|
Code for ship classes
For infoboxes of ship classes, please copy the appropriate example for the type of ship class:
Warship classes (except submarines). Select show to expand. |
---|
|
Submarine classes. Select show to expand. |
---|
|
Age of sail classes. Select show to expand. |
---|
|
Commercial vessel classes. Select show to expand. |
---|
|
If none of the above fit, you may use this full setup:
Full code for ship classes. Select show to expand. |
---|
|
Parameters
Most fields are self-explanatory, but here are some tips (see the usage guide for a complete explanation of all parameter fields):
- Ship image If your article does not have an image in this field, the ship will automatically be listed at the hidden category Category:Ship infoboxes without an image. Editors can use the category to easily see a list of infoboxes where no image is attached and work to find pictures.
- Ship caption, the caption for the ship's picture, should be left blank if no extra information about the picture is available; don't just fill in the ship's name.
- Ship country is necessary when a ship served under multiple countries, but not really necessary otherwise.
- Ship class should include both the class and the type of ship. For example, Balao-class diesel-electric submarine provides complete information. It can be replaced with Ship type, which displays as "Type:", for ships that aren't members of a class.
- Ship name is necessary when a ship served under multiple names, but not really necessary otherwise.
- Ship fate and Ship status generally shouldn't both be filled in. Whichever one sounds most appropriate for the situation should be filled in. Use Ship fate when the ship sank or was scrapped, and use Ship status when the ship is active, kept in reserve, or currently a museum.
- Ship displacement and Ship tonnage are not the same thing. Displacement is the mass of a ship in a particular condition, like when it's fully loaded for battle. It is generally used for military vessels. Tonnage is a measurement of the cargo capacity of a vessel and isn't exactly correlated with weight: a ship of a particular tonnage will have a different mass depending on whether it's full of grain or iron. Entries in either parameter need to specifically identify the units in which they are being measured, such as long tons, metric tons or tonnes (unacceptable in articles using American English, use metric tons) or gross register tons or whatever. If possible, use templates such as {{GT}}, {{NetT}} and {{DWT}}.
Alternate spellings
Some fields provide alternate spellings and should never both be filled in:
- "Ship honors" and "Ship honours"
- "Ship draft" and "Ship draught"
- "Ship armor" and "Ship armour"
Removing extra fields
It's generally a good idea not to remove fields, because another editor might be able to provide the information later. However, in the case of mutually exclusive fields, like "Ship armor" and "Ship armour", the unused field can be removed if desired. Also, if a section is repeated (to show multiple periods in commission, for example), fields that are inappropriate to duplicate can be removed if desired. Keep in mind that a ship from the Age of Sail would not need the fields for aircraft or electronic warfare instruments and in opposite an aircraft carrier would not need the fields for a sail plan. A surface ship would not require fields for submarines etc.
Special capabilities
Repeating sections
This infobox allows you to repeat sections. To repeat, just make a copy of the section to be repeated. You can repeat the Image, Career, or Characteristics sections. Here is an example, with extra fields removed for clarity:
<tr>
<th height="30" style="background-color: #B0C4DE; text-align: center; vertical-align: middle; font-size: 110%;">Career (US)</th>
<th style="background-color: #B0C4DE; text-align: center; vertical-align: middle; font-size: 110%;">100x35px</th>
</tr><tr valign="top"><td>Name:</td><td>
USS Bang (SS-385)</td></tr><tr valign="top"><td>Laid down:</td><td>
30 April 1943</td></tr><tr valign="top"><td>Launched:</td><td>
30 August 1943</td></tr><tr valign="top"><td>Commissioned:</td><td>
4 December 1943</td></tr><tr valign="top"><td>Decommissioned:</td><td>
1 October 1972</td></tr><tr valign="top"><td>Struck:</td><td>
18 November 1974</td></tr><tr valign="top"><td>Fate:</td><td>
Transferred to Spain, 1 October 1972</td></tr>
<tr>
<th height="30" style="background-color: #B0C4DE; text-align: center; vertical-align: middle; font-size: 110%;">Career (Spain)</th>
<th style="background-color: #B0C4DE; text-align: center; vertical-align: middle; font-size: 110%;">100x35px</th>
</tr><tr valign="top"><td>Name:</td><td>
SPS Cosme Garcia (S34)</td></tr><tr valign="top"><td>Acquired:</td><td>
1 October 1972</td></tr><tr valign="top"><td>Fate:</td><td>
scrapped 1983</td></tr>
<tr>
<th colspan="2" height="30" style="background-color: #B0C4DE; text-align: center; vertical-align: middle; font-size: 110%;">General characteristics </th></tr><tr valign="top"><td>Displacement:</td><td>
1,526 tons surfaced |
{|{{Infobox ship begin |infobox caption=}} {{Infobox ship image | Ship image=[[File:Uss bang.jpg|center|300px]] | Ship caption= }} {{Infobox ship career | Ship country=US | Ship flag={{USN flag|1972}} | Ship name=USS ''Bang'' (SS-385) | Ship laid down=30 April 1943 | Ship launched=30 August 1943 | Ship commissioned=4 December 1943 | Ship decommissioned=1 October 1972 | Ship struck=18 November 1974 | Ship fate=Transferred to Spain, 1 October 1972 }} {{Infobox ship career | Ship country=Spain | Ship flag={{shipboxflag|Spain}} | Ship name=SPS ''Cosme Garcia'' (S34) | Ship acquired=1 October 1972 | Ship fate=scrapped 1983 }} {{Infobox ship characteristics | Header caption= | Ship displacement=1,526 tons surfaced<br>2,391 tons | Ship length=311 ft 8 in (95 m) | Ship beam=27 ft 3 in (8.3 m) | Ship complement=66 }} |}
Hiding section headers
It is possible to hide the headers for the Career and General Characteristics sections, in order to repeat fields. For example, a ship might have been commissioned, decommissioned, recommissioned, and decommissioned again. To have the second commission and decommission dates, use additional a second Infobox ship career template with its header hidden, like this:
300px USS Wisconsin at sea, circa 1990 <tr> <th height="30" style="background-color: #B0C4DE; text-align: center; vertical-align: middle; font-size: 110%;">Career </th> <th style="background-color: #B0C4DE; text-align: center; vertical-align: middle; font-size: 110%;">100x35px</th> </tr><tr valign="top"><td>Laid down:</td><td> 25 January 1941</td></tr><tr valign="top"><td>Launched:</td><td> 7 December 1943</td></tr><tr valign="top"><td>Commissioned:</td><td> 16 April 1944</td></tr><tr valign="top"><td>Decommissioned:</td><td> 1 July 1948</td></tr> <tr valign="top"><td>Recommissioned:</td><td> 3 March 1951</td></tr><tr valign="top"><td>Decommissioned:</td><td> 8 March 1958</td></tr> <tr valign="top"><td>Recommissioned:</td><td> 1 August 1986</td></tr><tr valign="top"><td>Decommissioned:</td><td> 30 September 1991</td></tr><tr valign="top"><td>Struck:</td><td> 17 March 2006</td></tr><tr valign="top"><td>Fate:</td><td> Museum ship</td></tr> <tr> <th colspan="2" height="30" style="background-color: #B0C4DE; text-align: center; vertical-align: middle; font-size: 110%;">General characteristics (1943)</th></tr><tr valign="top"><td>Displacement:</td><td> 45,000 tons</td></tr><tr valign="top"><td>Length:</td><td> 887.2 ft (270 m)</td></tr><tr valign="top"><td>Beam:</td><td> 108.2 ft (33 m)</td></tr><tr valign="top"><td>Draft:</td><td> 28.9 ft (8.8 m)</td></tr><tr valign="top"><td>Speed:</td><td> 33 knots (61 km/h)</td></tr><tr valign="top"><td>Complement:</td><td> 1,921 officers and men</td></tr><tr valign="top"><td>Armament:</td><td> big guns</td></tr> |
{|{{Infobox ship begin |infobox caption=}} {{Infobox ship image |Ship image=[[File:Uss wisconsin bb.jpg|300px]] |Ship caption=USS ''Wisconsin'' at sea, circa 1990 }} {{Infobox ship career | Hide header= | Ship caption=(US) | Ship flag={{USN flag|1992}} | Ship laid down=25 January 1941 | Ship launched=7 December 1943 | Ship commissioned=16 April 1944 | Ship decommissioned=1 July 1948 }} {{Infobox ship career | Hide header=yes | Ship recommissioned=3 March 1951 | Ship decommissioned=8 March 1958 }} {{Infobox ship career | Hide header=yes | Ship recommissioned=1 August 1986 | Ship decommissioned=30 September 1991 | Ship struck=17 March 2006 | Ship fate=[[Museum ship]] }} {{Infobox ship characteristics | Hide header= | Header caption=(1943) | Ship displacement=45,000 tons | Ship length=887.2 ft (270 m) | Ship beam=108.2 ft (33 m) | Ship draft=28.9 ft (8.8 m) | Ship speed=33 knots (61 km/h) | Ship complement=1,921 officers and men | Ship armament=big guns }} |}
The General Characteristics section can be given a caption using the Header caption field. See the USS Wisconsin example above, which has a header caption of (1943) to indicate that the characteristics provided are as of 1943.
Custom fields
File:Uss west virginia bb.jpg West Virginia in San Francisco Bay, circa 1934. <tr> <th height="30" style="background-color: #B0C4DE; text-align: center; vertical-align: middle; font-size: 110%;">Career </th> <th style="background-color: #B0C4DE; text-align: center; vertical-align: middle; font-size: 110%;">100x35px</th> </tr><tr valign="top"><td>Ordered:</td><td> 5 December 1916</td></tr><tr valign="top"><td>Laid down:</td><td> 12 April 1920</td></tr><tr valign="top"><td>Launched:</td><td> 17 November 1921</td></tr><tr valign="top"><td>Commissioned:</td><td> 1 December 1923</td></tr> | |
Sunk: | 7 December 1941 |
Raised: | 17 May 1942
<tr valign="top"><td>Decommissioned:</td><td> 9 January 1947</td></tr><tr valign="top"><td>Struck:</td><td> 1 March 1959</td></tr><tr valign="top"><td>Nickname:</td><td> "Wee Vee"</td></tr><tr valign="top"><td>Fate:</td><td> sold for scrap</td></tr> <tr> <th colspan="2" height="30" style="background-color: #B0C4DE; text-align: center; vertical-align: middle; font-size: 110%;">General characteristics </th></tr><tr valign="top"><td>Displacement:</td><td> 33,590 tons</td></tr><tr valign="top"><td>Length:</td><td> 624 ft (190 m)</td></tr><tr valign="top"><td>Beam:</td><td> 97.3 ft (29.6 m)</td></tr><tr valign="top"><td>Draft:</td><td> 30.5 ft (9.3 m)</td></tr><tr valign="top"><td>Speed:</td><td> 21.0 knots (39 km/h)</td></tr><tr valign="top"><td>Complement:</td><td> 1,407 officers and men</td></tr><tr valign="top"><td>Armament:</td><td> big guns</td></tr> |
It is possible to add custom fields to the infobox using standard Wiki table syntax. This is not encouraged, because infoboxes are intended to standardize the appearance of ship articles, but it can be done if needed. See the below example, where "Sunk:" and "Raised:" fields are added to the ship's career:
{|{{Infobox ship begin |infobox caption=}} {{Infobox ship image |Ship image=[[File:Uss west virginia bb.jpg|300px|]] |Ship caption=''West Virginia'' in San Francisco Bay, circa 1934. }} {{Infobox ship career | Hide header= | Ship caption=US | Ship flag={{USN flag|1947}} | Ship ordered=5 December 1916 | Ship laid down=12 April 1920 | Ship launched=17 November 1921 | Ship commissioned=1 December 1923 }} |- | Sunk: |7 December 1941 |- |Raised: |17 May 1942 {{Infobox ship career | Hide header=yes | Ship decommissioned=9 January 1947 | Ship fate=sold for scrap | Ship struck=1 March 1959 | Ship nickname="Wee Vee" }} {{Infobox ship characteristics | Hide header= | Ship displacement=33,590 tons | Ship length=624 ft (190 m) | Ship beam=97.3 ft (29.6 m) | Ship draft=30.5 ft (9.3 m) | Ship speed=21.0 knots (39 km/h) | Ship complement=1,407 officers and men | Ship armament=big guns }} |}
TemplateData
No description.
Parameter | Description | Type | Default | Status | |
---|---|---|---|---|---|
infobox caption | Infobox caption | Caption for the infobox. Set to yes to use formatted article title; set to nodab to use formatted article title without parenthetical disambiguator; all other values become infobox caption. | string | empty | optional |
See also
-
{{WikiProject Ships|needs-infobox=y}}
TemplateData
Infobox ship characteristics/doc
Ship characteristics, to be used with {{Infobox ship begin}}
Parameter | Description | Type | Default | Status | |
---|---|---|---|---|---|
Hide header | Hide header | string | empty | optional | |
Header caption | Header caption | string | empty | optional | |
Ship class | Ship class | string | empty | optional | |
Ship type | Ship type | string | empty | optional | |
Ship tonnage | Ship tonnage | string | empty | optional | |
Ship displacement | Ship displacement | string | empty | optional | |
Ship tons burthen | Ship tons burthen | string | empty | optional | |
Ship length | Ship length | string | empty | optional | |
Ship beam | Ship beam | string | empty | optional | |
Ship height | Ship height | string | empty | optional | |
Ship draught | Ship draught | string | empty | optional | |
Ship draft | Ship draft | string | empty | optional | |
Ship depth | Ship depth | string | empty | optional | |
Ship hold depth | Ship hold depth | string | empty | optional | |
Ship decks | Ship decks | string | empty | optional | |
Ship deck clearance | Ship deck clearance | string | empty | optional | |
Ship ramps | Ship ramps | string | empty | optional | |
Ship ice class | Ship ice class | string | empty | optional | |
Ship power | Ship power | string | empty | optional | |
Ship propulsion | Ship propulsion | string | empty | optional | |
Ship sail plan | Ship sail plan | string | empty | optional | |
Ship speed | Ship speed | string | empty | optional | |
Ship range | Ship range | string | empty | optional | |
Ship endurance | Ship endurance | string | empty | optional | |
Ship test depth | Ship test depth | string | empty | optional | |
Ship boats | Ship boats | string | empty | optional | |
Ship capacity | Ship capacity | string | empty | optional | |
Ship troops | Ship troops | string | empty | optional | |
Ship complement | Ship complement | string | empty | optional | |
Ship crew | Ship crew | string | empty | optional | |
Ship time to activate | Ship time to activate | string | empty | optional | |
Ship sensors | Ship sensors | string | empty | optional | |
Ship EW | Ship EW | string | empty | optional | |
Ship armament | Ship armament | string | empty | optional | |
Ship armour | Ship armour | string | empty | optional | |
Ship armor | Ship armor | string | empty | optional | |
Ship aircraft | Ship aircraft | string | empty | optional | |
Ship aircraft facilities | Ship aircraft facilities | string | empty | optional | |
Ship motto | Ship motto | string | empty | optional | |
Ship nickname | Ship nickname | string | empty | optional | |
Ship honours | Ship honours | string | empty | optional | |
Ship honors | Ship honors | string | empty | optional | |
Ship notes | Ship notes | string | empty | optional | |
Ship badge | Ship badge | string | empty | optional |