Template:Infobox-chapter: Difference between revisions

fix link
m Restyle infobox (dark-theme readable) + branch-coloured header via new 'branch' param [TemplateStyles]
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="tf-cbox-name tf-b-{{lc:{{{branch|default}}}}}" colspan="2" | '''{{PAGENAME}}'''{{#if:{{{hcn|}}}|<br/><span class="tf-cbox-hcn">{{{hcn}}}</span>}}
|-
|-
| class="image" colspan="2" align="center" | {{#if: {{{crest|}}}
| class="tf-cbox-img" colspan="2" | {{#if: {{{crest|}}}
| {{sidebar image|{{{crest}}}}}
| {{sidebar image|{{{crest}}}}}
| [[File:RMNFlash.png|250px]]
| [[File:RMNFlash.png|250px]]
Line 9: Line 9:
|- valign="top"
|- valign="top"
{{#if: {{{image|}}}|
{{#if: {{{image|}}}|
{{!}} class="image" colspan="2" align="center" align="center" colspan="2" {{!}} {{sidebar image|{{{image}}}}}}}
{{!}} class="tf-cbox-img" colspan="2" {{!}} {{sidebar image|{{{image}}}}}}}
|- valign="top"
|- valign="top"
{{#if: {{{name|}}}|
{{#if: {{{name|}}}|
{{!}} class="left" {{!}} '''Name:'''
{{!}} class="tf-cbox-l" {{!}} '''Name:'''
{{!}} class="righta" {{!}} {{{name}}}}}
{{!}} class="tf-cbox-r" {{!}} {{{name}}}}}
|- valign="top"
{{#if: {{{hcn|}}}|
{{!}} class="left" {{!}} '''[[HCN]]:'''
{{!}} class="righta" {{!}} {{{hcn}}}}}
|- valign="top"
|- valign="top"
{{#if: {{{city|}}}|
{{#if: {{{city|}}}|
{{!}} class="left" {{!}} '''[[Charter City]]:'''
{{!}} class="tf-cbox-l" {{!}} '''[[Charter City]]:'''
{{!}} class="righta" {{!}} {{{city}}}}}
{{!}} class="tf-cbox-r" {{!}} {{{city}}}}}
|- valign="top"
|- valign="top"
{{#if: {{{class|}}}|
{{#if: {{{class|}}}|
{{!}} class="left" {{!}} '''Class:'''
{{!}} class="tf-cbox-l" {{!}} '''Class:'''
{{!}} class="righta" {{!}} ''[[{{{class}}}-class|{{{class}}}]]}}''
{{!}} class="tf-cbox-r" {{!}} ''[[{{{class}}}-class|{{{class}}}]]}}''
|- valign="top"
|- valign="top"
{{#if: {{{type|}}}|
{{#if: {{{type|}}}|
{{!}} class="left" {{!}} '''Type:'''
{{!}} class="tf-cbox-l" {{!}} '''Type:'''
{{!}} class="righta" {{!}} [[{{{type}}}]]}}
{{!}} class="tf-cbox-r" {{!}} [[{{{type}}}]]}}
|- valign="top"
|- valign="top"
{{#if: {{{affiliation|}}}|
{{#if: {{{affiliation|}}}|
{{!}} class="left" {{!}} '''Affiliation:'''
{{!}} class="tf-cbox-l" {{!}} '''Affiliation:'''
{{!}} class="righta" {{!}} {{{affiliation}}}}}
{{!}} class="tf-cbox-r" {{!}} {{{affiliation}}}}}
|- valign="top"
|- valign="top"
{{#if: {{{co|}}}|
{{#if: {{{co|}}}|
{{!}} class="left" {{!}} '''Commander:'''
{{!}} class="tf-cbox-l" {{!}} '''Commander:'''
{{!}} class="righta" {{!}} {{{co}}}}}
{{!}} class="tf-cbox-r" {{!}} {{{co}}}}}
|- valign="top"
|- valign="top"
{{#if: {{{launched|}}}|
{{#if: {{{launched|}}}|
{{!}} class="left" {{!}} '''Launched:'''
{{!}} class="tf-cbox-l" {{!}} '''Launched:'''
{{!}} class="righta" {{!}} {{{launched}}}}}
{{!}} class="tf-cbox-r" {{!}} {{{launched}}}}}
|- valign="top"
|- valign="top"
|- valign="top"
|- valign="top"
{{#if: {{{status|}}}|
{{#if: {{{status|}}}|
{{!}} class="left" {{!}} '''Status:'''
{{!}} class="tf-cbox-l" {{!}} '''Status:'''
{{!}} class="righta" {{!}} {{{status}}}}}
{{!}} class="tf-cbox-r" {{!}} {{{status}}}}}
|- valign="top"
|- valign="top"
{{#if: {{{reportsto|}}}|
{{#if: {{{reportsto|}}}|
{{!}} class="left" {{!}} '''Reporting to:'''
{{!}} class="tf-cbox-l" {{!}} '''Reporting to:'''
{{!}} class="righta" {{!}} [[{{{reportsto}}}]]}}
{{!}} class="tf-cbox-r" {{!}} [[{{{reportsto}}}]]}}
|- valign="top"
|- valign="top"
{{#if: {{{fleet|}}}|
{{#if: {{{fleet|}}}|
{{!}} class="left" {{!}} '''[[Fleet]]:'''
{{!}} class="tf-cbox-l" {{!}} '''[[Fleet]]:'''
{{!}} class="righta" {{!}} [[{{{fleet}}}]]}}
{{!}} class="tf-cbox-r" {{!}} [[{{{fleet}}}]]}}
|- valign="top"
|- valign="top"
{{#if: {{{website|}}}|
{{#if: {{{website|}}}|
{{!}} class="left" {{!}} '''Website:'''
{{!}} class="tf-cbox-l" {{!}} '''Website:'''
{{!}} class="righta" {{!}} [{{{website}}} {{{website}}}]}}
{{!}} class="tf-cbox-r" {{!}} [{{{website}}} {{{website}}}]}}
|- valign="top"
|- valign="top"
{{#if: {{{image2|}}}|
{{#if: {{{image2|}}}|
{{!}} class="image" colspan="2" align="center" align="center" colspan="2" {{!}} {{sidebar image|{{{image2}}}}}}}
{{!}} class="tf-cbox-img" colspan="2" {{!}} {{sidebar image|{{{image2}}}}}}}
|- valign="top"
|- valign="top"
{{#if: {{{altimage|}}}|
{{#if: {{{altimage|}}}|
{{!}} class="image" colspan="2" align="center" align="center" colspan="2" {{!}} {{{altimage}}}}}
{{!}} class="tf-cbox-img" colspan="2" {{!}} {{{altimage}}}}}
|}
|}
[[Category:Chapters|{{{name}}}]]</includeonly><noinclude>
[[Category:Chapters|{{{name}}}]]</includeonly><noinclude>
Line 74: Line 70:
| name        =  
| name        =  
| hcn        =  
| hcn        =  
| branch      =
| city        =  
| city        =  
| class      =  
| class      =