Template:Infobox-chapter: Difference between revisions
Jump to navigation
Jump to search
m Restyle infobox (dark-theme readable) + branch-coloured header via new 'branch' param [TemplateStyles] |
m Branch-aware default crest (GSN/RMMC/RMA/RHN/IAN) when no ship crest provided |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><templatestyles src="Infobox-chapter/styles.css" />{| class="sidebar tf-cbox" | <includeonly><templatestyles src="Infobox-chapter/styles.css" /> | ||
{| class="sidebar tf-cbox {{#if:{{{list_of_honor|}}}|tf-cbox-loh}}" | |||
|- | |- | ||
| class="tf-cbox-name tf-b-{{lc:{{{branch|default}}}}}" colspan="2" | '''{{PAGENAME}}'''{{#if:{{{hcn|}}}|<br/><span class="tf-cbox-hcn">{{{hcn}}}</span>}} | | class="tf-cbox-name tf-b-{{lc:{{{branch|default}}}}}" colspan="2" | '''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}'''{{#if:{{{hcn|}}}|<br/><span class="tf-cbox-hcn">{{{hcn}}}</span>}} | ||
|- | |- | ||
| class="tf-cbox-img" colspan="2" | {{#if: {{{crest|}}} | | class="tf-cbox-img" colspan="2" | {{#if: {{{crest|}}} | ||
| {{sidebar image|{{{crest}}}}} | | {{sidebar image|{{{crest}}}}} | ||
| [[File:RMNFlash.png|250px]] | | {{#switch:{{lc:{{{branch|}}}}}|gsn=[[File:Gsn_logo.png|250px]]|rmmc=[[File:RMMCFlash.png|250px]]|rma=[[File:Flag Royal Manticoran Army.png|250px]]|rhn=[[File:Rhnflash.png|250px]]|ian=[[File:IAN-logo.png|250px]]|#default=[[File:RMNFlash.png|250px]]}} | ||
}} | }} | ||
|- valign="top" | |- valign="top" | ||
{{#if: {{{image|}}}| | {{#if: {{{image|}}}| | ||
{{!}} class="tf-cbox-img" colspan="2" {{!}} {{sidebar image|{{{image}}}}}}} | {{!}} class="tf-cbox-img" colspan="2" {{!}} {{sidebar image|{{{image}}}}}}} | ||
|- valign="top" | |- valign="top" | ||
{{#if: {{{city|}}}| | {{#if: {{{city|}}}| | ||
| Line 61: | Line 58: | ||
{{#if: {{{altimage|}}}| | {{#if: {{{altimage|}}}| | ||
{{!}} class="tf-cbox-img" colspan="2" {{!}} {{{altimage}}}}} | {{!}} class="tf-cbox-img" colspan="2" {{!}} {{{altimage}}}}} | ||
|- valign="top" | |||
{{#if: {{{list_of_honor|}}}| | |||
{{!}} class="tf-cbox-loh-cap" colspan="2" {{!}} [[List of Honor|★ List of Honor ({{#ifeq:{{lc:{{{branch|}}}}}|gsn|GSN|RMN}}) ★]]}} | |||
|} | |} | ||
[[Category:Chapters|{{{name}}}]]</includeonly><noinclude> | [[Category:Chapters|{{{name}}}]]{{#if:{{{list_of_honor|}}}|[[Category:List of Honor|{{{name}}}]]}}</includeonly><noinclude> | ||
==Usage== | ==Usage== | ||
| Line 132: | Line 132: | ||
| website | | website | ||
| Type in the exact URL. Will be <nowiki>[[linked]]</nowiki> automatically. | | Type in the exact URL. Will be <nowiki>[[linked]]</nowiki> automatically. | ||
|- | |||
| list_of_honor | |||
| Set to the enrollment year (e.g. <code>2023</code>) when the ship is enrolled on the [[List of Honor]]. Gives the infobox a gold outline + "List of Honor" caption and files the page in [[:Category:List of Honor]]. Leave blank otherwise. | |||
|- | |- | ||
| image2 / altimage | | image2 / altimage | ||
Latest revision as of 00:09, 15 July 2026
Usage
{{Infobox-chapter
| crest =
| image =
| name =
| hcn =
| branch =
| city =
| class =
| type =
| affiliation =
| co =
| launched =
| status =
| reportsto =
| fleet =
| website =
| image2 =
| altimage =
}}
Parameters
Parameters in bold are required fields. Not bold = optional.
| Parameter | Explanation |
|---|---|
| crest | The ship's crest image. If no image is available, omit this parameter and [[File:RMNFlash.png]] will automatically be used. |
| image | An image relevant to the ship, such as the side elevation or the ship's class image. |
| name | Name of the vessel (in italics ('' '')). "HMS", etc. should NOT be italicized. Example: HMS Fearless. |
| hcn | The ship's hull number (ie: DD-486, BC-592, SD-200, etc). If none, leave blank. |
| city | The chapter's Charter city; essentially the official city of record for that chapter. Do not include any additional areas of patrol, only list a single city or other census-designated place. This will be verified and changed accordingly during edit patrols. |
| class | Class of ship this vessel belongs to (Star Knight, Nike, Invictus, etc.). Specify only the class name (not [[name class|name]]). Italicized and [[linked]] automatically. |
| type | Type of ship. (Destroyer, Light Cruiser, Escort, Battlecruiser, etc.) [[Linked]] automatically. |
| affiliation | The affiliation of the starship. {{rmn}}, {{gsn}}, {{ian}}, etc. |
| co | Name of the Ship's CO. Keep it short (ie: [[CAPTSG]] Dame Honor Harrington, [[RMN]]). Post-nominals will go into the main article. |
| launched | Date of ship's launch. |
| status | Is this ship currently "Active" or has it been "Decommissioned"? |
| reportsto | Which echelon force (fleet, task force, task group, squadron, etc) does this ship report to? Will be [[linked]] automatically. |
| fleet | Which fleet does this chapter belong to? |
| website | Type in the exact URL. Will be [[linked]] automatically. |
| list_of_honor | Set to the enrollment year (e.g. 2023) when the ship is enrolled on the List of Honor. Gives the infobox a gold outline + "List of Honor" caption and files the page in Category:List of Honor. Leave blank otherwise.
|
| image2 / altimage | Second or third image relevant to the ship (optional), might be the ship's shoulder flash patch or circular logo. |
Example when done
| HMS Medusa SD-316 | |
| Charter City: | San Francisco, CA, US |
| Class: | Medusa |
| Type: | Superdreadnought |
| Affiliation: | |
| Commander: | CAPTJG Erik Roberts, RMN |
| Launched: | 14 NOV 2015 |
| Status: | Active |
| Reporting to: | Battle Division 201 |
| Fleet: | Tenth Fleet |
| Website: | http://hmsmedusa.org |
{{Infobox-chapter
| crest = SD316Crest.png
| image = SD316Elevation.png
| name = HMS ''Medusa''
| hcn = SD-316
| city = San Francisco, CA, US
| affiliation = {{rmn}}
| type = Superdreadnought
| class = Medusa
| launched = 14 NOV 2015
| co = [[CAPTJG]] Erik Roberts, [[RMN]]
| status = Active
| reportsto = Battle Division 201
| fleet = Tenth Fleet
| website = http://hmsmedusa.org
| image2 = SD316Flash.png
}}