Template:Ship-info: Difference between revisions

From TenthFleet
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>{| class="wikitable" align="right" colSpan="2" width="200px" cellpadding="4" cellspacing="0"
<includeonly><templatestyles src="Infobox-chapter/styles.css" />
|-
{| class="sidebar tf-cbox"
| class="class" width="200px" colSpan="2" align="center" bgcolor="grey" | '''SHIP'''
|-
|-
| class="image" colspan="2" align="center" | {{#if: {{{image|}}}
| 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|}}}}}}|
|- valign="top"
{{!}}-
{{#if: {{{name|}}}|
{{!}} class="tf-cbox-l" {{!}} '''HCN:'''
{{!}} class="left" {{!}} '''Name:'''
{{!}} class="tf-cbox-r" {{!}} {{{hcn|{{{ncc|}}}}}}}}
{{!}} class="righta" {{!}} {{{name}}}}}
{{#if:{{{class|}}}|
|- valign="top"
{{!}}-
{{#if: {{{ncc|}}}|
{{!}} class="tf-cbox-l" {{!}} '''Class:'''
{{!}} class="left" {{!}} '''HCN:'''
{{!}} class="tf-cbox-r" {{!}} ''[[{{{class}}}-class|{{{class}}}]]''}}
{{!}} class="righta" {{!}} {{{hcn}}}}}
{{#if:{{{type|}}}|
|- valign="top"
{{!}}-
{{#if: {{{class|}}}|
{{!}} class="tf-cbox-l" {{!}} '''Type:'''
{{!}} class="left" {{!}} '''Class:'''
{{!}} class="tf-cbox-r" {{!}} [[{{{type}}}]]}}
{{!}} class="righta" {{!}} ''[[{{{class}}} class|{{{class}}}]]}}''
{{#if:{{{affiliation|}}}|
|- valign="top"
{{!}}-
{{#if: {{{type|}}}|
{{!}} class="tf-cbox-l" {{!}} '''Affiliation:'''
{{!}} class="left" {{!}} '''Type:'''
{{!}} class="tf-cbox-r" {{!}} {{{affiliation}}}}}
{{!}} class="righta" {{!}} [[{{{type}}}]]}}
{{#if:{{{launched|}}}|
|- valign="top"
{{!}}-
{{#if: {{{affiliation|}}}|
{{!}} class="tf-cbox-l" {{!}} '''Launched:'''
{{!}} class="left" {{!}} '''Affiliation:'''
{{!}} class="tf-cbox-r" {{!}} {{{launched}}}}}
{{!}} class="righta" {{!}} {{{affiliation}}}}}
{{#if:{{{armaments|}}}|
|- valign="top"
{{!}}-
{{#if: {{{launched|}}}|
{{!}} class="tf-cbox-l" {{!}} '''Armaments:'''
{{!}} class="left" {{!}} '''Launched:'''
{{!}} class="tf-cbox-r" {{!}} {{{armaments}}}}}
{{!}} class="righta" {{!}} {{{launched}}}}}
{{#if:{{{status|}}}|
|- valign="top"
{{!}}-
|- valign="top"
{{!}} class="tf-cbox-l" {{!}} '''Status:'''
{{#if: {{{armaments|}}}|
{{!}} class="tf-cbox-r" {{!}} {{{status}}}}}
{{!}} class="left" {{!}} '''Armaments:'''
{{#if:{{{image2|}}}|
{{!}} class="righta" {{!}} {{{armaments}}}}}
{{!}}-
|- valign="top"
{{!}} class="tf-cbox-img" colspan="2" {{!}} {{sidebar image|{{{image2}}}}}}}
{{#if: {{{status|}}}|
{{#if:{{{altimage|}}}|
{{!}} class="left" {{!}} '''Status:'''
{{!}}-
{{!}} class="righta" {{!}} {{{status}}}}}
{{!}} class="tf-cbox-img" colspan="2" {{!}} {{{altimage}}}}}
|- valign="top"
{{#if: {{{image2|}}}|
{{!}} class="image" colspan="2" align="center" align="center" colspan="2" {{!}} {{sidebar image|{{{image2}}}}}}}
|- valign="top"
{{#if: {{{altimage|}}}|
{{!}} class="image" colspan="2" align="center" align="center" colspan="2" {{!}} {{{altimage}}}}}
|}</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. Royal Manticoran Navy, Grayson Space Navy, Imperial Andermani Navy, Republic of Haven Navy, private, independent, etc.
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


{{Ship-info
| image       = Nike class.jpg
| name        = HMS ''Nike''
| hcn         = BC-590
| affiliation = {{rmn}}
| type        = battlecruiser
| class       = Nike
| status      = active
| image2      = Nike class2.jpg
}}