Template:Ship-info: Difference between revisions
Jump to navigation
Jump to search
fix link |
m Restyle legacy ship sidebar to tf dark house style (tf-cbox); note Infobox-chapter as current |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly><templatestyles src="Infobox-chapter/styles.css" /> | ||
{| class="sidebar tf-cbox" | |||
| class=" | |||
|- | |- | ||
| class=" | | class="tf-cbox-name tf-b-default" colspan="2" | '''{{{name|{{PAGENAME}}}}}''' | ||
| {{sidebar image|{{{image}}}}} | |- | ||
| [[File:TenthFleet.png]] | | class="tf-cbox-img" colspan="2" | {{#if:{{{image|}}}|{{sidebar image|{{{image}}}}}|[[File:TenthFleet.png|250px]]}} | ||
}} | {{#if:{{{hcn|{{{ncc|}}}}}}| | ||
{{!}}- | |||
{{#if: {{{ | {{!}} class="tf-cbox-l" {{!}} '''HCN:''' | ||
{{ | {{!}} class="tf-cbox-r" {{!}} {{{hcn|{{{ncc|}}}}}}}} | ||
{{#if:{{{class|}}}| | |||
| | {{!}}- | ||
{{ | {{!}} class="tf-cbox-l" {{!}} '''Class:''' | ||
{{!}} class=" | {{!}} class="tf-cbox-r" {{!}} ''[[{{{class}}}-class|{{{class}}}]]''}} | ||
{{!}} class=" | {{#if:{{{type|}}}| | ||
{{!}}- | |||
{{#if: {{{class|}}}| | {{!}} class="tf-cbox-l" {{!}} '''Type:''' | ||
{{!}} class=" | {{!}} class="tf-cbox-r" {{!}} [[{{{type}}}]]}} | ||
{{!}} class=" | {{#if:{{{affiliation|}}}| | ||
{{!}}- | |||
{{#if: {{{type|}}}| | {{!}} class="tf-cbox-l" {{!}} '''Affiliation:''' | ||
{{!}} class=" | {{!}} class="tf-cbox-r" {{!}} {{{affiliation}}}}} | ||
{{!}} class=" | {{#if:{{{launched|}}}| | ||
{{!}}- | |||
{{#if: {{{affiliation|}}}| | {{!}} class="tf-cbox-l" {{!}} '''Launched:''' | ||
{{!}} class=" | {{!}} class="tf-cbox-r" {{!}} {{{launched}}}}} | ||
{{!}} class=" | {{#if:{{{armaments|}}}| | ||
{{!}}- | |||
{{#if: {{{launched|}}}| | {{!}} class="tf-cbox-l" {{!}} '''Armaments:''' | ||
{{!}} class=" | {{!}} class="tf-cbox-r" {{!}} {{{armaments}}}}} | ||
{{!}} class=" | {{#if:{{{status|}}}| | ||
{{!}}- | |||
{{!}} class="tf-cbox-l" {{!}} '''Status:''' | |||
{{#if: {{{armaments|}}}| | {{!}} class="tf-cbox-r" {{!}} {{{status}}}}} | ||
{{!}} class=" | {{#if:{{{image2|}}}| | ||
{{!}} class=" | {{!}}- | ||
{{!}} class="tf-cbox-img" colspan="2" {{!}} {{sidebar image|{{{image2}}}}}}} | |||
{{#if: {{{status|}}}| | {{#if:{{{altimage|}}}| | ||
{{!}} class=" | {{!}}- | ||
{{!}} class=" | {{!}} class="tf-cbox-img" colspan="2" {{!}} {{{altimage}}}}} | ||
{{#if: {{{image2|}}}| | |||
{{!}} class=" | |||
{{#if: {{{altimage|}}}| | |||
{{!}} class=" | |||
|}</includeonly><noinclude> | |}</includeonly><noinclude> | ||
'''Note:''' This is a legacy ship sidebar. New ship pages should use {{tl|Infobox-chapter}}, the current chapter/ship infobox. This template is kept for compatibility and now shares the same dark house style. | |||
==Usage== | ==Usage== | ||
<pre>{{Ship-info | <pre>{{Ship-info | ||
| image = | | image = | ||
| name = | | name = | ||
| hcn = | | hcn = | ||
| class = | | class = | ||
| type = | | type = | ||
| affiliation = | | affiliation = | ||
| launched = | | launched = | ||
| armaments = | | armaments = | ||
| status = | | status = | ||
| image2 = | | image2 = | ||
| altimage = | | altimage = | ||
}}</pre> | }}</pre> | ||
| Line 74: | Line 69: | ||
| name | | name | ||
| Name of the vessel (in ''italics'' <nowiki>('' '')</nowiki>). "HMS", etc. should NOT be italicized. Example: HMS ''Manticore''. | | Name of the vessel (in ''italics'' <nowiki>('' '')</nowiki>). "HMS", etc. should NOT be italicized. Example: HMS ''Manticore''. | ||
|- | |- | ||
| hcn | | hcn | ||
| The ship's hull classification number (ie: DD-200 or BC-590). If none, leave blank. | | The ship's hull classification number (ie: DD-200 or BC-590). If none, leave blank. | ||
| Line 80: | Line 75: | ||
| class | | class | ||
| Class of ship this vessel belongs to (''Nike'', ''Roland'', ''Raoul Courvosier'', etc.). Specify ''only'' the class ''name'' (not <nowiki>[[name class|name]]</nowiki>). ''Italicized'' and <nowiki>[[linked]]</nowiki> automatically. | | Class of ship this vessel belongs to (''Nike'', ''Roland'', ''Raoul Courvosier'', etc.). Specify ''only'' the class ''name'' (not <nowiki>[[name class|name]]</nowiki>). ''Italicized'' and <nowiki>[[linked]]</nowiki> automatically. | ||
|- | |- | ||
| type | | type | ||
| Type of ship. ([[Destroyer]], [[Light Cruiser]], Escort, [[Superdreadnought]], etc.) <nowiki>[[Linked]]</nowiki> automatically. | | Type of ship. ([[Destroyer]], [[Light Cruiser]], Escort, [[Superdreadnought]], etc.) <nowiki>[[Linked]]</nowiki> automatically. | ||
|- | |- | ||
| affiliation | | affiliation | ||
| The affiliation of the ship. {{rmn}}, {{gsn}}, {{ian}}, {{rhn}}, private, independent, etc. | | The affiliation of the ship. {{rmn}}, {{gsn}}, {{ian}}, {{rhn}}, private, independent, etc. | ||
Latest revision as of 03:56, 17 July 2026
Note: This is a legacy ship sidebar. New ship pages should use {{Infobox-chapter}}, the current chapter/ship infobox. This template is kept for compatibility and now shares the same dark house style.
Usage
{{Ship-info
| image =
| name =
| hcn =
| class =
| type =
| affiliation =
| launched =
| armaments =
| status =
| image2 =
| altimage =
}}
Parameters
Parameters in bold are required fields. Not bold = optional.
| Parameter | Explanation |
|---|---|
| image | An image relevant to the ship. If no image is available, omit this parameter and [[File:TenthFleet.png]] will automatically be used. |
| name | Name of the vessel (in italics ('' '')). "HMS", etc. should NOT be italicized. Example: HMS Manticore. |
| hcn | The ship's hull classification number (ie: DD-200 or BC-590). If none, leave blank. |
| class | Class of ship this vessel belongs to (Nike, Roland, Raoul Courvosier, etc.). Specify only the class name (not [[name class|name]]). Italicized and [[linked]] automatically. |
| type | Type of ship. (Destroyer, Light Cruiser, Escort, Superdreadnought, etc.) [[Linked]] automatically. |
| affiliation | The affiliation of the ship. |
| launched | Date of ship's launch. |
| status | Was the ship last "active", "decommissioned", etc. |
| image2 / altimage | Second image relevant to the ship (optional). |
Example when done
| HMS Nike | |
| File:Nike class.jpg | |
| HCN: | BC-590 |
| Class: | Nike |
| Type: | battlecruiser |
| Affiliation: |
|
| Status: | active |
| File:Nike class2.jpg | |
{{Ship-info
| image = Nike class.jpg
| name = HMS ''Nike''
| hcn = BC-590
| affiliation = {{rmn}}
| type = battlecruiser
| class = Nike
| status = active
| image2 = Nike class2.jpg
}}