Template:Ship-info: Difference between revisions

m Restyle legacy ship sidebar to tf dark house style (tf-cbox); note Infobox-chapter as current
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{| class="sidebar" 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" | STARSHIP
|-
|-
| 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.