| This template is used on approximately 43,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value).
This template accepts these named parameters. Positional parameters are not accepted. The positional parameters are:
- <syntaxhighlight lang="wikitext" inline style="display: none;" />
|sectionn=– the value assigned to these enumerated parameters is a child infobox, typically one of:{{infobox ship/image}}{{infobox ship/career}}{{infobox ship/characteristics}}{{infobox ship/class_overview}}{{infobox ship/service record}}- other infoboxen that can be configured as child infoboxen;
{{Infobox NRHP}}with <syntaxhighlight lang="wikitext" inline style="display: none;" />|embed=yes
- see each template's documentation for parameters supported by those templates
- <syntaxhighlight lang="wikitext" inline style="display: none;" />
|labeln=– the values assigned to these enumerated parameters are labels for custom infobox entries;nfor <syntaxhighlight lang="wikitext" inline style="display: none;" />|labeln=and <syntaxhighlight lang="wikitext" inline style="display: none;" />|datan=must match - <syntaxhighlight lang="wikitext" inline style="display: none;" />
|datan=– the values assigned to these enumerated parameters are the data for custom infobox entries;nfor <syntaxhighlight lang="wikitext" inline style="display: none;" />|datan=and <syntaxhighlight lang="wikitext" inline style="display: none;" />|labeln=must match - <syntaxhighlight lang="wikitext" inline style="display: none;" />
|display_title=– controls display styling of the article titlenone– does no article-title stylingital– uses{{italic title}}to style the article title<article title with markup>– uses{{DISPLAYTITLE:<article title with markup>}}to style the article title- when empty or omitted, attempts to automatically style the article title
- <syntaxhighlight lang="wikitext" inline style="display: none;" />
|infobox_caption=– controls the infobox captionyes– uses the article title as the infobox caption. The ship's name will be auto-italicized when the article title has a recognized ship prefix (USS, MV, etc) or has a parenthetical disambiguator (year, hull number, etc) or is in the form <nationality> <ship type> <name> (with or without parenthetical disambiguator); this setting overridden by <syntaxhighlight lang="wikitext" inline style="display: none;" />|sclass=2nodab– formats the infobox caption in the same way as the disambiguated article title except that disambiguator(s) are not displayed; for article titles with a parenthetical disambiguator, the disambiguator is omitted from the caption; for article titles in the form <nationality> <ship type> <name> (with or without parenthetical disambiguator), setting <syntaxhighlight lang="wikitext" inline style="display: none;" />|infobox_caption=nodabwill display only <name>; this setting overridden by <syntaxhighlight lang="wikitext" inline style="display: none;" />|sclass=2<other text>– when the assigned value is other than the keywordsyesornodab, that value is used as the infobox caption. Infobox caption text formatting is the responsibility of the editor.- when omitted or present-but-empty: the infobox does not have a caption
- <syntaxhighlight lang="wikitext" inline style="display: none;" />
|sclass=– when set to2, forces unstyled title and also unstyled infobox caption (if enabled by <syntaxhighlight lang="wikitext" inline style="display: none;" />|infobox_caption=yesor <syntaxhighlight lang="wikitext" inline style="display: none;" />|infobox_caption=nodab); the name is taken from{{sclass2}}which creates links to theme-named-class_articles - <syntaxhighlight lang="wikitext" inline style="display: none;" />
|showerrs=– for use when auto-styling fails, may give a clue why it failed; requires <syntaxhighlight lang="wikitext" inline style="display: none;" />|infobox_caption=yesor <syntaxhighlight lang="wikitext" inline style="display: none;" />|infobox_caption=nodab; the article should probably not be saved with <syntaxhighlight lang="wikitext" inline style="display: none;" />|showerrs=yes
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.
|
|---|
|
<syntaxhighlight lang="wikitext"> Script error: No such module "Infobox ship". </syntaxhighlight> |
Submarines. Select show to expand.
|
|---|
|
<syntaxhighlight lang="wikitext"> Script error: No such module "Infobox ship".</syntaxhighlight> |
Age of sail. Select show to expand.
|
|---|
|
<syntaxhighlight lang="wikitext"> Script error: No such module "Infobox ship".</syntaxhighlight> |
Commercial vessels. Select show to expand.
|
|---|
|
<syntaxhighlight lang="wikitext"> Script error: No such module "Infobox ship".</syntaxhighlight> |
If none of the above fit, you may use this full setup:
Full code for individual ships. Select show to expand.
|
|---|
|
<syntaxhighlight lang="wikitext"> Script error: No such module "Infobox ship".</syntaxhighlight> |
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.
|
|---|
|
<syntaxhighlight lang="wikitext"> Script error: No such module "Infobox ship".</syntaxhighlight> |
Submarine classes. Select show to expand.
|
|---|
|
<syntaxhighlight lang="wikitext"> Script error: No such module "Infobox ship".</syntaxhighlight> |
Age of sail classes. Select show to expand.
|
|---|
|
<syntaxhighlight lang="wikitext"> Script error: No such module "Infobox ship".</syntaxhighlight> |
Commercial vessel classes. Select show to expand.
|
|---|
|
<syntaxhighlight lang="wikitext"> Script error: No such module "Infobox ship".</syntaxhighlight> |
If none of the above fit, you may use this full setup:
Full code for ship classes. Select show to expand.
|
|---|
|
<syntaxhighlight lang="wikitext"> Script error: No such module "Infobox ship".</syntaxhighlight> |