Template:Ship-info: Difference between revisions
mNo edit summary |
m Restyle legacy ship sidebar to tf dark house style (tf-cbox); note Infobox-chapter as current |
||
| (4 intermediate revisions by 3 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. ([[ | | 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. | ||