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
 
(6 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>
|-
|-
| width="31%" | '''Name:'''
| class="tf-cbox-sec" colspan="2" | Class Overview
|  width="69%" | {{{name}}}
{{#if:{{{name|}}}|
|-  
{{!}}-
|  width="31%" | '''Builders:'''
{{!}} class="tf-cbox-l" {{!}} '''Name:'''
|  width="69%" | {{{builders}}}
{{!}} class="tf-cbox-r" {{!}} {{{name}}}}}
|-  
{{#if:{{{builders|}}}|
|  width="31%" | '''Operators:'''
{{!}}-
|  width="69%" | {{{operators}}}
{{!}} class="tf-cbox-l" {{!}} '''Builders:'''
|-  
{{!}} class="tf-cbox-r" {{!}} {{{builders}}}}}
|  width="31%" | '''Preceded By:'''
{{#if:{{{operators|}}}|
|  width="69%" | {{{preceded}}}
{{!}}-
|-  
{{!}} class="tf-cbox-l" {{!}} '''Operator(s):'''
|  width="31%" | '''Succeeded By:'''
{{!}} class="tf-cbox-r" {{!}} {{{operators}}}}}
|  width="69%" | {{{succeeded}}}
{{#if:{{{preceded|}}}|
|-
{{!}}-
|  width="31%" | '''In Commission:'''
{{!}} class="tf-cbox-l" {{!}} '''Preceded by:'''
|  width="69%" | {{{commission}}}
{{!}} class="tf-cbox-r" {{!}} [[{{{preceded}}}]]}}
|-  
{{#if:{{{succeeded|}}}|
|  width="31%" | '''Planned:'''
{{!}}-
|  width="69%" | {{{planned}}}
{{!}} class="tf-cbox-l" {{!}} '''Succeeded by:'''
|-  
{{!}} class="tf-cbox-r" {{!}} [[{{{succeeded}}}]]}}
|  width="31%" | '''Constructed:'''
{{#if:{{{active|}}}{{{reserve|}}}|
|  width="69%" | {{{constructed}}}
{{!}}-
|-  
{{!}} class="tf-cbox-sec" colspan="2" {{!}} Class Production (TRMN)}}
|  width="31%" | '''Active:'''
{{#if:{{{active|}}}|
|  width="69%" | {{{active}}}
{{!}}-
|-
{{!}} class="tf-cbox-l" {{!}} '''Active:'''
|  cellpadding="0" width="100%" colspan="2" style="background-color: #edad00; color: #000;" | <center>'''General Characteristics'''</center>
{{!}} class="tf-cbox-r" {{!}} {{{active}}}}}
{{#if:{{{reserve|}}}|
{{!}}-
{{!}} class="tf-cbox-l" {{!}} '''Reserve:'''
{{!}} class="tf-cbox-r" {{!}} {{{reserve}}}}}
|-
|-
| width="31%" | '''Type:'''
| class="tf-cbox-sec" colspan="2" | General Characteristics
|  width="69%" | {{{type}}}
{{#if:{{{type|}}}|
|-  
{{!}}-
|  width="31%" | '''Dimensions:'''
{{!}} class="tf-cbox-l" {{!}} '''Type:'''
|  width="69%" | {{{dimensions}}}
{{!}} class="tf-cbox-r" {{!}} {{{type}}}}}
|-  
{{#if:{{{dimensions|}}}|
|  width="31%" | '''Propulsion:'''
{{!}}-
|  width="69%" | {{{propulsion}}}
{{!}} class="tf-cbox-l" {{!}} '''Dimensions:'''
|-  
{{!}} class="tf-cbox-r" {{!}} {{{dimensions}}}}}
|  width="31%" | '''Speed:'''
{{#if:{{{speed|}}}|
|  width="69%" | {{{speed}}}
{{!}}-
|-
{{!}} class="tf-cbox-l" {{!}} '''Speed:'''
|  width="31%" | '''Range:'''
{{!}} class="tf-cbox-r" {{!}} {{{speed}}}}}
|  width="69%" | {{{range}}}
{{#if:{{{complement|}}}|
|-  
{{!}}-
|  width="31%" | '''Complement:'''
{{!}} class="tf-cbox-l" {{!}} '''Crew Complement:'''
|  width="69%" | {{{complement}}}
{{!}} class="tf-cbox-r" {{!}} {{{complement}}}}}
|-  
{{#if:{{{armament|}}}|
|  width="31%" | '''Armament:'''
{{!}}-
|  width="69%" | {{{armament}}}
{{!}} class="tf-cbox-l" {{!}} '''Armament:'''
|-
{{!}} class="tf-cbox-r" {{!}} {{{armament}}}}}
|  width="31%" | '''Armor:'''
{{#if:{{{aux|}}}|
|  width="69%" | {{{armor}}}
{{!}}-
|-  
{{!}} class="tf-cbox-l" {{!}} '''Auxiliary Craft:'''
|  width="31%" | '''Auxiliary Craft:'''
{{!}} class="tf-cbox-r" {{!}} {{{aux}}}}}
|  width="69%" | {{{aux}}}
{{#if:{{{footnotes|}}}|
|-  
{{!}}-
| colspan="2" style="font-size: smaller;" | {{{footnotes|}}}
{{!}} class="tf-cbox-foot" colspan="2" {{!}} {{{footnotes}}}}}
|}
|}</includeonly><noinclude>
 
{{documentation}}
<noinclude>
'''Infobox-shipclass''' is the sidebar for ship-class pages, using the shared '''tf-cbox''' house style. Sections: Class Overview, Class Production (TRMN), General Characteristics.
<pre><nowiki>
== Usage ==
{{Infobox-shipclass
<pre>{{Infobox-shipclass
| class =  
| class = | image =
| image =  
| name = | builders = | operators = | preceded = | succeeded =
| name =  
| active = | reserve =
| builders =  
| type = | dimensions = | speed = | complement = | armament = | aux =
| operators =  
| footnotes =
| preceded =  
}}</pre>
| succeeded =  
[[Category:Templates]]
| commission =  
[[Category:Sidebar templates|{{PAGENAME}}]]
| planned =
| constructed =
| active =  
| type =  
| dimensions =  
| propulsion =
| speed =  
| range =
| complement =  
| armament =  
| armor =  
| aux =  
}}
</nowiki></pre>
</noinclude>
</noinclude>
<noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude>