Template:Infobox-chapter: Difference between revisions
mNo edit summary |
m Branch-aware default crest (GSN/RMMC/RMA/RHN/IAN) when no ship crest provided |
||
| (12 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{| class="sidebar | <includeonly><templatestyles src="Infobox-chapter/styles.css" /> | ||
{| class="sidebar tf-cbox {{#if:{{{list_of_honor|}}}|tf-cbox-loh}}" | |||
|- | |- | ||
| class=" | | 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=" | | 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=" | {{!}} class="tf-cbox-img" colspan="2" {{!}} {{sidebar image|{{{image}}}}}}} | ||
|- valign="top" | |- valign="top" | ||
{{#if: {{{ | {{#if: {{{city|}}}| | ||
{{!}} class=" | {{!}} class="tf-cbox-l" {{!}} '''[[Charter City]]:''' | ||
{{!}} class="tf-cbox-r" {{!}} {{{city}}}}} | |||
{{!}} class=" | |||
|- valign="top" | |- valign="top" | ||
{{#if: {{{class|}}}| | {{#if: {{{class|}}}| | ||
{{!}} class=" | {{!}} class="tf-cbox-l" {{!}} '''Class:''' | ||
{{!}} class=" | {{!}} class="tf-cbox-r" {{!}} ''[[{{{class}}}-class|{{{class}}}]]}}'' | ||
|- valign="top" | |- valign="top" | ||
{{#if: {{{type|}}}| | {{#if: {{{type|}}}| | ||
{{!}} class=" | {{!}} class="tf-cbox-l" {{!}} '''Type:''' | ||
{{!}} class=" | {{!}} class="tf-cbox-r" {{!}} [[{{{type}}}]]}} | ||
|- valign="top" | |- valign="top" | ||
{{#if: {{{affiliation|}}}| | {{#if: {{{affiliation|}}}| | ||
{{!}} class=" | {{!}} class="tf-cbox-l" {{!}} '''Affiliation:''' | ||
{{!}} class=" | {{!}} class="tf-cbox-r" {{!}} {{{affiliation}}}}} | ||
|- valign="top" | |- valign="top" | ||
{{#if: {{{co|}}}| | {{#if: {{{co|}}}| | ||
{{!}} class=" | {{!}} class="tf-cbox-l" {{!}} '''Commander:''' | ||
{{!}} class=" | {{!}} class="tf-cbox-r" {{!}} {{{co}}}}} | ||
|- valign="top" | |- valign="top" | ||
{{#if: {{{launched|}}}| | {{#if: {{{launched|}}}| | ||
{{!}} class=" | {{!}} class="tf-cbox-l" {{!}} '''Launched:''' | ||
{{!}} class=" | {{!}} class="tf-cbox-r" {{!}} {{{launched}}}}} | ||
|- valign="top" | |- valign="top" | ||
|- valign="top" | |- valign="top" | ||
{{#if: {{{status|}}}| | {{#if: {{{status|}}}| | ||
{{!}} class=" | {{!}} class="tf-cbox-l" {{!}} '''Status:''' | ||
{{!}} class=" | {{!}} class="tf-cbox-r" {{!}} {{{status}}}}} | ||
|- valign="top" | |- valign="top" | ||
{{#if: {{{reportsto|}}}| | {{#if: {{{reportsto|}}}| | ||
{{!}} class=" | {{!}} class="tf-cbox-l" {{!}} '''Reporting to:''' | ||
{{!}} class=" | {{!}} class="tf-cbox-r" {{!}} [[{{{reportsto}}}]]}} | ||
|- valign="top" | |||
{{#if: {{{fleet|}}}| | |||
{{!}} class="tf-cbox-l" {{!}} '''[[Fleet]]:''' | |||
{{!}} class="tf-cbox-r" {{!}} [[{{{fleet}}}]]}} | |||
|- valign="top" | |||
{{#if: {{{website|}}}| | |||
{{!}} class="tf-cbox-l" {{!}} '''Website:''' | |||
{{!}} class="tf-cbox-r" {{!}} [{{{website}}} {{{website}}}]}} | |||
|- valign="top" | |- valign="top" | ||
{{#if: {{{image2|}}}| | {{#if: {{{image2|}}}| | ||
{{!}} class=" | {{!}} class="tf-cbox-img" colspan="2" {{!}} {{sidebar image|{{{image2}}}}}}} | ||
|- valign="top" | |- valign="top" | ||
{{#if: {{{altimage|}}}| | {{#if: {{{altimage|}}}| | ||
{{!}} class=" | {{!}} class="tf-cbox-img" colspan="2" {{!}} {{{altimage}}}}} | ||
|}</includeonly><noinclude> | |- 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}}}]]{{#if:{{{list_of_honor|}}}|[[Category:List of Honor|{{{name}}}]]}}</includeonly><noinclude> | |||
==Usage== | ==Usage== | ||
| Line 61: | Line 70: | ||
| name = | | name = | ||
| hcn = | | hcn = | ||
| branch = | |||
| city = | |||
| class = | | class = | ||
| type = | | type = | ||
| Line 68: | Line 79: | ||
| status = | | status = | ||
| reportsto = | | reportsto = | ||
| fleet = | |||
| website = | |||
| image2 = | | image2 = | ||
| altimage = | | altimage = | ||
| Line 79: | Line 92: | ||
|- | |- | ||
|crest | |crest | ||
| The ship's crest image. If no image is available, omit this parameter and <nowiki>[[File:RMNFlash.png]]</nowiki> will automatically be used. | | The ship's [[crest]] image. If no image is available, omit this parameter and <nowiki>[[File:RMNFlash.png]]</nowiki> will automatically be used. | ||
|- | |- | ||
|image | |image | ||
| An image relevant to the ship, such as the side elevation or the class image. | | An image relevant to the ship, such as the side elevation or the ship's class image. | ||
|- | |- | ||
| name | | name | ||
| Line 89: | Line 102: | ||
| hcn | | hcn | ||
| The ship's hull number (ie: DD-486, BC-592, SD-200, etc). If none, leave blank. | | The ship's hull number (ie: DD-486, BC-592, SD-200, etc). If none, leave blank. | ||
|- | |||
| city | |||
| The chapter's [[Chapter#City_of_Charter|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 [[wikipedia:Census-designated_place|census-designated place]]. This will be verified and changed accordingly during edit patrols. | |||
|- | |- | ||
| class | | class | ||
| Line 94: | Line 110: | ||
|- | |- | ||
| type | | type | ||
| Type of ship. ([[ | | Type of ship. ([[Destroyer]], [[Light Cruiser]], Escort, [[Battlecruiser]], etc.) <nowiki>[[Linked]]</nowiki> automatically. | ||
|- | |- | ||
| affiliation | | affiliation | ||
| Line 110: | Line 126: | ||
| reportsto | | reportsto | ||
| Which echelon force (fleet, task force, task group, squadron, etc) does this ship report to? Will be <nowiki>[[linked]]</nowiki> automatically. | | Which echelon force (fleet, task force, task group, squadron, etc) does this ship report to? Will be <nowiki>[[linked]]</nowiki> automatically. | ||
|- | |||
| fleet | |||
| Which [[fleet]] does this chapter belong to? | |||
|- | |||
| website | |||
| 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 | ||
| Second image relevant to the ship (optional), might be the ship's shoulder flash patch or circular logo. | | Second or third image relevant to the ship (optional), might be the ship's shoulder flash patch or circular logo. | ||
|} | |} | ||
| Line 121: | Line 146: | ||
| name = HMS ''Medusa'' | | name = HMS ''Medusa'' | ||
| hcn = SD-316 | | hcn = SD-316 | ||
| city = San Francisco, CA, US | |||
| affiliation = {{rmn}} | | affiliation = {{rmn}} | ||
| type = Superdreadnought | | type = Superdreadnought | ||
| Line 128: | Line 154: | ||
| status = Active | | status = Active | ||
| reportsto = Battle Division 201 | | reportsto = Battle Division 201 | ||
| fleet = Tenth Fleet | |||
| website = http://hmsmedusa.org | |||
| image2 = SD316Flash.png | | image2 = SD316Flash.png | ||
}} | }} | ||
| Line 138: | Line 166: | ||
| name = HMS ''Medusa'' | | name = HMS ''Medusa'' | ||
| hcn = SD-316 | | hcn = SD-316 | ||
| city = San Francisco, CA, US | |||
| affiliation = {{rmn}} | | affiliation = {{rmn}} | ||
| type = Superdreadnought | | type = Superdreadnought | ||
| Line 144: | Line 173: | ||
| co = [[CAPTJG]] Erik Roberts, [[RMN]] | | co = [[CAPTJG]] Erik Roberts, [[RMN]] | ||
| status = Active | | status = Active | ||
| reportsto = | | reportsto = Battle Division 201 | ||
| fleet = Tenth Fleet | |||
| website = http://hmsmedusa.org | |||
| image2 = SD316Flash.png | | image2 = SD316Flash.png | ||
}}</pre> | }}</pre> | ||
[[Category:Sidebar templates|{{PAGENAME}}]]</noinclude> | [[Category:Sidebar templates|{{PAGENAME}}]]</noinclude> | ||