Template:Infobox-echelon: Difference between revisions
text to flag |
m Bring Infobox-echelon up to the tf-cbox house style (reuses Infobox-chapter/styles.css); add optional branch param for banner+default crest |
||
| (6 intermediate revisions by one other user 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-{{lc:{{{branch|default}}}}}" colspan="2" | '''{{PAGENAME}}''' | ||
| {{ | |- | ||
| [[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|}}}| | ||
{{!}}- | |||
{{#if: {{{flash|}}}| | {{!}} class="tf-cbox-img" colspan="2" {{!}} [[File:{{{flash}}}|250px]]}} | ||
{{!}} class=" | {{#if:{{{co|}}}| | ||
{{!}}- | |||
{{#if: {{{co|}}}| | {{!}} class="tf-cbox-l" {{!}} '''Commander:''' | ||
{{!}} class=" | {{!}} class="tf-cbox-r" {{!}} {{{co}}}}} | ||
{{!}} class=" | {{#if:{{{flagship|}}}| | ||
{{!}}- | |||
{{#if: {{{flagship|}}}| | {{!}} class="tf-cbox-l" {{!}} '''[[Flagship]]:''' | ||
{{!}} class=" | {{!}} class="tf-cbox-r" {{!}} {{{flagship}}}}} | ||
{{!}} class=" | {{#if:{{{ao|}}}| | ||
{{!}}- | |||
{{#if: {{{ao|}}}| | {{!}} class="tf-cbox-l" {{!}} '''Area of<br>Operations:''' | ||
{{!}} class=" | {{!}} class="tf-cbox-r" {{!}} {{{ao}}}}} | ||
{{!}} class=" | {{#if:{{{formed|}}}| | ||
{{!}}- | |||
{{#if: {{{ | {{!}} class="tf-cbox-l" {{!}} '''Formed:''' | ||
{{!}} class=" | {{!}} class="tf-cbox-r" {{!}} {{{formed}}}}} | ||
{{!}} class=" | {{#if:{{{status|}}}| | ||
{{!}}- | |||
{{!}} class="tf-cbox-l" {{!}} '''Status:''' | |||
{{#if: {{{status|}}}| | {{!}} class="tf-cbox-r" {{!}} {{{status}}}}} | ||
{{!}} class=" | {{#if:{{{reportsto|}}}| | ||
{{!}} class=" | {{!}}- | ||
{{!}} class="tf-cbox-l" {{!}} '''Reporting to:''' | |||
{{#if: {{{reportsto|}}}| | {{!}} class="tf-cbox-r" {{!}} [[{{{reportsto}}}]]}} | ||
{{!}} class=" | {{#if:{{{fleet|}}}| | ||
{{!}} class=" | {{!}}- | ||
{{!}} class="tf-cbox-l" {{!}} '''[[Fleet]]:''' | |||
{{#if: {{{fleet|}}}| | {{!}} class="tf-cbox-r" {{!}} [[{{{fleet}}}]]}} | ||
{{!}} class=" | {{#if:{{{website|}}}| | ||
{{!}} class=" | {{!}}- | ||
{{!}} class="tf-cbox-l" {{!}} '''Website:''' | |||
{{#if: {{{website|}}}| | {{!}} class="tf-cbox-r" {{!}} [{{{website}}} {{{website}}}]}} | ||
{{!}} class=" | {{#if:{{{flag|}}}| | ||
{{!}} class=" | {{!}}- | ||
{{!}} class="tf-cbox-img" colspan="2" {{!}} [[File:{{{flag}}}|250px]]}} | |||
{{#if: {{{ | {{#if:{{{altimage|}}}| | ||
{{!}} class=" | {{!}}- | ||
{{!}} class="tf-cbox-img" colspan="2" {{!}} {{{altimage}}}}} | |||
{{#if: {{{altimage|}}}| | |||
{{!}} class=" | |||
|}</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]]). | |||
== Usage == | |||
<pre>{{Infobox-echelon | |||
==Usage== | | branch = (optional: RMN / RMMC / RMA / GSN / IAN / RHN — colours the name banner + default crest) | ||
<pre>{{Infobox- | | crest = | ||
| crest = | | flash = | ||
| flash = | | co = | ||
| co = | | flagship = {{hms|Shipname|SD-000}} | ||
| flagship = | | ao = '''US''': MN (Twin Cities) | ||
| ao = | | formed = 01 APR 2015 | ||
| formed = | | status = Active / Defunct | ||
| status = | | reportsto = (larger echelon; auto-linked) | ||
| reportsto = | | fleet = (auto-linked) | ||
| fleet = | |||
| website = | | website = | ||
| | | flag = | ||
| altimage = | | altimage = | ||
}}</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> | |||