Template:Infobox-shipclass: Difference between revisions

mNo edit summary
m Bring Infobox-shipclass up to tf-cbox house style with section headers (tf-cbox-sec); fix Type->type #if bug
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="sidebar" style="border:1px solid darkgray; width: 25em; text-align: left; font-size: 90%; float:right; background-color:#000; color: white;"
<includeonly><templatestyles src="Infobox-chapter/styles.css" />
|-  
{| class="sidebar tf-cbox"
|  width="100%" colspan="2" style="text-align: center;" | {{{image}}}
{{#if:{{{image|}}}|
{{!}}-
{{!}} class="tf-cbox-img" colspan="2" {{!}} {{{image}}}}}
|-
|-
| width="100%" colspan="2" style="background-color: #bb1100; color: #000; font-size: large; text-align: center;" | '''{{{class}}}'''
| class="tf-cbox-name tf-b-default" colspan="2" | '''{{{class|{{PAGENAME}}}}}'''
|-  
|-
| cellpadding="0" width="100%" colspan="2" style="background-color: #edad00; color: #000;" | <center>'''Class Overview'''</center>
| class="tf-cbox-sec" colspan="2" | Class Overview
|- 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:{{{builders|}}}|
{{#if: {{{builders|}}}|
{{!}}-
{{!}} class="left" {{!}} '''Builders:'''
{{!}} class="tf-cbox-l" {{!}} '''Builders:'''
{{!}} class="righta" {{!}} {{{builders}}}}}
{{!}} class="tf-cbox-r" {{!}} {{{builders}}}}}
|- valign="top"
{{#if:{{{operators|}}}|
{{#if: {{{operators|}}}|
{{!}}-
{{!}} class="left" {{!}} '''Operator(s):'''
{{!}} class="tf-cbox-l" {{!}} '''Operator(s):'''
{{!}} class="righta" {{!}} {{{operators}}}}}
{{!}} class="tf-cbox-r" {{!}} {{{operators}}}}}
|- valign="top"
{{#if:{{{preceded|}}}|
{{#if: {{{preceded|}}}|
{{!}}-
{{!}} class="left" {{!}} '''Preceded By:'''
{{!}} class="tf-cbox-l" {{!}} '''Preceded by:'''
{{!}} class="righta" {{!}} [[{{{preceded}}}]]}}
{{!}} class="tf-cbox-r" {{!}} [[{{{preceded}}}]]}}
|- valign="top"
{{#if:{{{succeeded|}}}|
{{#if: {{{succeeded|}}}|
{{!}}-
{{!}} class="left" {{!}} '''Succeeded By:'''
{{!}} class="tf-cbox-l" {{!}} '''Succeeded by:'''
{{!}} class="righta" {{!}} [[{{{succeeded}}}]]}}
{{!}} class="tf-cbox-r" {{!}} [[{{{succeeded}}}]]}}
|- valign="top"
{{#if:{{{active|}}}{{{reserve|}}}|
|  cellpadding="0" width="100%" colspan="2" style="background-color: #edad00; color: #000;" | <center>'''Class Production (TRMN)'''</center>|- valign="top"
{{!}}-
|- valign="top"
{{!}} class="tf-cbox-sec" colspan="2" {{!}} Class Production (TRMN)}}
{{#if: {{{commission|}}}|
{{#if:{{{active|}}}|
{{!}} class="left" {{!}} '''Active:'''
{{!}}-
{{!}} class="righta" {{!}} {{{commission}}}}}
{{!}} class="tf-cbox-l" {{!}} '''Active:'''
|- valign="top"
{{!}} class="tf-cbox-r" {{!}} {{{active}}}}}
{{#if: {{{commission|}}}|
{{#if:{{{reserve|}}}|
{{!}} class="left" {{!}} '''Reserve:'''
{{!}}-
{{!}} class="righta" {{!}} {{{reserve}}}}}
{{!}} class="tf-cbox-l" {{!}} '''Reserve:'''
|-  
{{!}} class="tf-cbox-r" {{!}} {{{reserve}}}}}
| cellpadding="0" width="100%" colspan="2" style="background-color: #edad00; color: #000;" | <center>'''General Characteristics'''</center>
|-
|- valign="top"
| class="tf-cbox-sec" colspan="2" | General Characteristics
{{#if: {{{Type|}}}|
{{#if:{{{type|}}}|
{{!}} class="left" {{!}} '''Type:'''
{{!}}-
{{!}} class="righta" {{!}} {{{type}}}}}
{{!}} class="tf-cbox-l" {{!}} '''Type:'''
|- valign="top"
{{!}} class="tf-cbox-r" {{!}} {{{type}}}}}
{{#if: {{{dimensions|}}}|
{{#if:{{{dimensions|}}}|
{{!}} class="left" {{!}} '''Dimensions:'''
{{!}}-
{{!}} class="righta" {{!}} {{{dimensions}}}}}
{{!}} class="tf-cbox-l" {{!}} '''Dimensions:'''
|- valign="top"
{{!}} class="tf-cbox-r" {{!}} {{{dimensions}}}}}
{{#if: {{{speed|}}}|
{{#if:{{{speed|}}}|
{{!}} class="left" {{!}} '''Speed:'''
{{!}}-
{{!}} class="righta" {{!}} {{{speed}}}}}
{{!}} class="tf-cbox-l" {{!}} '''Speed:'''
|- valign="top"
{{!}} class="tf-cbox-r" {{!}} {{{speed}}}}}
{{#if: {{{complement|}}}|
{{#if:{{{complement|}}}|
{{!}} class="left" {{!}} '''Crew Complement:'''
{{!}}-
{{!}} class="righta" {{!}} {{{complement}}}}}
{{!}} class="tf-cbox-l" {{!}} '''Crew Complement:'''
|- valign="top"
{{!}} class="tf-cbox-r" {{!}} {{{complement}}}}}
{{#if: {{{armament|}}}|
{{#if:{{{armament|}}}|
{{!}} class="left" {{!}} '''Armament:'''
{{!}}-
{{!}} class="righta" {{!}} {{{armament}}}}}
{{!}} class="tf-cbox-l" {{!}} '''Armament:'''
|- valign="top"
{{!}} class="tf-cbox-r" {{!}} {{{armament}}}}}
{{#if: {{{aux|}}}|
{{#if:{{{aux|}}}|
{{!}} class="left" {{!}} '''Auxiliary Craft:'''
{{!}}-
{{!}} class="righta" {{!}} {{{aux}}}}}
{{!}} class="tf-cbox-l" {{!}} '''Auxiliary Craft:'''
|-  
{{!}} class="tf-cbox-r" {{!}} {{{aux}}}}}
| colspan="2" style="font-size: smaller;" | {{{footnotes|}}}
{{#if:{{{footnotes|}}}|
|}
{{!}}-
 
{{!}} class="tf-cbox-foot" colspan="2" {{!}} {{{footnotes}}}}}
<noinclude>
|}</includeonly><noinclude>
<pre><nowiki>
{{documentation}}
{{Infobox-shipclass
'''Infobox-shipclass''' is the sidebar for ship-class pages, using the shared '''tf-cbox''' house style. Sections: Class Overview, Class Production (TRMN), General Characteristics.
| class =  
== Usage ==
| image =  
<pre>{{Infobox-shipclass
| name =  
| class = | image =
| builders =  
| name = | builders = | operators = | preceded = | succeeded =
| operators =  
| active = | reserve =
| preceded =  
| type = | dimensions = | speed = | complement = | armament = | aux =
| succeeded =  
| footnotes =
| active =  
}}</pre>
| reserve =  
[[Category:Templates]]
| type =  
[[Category:Sidebar templates|{{PAGENAME}}]]
| dimensions =  
| speed =  
| complement =  
| armament =  
| aux =  
}}
</nowiki></pre>
</noinclude>
</noinclude>
<noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude>