Template:Infobox-echelon: Difference between revisions

From TenthFleet
Jump to navigation Jump to search
Flagship link
m Bring Infobox-echelon up to the tf-cbox house style (reuses Infobox-chapter/styles.css); add optional branch param for banner+default crest
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly>{| class="sidebar" align="right" colSpan="2" width="250px" cellpadding="4" cellspacing="0"
<includeonly><templatestyles src="Infobox-chapter/styles.css" />
|-
{| class="sidebar tf-cbox"
| class="class" width="250px" colSpan="2" align="center" | '''{{PAGENAME}}'''
|-
|-
| class="image" colspan="2" align="center" | {{#if: {{{crest|}}}
| class="tf-cbox-name tf-b-{{lc:{{{branch|default}}}}}" colspan="2" | '''{{PAGENAME}}'''
| {{sidebar image|{{{crest}}}}}
|-
| [[File:RMNFlash.png|250px]]
| class="tf-cbox-img" colspan="2" | {{#if:{{{crest|}}}|[[File:{{{crest}}}|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]]}}}}
}}
{{#if:{{{flash|}}}|
|- valign="top"
{{!}}-
{{#if: {{{flash|}}}|
{{!}} class="tf-cbox-img" colspan="2" {{!}} [[File:{{{flash}}}|250px]]}}
{{!}} class="image" colspan="2" align="center" align="center" colspan="2" {{!}} {{sidebar image|{{{flash}}}}}}}
{{#if:{{{co|}}}|
|- valign="top"
{{!}}-
{{#if: {{{co|}}}|
{{!}} class="tf-cbox-l" {{!}} '''Commander:'''
{{!}} class="left" {{!}} '''Commander:'''
{{!}} class="tf-cbox-r" {{!}} {{{co}}}}}
{{!}} class="righta" {{!}} {{{co}}}}}
{{#if:{{{flagship|}}}|
|- valign="top"
{{!}}-
{{#if: {{{flagship|}}}|
{{!}} class="tf-cbox-l" {{!}} '''[[Flagship]]:'''
{{!}} class="left" {{!}} '''[[Flagship]]:'''
{{!}} class="tf-cbox-r" {{!}} {{{flagship}}}}}
{{!}} class="righta" {{!}} {{{flagship}}}}}
{{#if:{{{ao|}}}|
|- valign="top"
{{!}}-
{{#if: {{{ao|}}}|
{{!}} class="tf-cbox-l" {{!}} '''Area of<br>Operations:'''
{{!}} class="left" {{!}} '''Area of<br>Operations:'''
{{!}} class="tf-cbox-r" {{!}} {{{ao}}}}}
{{!}} class="righta" {{!}} {{{ao}}}}}
{{#if:{{{formed|}}}|
|- valign="top"
{{!}}-
{{#if: {{{launched|}}}|
{{!}} class="tf-cbox-l" {{!}} '''Formed:'''
{{!}} class="left" {{!}} '''Formed:'''
{{!}} class="tf-cbox-r" {{!}} {{{formed}}}}}
{{!}} class="righta" {{!}} {{{formed}}}}}
{{#if:{{{status|}}}|
|- valign="top"
{{!}}-
|- valign="top"
{{!}} class="tf-cbox-l" {{!}} '''Status:'''
{{#if: {{{status|}}}|
{{!}} class="tf-cbox-r" {{!}} {{{status}}}}}
{{!}} class="left" {{!}} '''Status:'''
{{#if:{{{reportsto|}}}|
{{!}} class="righta" {{!}} {{{status}}}}}
{{!}}-
|- valign="top"
{{!}} class="tf-cbox-l" {{!}} '''Reporting to:'''
{{#if: {{{reportsto|}}}|
{{!}} class="tf-cbox-r" {{!}} [[{{{reportsto}}}]]}}
{{!}} class="left" {{!}} '''Reporting to:'''
{{#if:{{{fleet|}}}|
{{!}} class="righta" {{!}} [[{{{reportsto}}}]]}}
{{!}}-
|- valign="top"
{{!}} class="tf-cbox-l" {{!}} '''[[Fleet]]:'''
{{#if: {{{fleet|}}}|
{{!}} class="tf-cbox-r" {{!}} [[{{{fleet}}}]]}}
{{!}} class="left" {{!}} '''[[Fleet]]:'''
{{#if:{{{website|}}}|
{{!}} class="righta" {{!}} [[{{{fleet}}}]]}}
{{!}}-
|- valign="top"
{{!}} class="tf-cbox-l" {{!}} '''Website:'''
{{#if: {{{website|}}}|
{{!}} class="tf-cbox-r" {{!}} [{{{website}}} {{{website}}}]}}
{{!}} class="left" {{!}} '''Website:'''
{{#if:{{{flag|}}}|
{{!}} class="righta" {{!}} [{{{website}}} {{{website}}}]}}
{{!}}-
|- valign="top"
{{!}} class="tf-cbox-img" colspan="2" {{!}} [[File:{{{flag}}}|250px]]}}
{{#if: {{{flag|}}}|
{{#if:{{{altimage|}}}|
{{!}} class="image" colspan="2" align="center" align="center" colspan="2" {{!}} {{sidebar image|{{{flag}}}}}}}<br><font size="-2">''flag''</font>
{{!}}-
|- valign="top"
{{!}} class="tf-cbox-img" colspan="2" {{!}} {{{altimage}}}}}
{{#if: {{{altimage|}}}|
{{!}} class="image" colspan="2" align="center" align="center" colspan="2" {{!}} {{{altimage}}}}}
|}</includeonly><noinclude>
|}</includeonly><noinclude>
{{documentation}}
'''Infobox-echelon''' is the sidebar for [[Echelon unit]] pages — a [[squadron]], [[task element]], [[task unit]], [[task echelon]], [[task group]], or [[task force]]. It uses the shared '''tf-cbox''' house style (matching [[Template:Infobox-chapter]], [[Template:Infobox-event]], and [[Template:Infobox-peerage]]).


==Purpose==
== Usage ==
This template is for use on [[Echelon unit]] pages, such as for a [[squadron]], [[task element]], [[task unit]], [[task echelon]], [[task group]], or [[task force]].  [[Division|Divisions]] with no reporting Squadron are eligible for separate pages, otherwise please use the Squadron page to organize any Division within. 
==Usage==
<pre>{{Infobox-echelon
<pre>{{Infobox-echelon
| crest      =  
| branch      =  (optional: RMN / RMMC / RMA / GSN / IAN / RHN — colours the name banner + default crest)
| flash      =  
| crest      =
| co          =  
| flash      =
| flagship    =  
| co          =
| ao          =  
| flagship    =   {{hms|Shipname|SD-000}}
| formed      =  
| ao          =   '''US''': MN (Twin Cities)
| status      =  
| formed      =   01 APR 2015
| reportsto  =
| status      =   Active / Defunct
| fleet      =
| reportsto  =   (larger echelon; auto-linked)
| fleet      =   (auto-linked)
| website    =
| website    =
| flag        =  
| flag        =
| altimage    =  
| altimage    =
}}</pre>
 
==Parameters==
Parameters in '''bold''' are required fields. ''Not'' bold = optional.
{| border=1 cellpadding=4 cellspacing=0 style="margin: 0 0 1em 1em; border: 1px #aaaaaa solid; border-collapse: collapse; font-size: 95%;"
! Parameter
! Explanation
|-
| crest
| The crest image of the echelon force.  If no crest exists, then <nowiki>[[File:RMNFlash.png]]</nowiki> will automatically be used.
|-
| flash
| The shoulder flash image of the echelon force.
|-
| co
| The rank and name of the commanding officer.  Please limit to RANK NAME, BRANCH (eg: CDRE Lady Honor Harrington, RMN).  You will need to manually link to the rank and/or branch page when you type in this part.
|-
| flagship
| The name and [[HCN]] of the flagship for this echelon force.  Please use the <nowiki>{{hms|Shipname|SD-000}}</nowiki> for this part, to make it a clickable link.
|-
| ao
| The echelon's Area of Operations.  Example: <nowiki>'''US''': MN (Twin Cities)</nowiki>
|-
| formed
| The date of initial formation, in the format of DD MON YYYY (ie: 01 APR 2015).  Please use the date of the first formation of the unit, even if the unit has been reactivated later.  Add information about the dissolution and reactivation in the History section of the article.
|-
| status
| What is the current status of this echelon?  Is it '''Active''' or '''Defunct'''?
|-
| reportsto
| This echelon may report to a larger echelon force, e.g. a [[Task Group]] reporting to a [[Task Force]].  Type in the full name of the larger force, and it will be <nowiki>[[linked]]</nowiki> automatically.
|-
| fleet
| Which [[fleet]] does this echelon force belong to?  Will be <nowiki>[[linked]]</nowiki> automatically.
|-
| website
| Type in the exact URL to any home page that this force has, even if it is a single page on a fleet's website.  Will be <nowiki>[[linked]]</nowiki> automatically.
|-
| flag
| Image of the echelon's flag.
|-
| altimage
| additional image relevant to the echelon (optional).
|}
 
==Example when done==
{{Infobox-echelon
| crest      =
| flash      = BatRon2.png
| co          = [[CDRE]] Sir Joseph Harney, [[RMN]]
| flagship    = {{hms|Revenge|SD-317}}
| ao          = '''US''': CA (Northern CA, Central Valleys)
| formed      = 03 SEP 2016
| status      = Active
| reportsto  = Task Group 91.1
| fleet      = Tenth Fleet
| website    = http://BatRon2.org
}}
<br clear=all>
 
<pre>
{{Infobox-echelon
| crest      =
| flash      = BatRon2.png
| co          = [[CDRE]] Sir Joseph Harney
| flagship    = {{hms|Revenge|SD-317}}
| ao          = '''US''': CA (Northern CA, Central Valleys)
| formed      = 03 SEP 2016
| status      = Active
| reportsto  = Task Group 91.1
| fleet      = Tenth Fleet
| website    = http://BatRon2.org
}}</pre>
}}</pre>
All fields optional. <code>reportsto</code> and <code>fleet</code> are auto-<nowiki>[[linked]]</nowiki>, so pass them unlinked (a piped form like <code>Marshal of the Corps{{!}}MotC</code> also works). If no <code>crest</code> is given, a branch crest is used (RMN flash by default).


[[Category:Sidebar templates|{{PAGENAME}}]]</noinclude>
[[Category:Templates]]
[[Category:Sidebar templates|{{PAGENAME}}]]
</noinclude>

Latest revision as of 18:37, 15 July 2026


This template is not yet documented. Please create documentation here: Template:Infobox-echelon/doc

Infobox-echelon is the sidebar for Echelon unit pages — a squadron, task element, task unit, task echelon, task group, or task force. It uses the shared tf-cbox house style (matching Template:Infobox-chapter, Template:Infobox-event, and Template:Infobox-peerage).

Usage

{{Infobox-echelon
| branch      =   (optional: RMN / RMMC / RMA / GSN / IAN / RHN — colours the name banner + default crest)
| crest       =
| flash       =
| co          =
| flagship    =   {{hms|Shipname|SD-000}}
| ao          =   '''US''': MN (Twin Cities)
| formed      =   01 APR 2015
| status      =   Active / Defunct
| reportsto   =   (larger echelon; auto-linked)
| fleet       =   (auto-linked)
| website     =
| flag        =
| altimage    =
}}

All fields optional. reportsto and fleet are auto-[[linked]], so pass them unlinked (a piped form like Marshal of the Corps|MotC also works). If no crest is given, a branch crest is used (RMN flash by default).