Template:Infobox-shipclass: Difference between revisions
Created page with "{| class="sidebar" style="border:1px solid darkgray; width: 25em; text-align: left; font-size: 90%; float:right; background-color:#232730;" |- | width="100%" colspan="2" sty..." |
m Bring Infobox-shipclass up to tf-cbox house style with section headers (tf-cbox-sec); fix Type->type #if bug |
||
| (8 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{| class="sidebar | <includeonly><templatestyles src="Infobox-chapter/styles.css" /> | ||
|- | {| class="sidebar tf-cbox" | ||
{{#if:{{{image|}}}| | |||
{{!}}- | |||
{{!}} class="tf-cbox-img" colspan="2" {{!}} {{{image}}}}} | |||
|- | |- | ||
| | | class="tf-cbox-name tf-b-default" colspan="2" | '''{{{class|{{PAGENAME}}}}}''' | ||
|- | |- | ||
| | | class="tf-cbox-sec" colspan="2" | Class Overview | ||
{{#if:{{{name|}}}| | |||
|- | {{!}}- | ||
{{!}} class="tf-cbox-l" {{!}} '''Name:''' | |||
{{!}} class="tf-cbox-r" {{!}} {{{name}}}}} | |||
|- | {{#if:{{{builders|}}}| | ||
{{!}}- | |||
{{!}} class="tf-cbox-l" {{!}} '''Builders:''' | |||
|- | {{!}} class="tf-cbox-r" {{!}} {{{builders}}}}} | ||
{{#if:{{{operators|}}}| | |||
{{!}}- | |||
|- | {{!}} class="tf-cbox-l" {{!}} '''Operator(s):''' | ||
{{!}} class="tf-cbox-r" {{!}} {{{operators}}}}} | |||
{{#if:{{{preceded|}}}| | |||
{{!}}- | |||
{{!}} class="tf-cbox-l" {{!}} '''Preceded by:''' | |||
{{!}} class="tf-cbox-r" {{!}} [[{{{preceded}}}]]}} | |||
{{#if:{{{succeeded|}}}| | |||
{{!}}- | |||
{{!}} class="tf-cbox-l" {{!}} '''Succeeded by:''' | |||
{{!}} class="tf-cbox-r" {{!}} [[{{{succeeded}}}]]}} | |||
{{#if:{{{active|}}}{{{reserve|}}}| | |||
{{!}}- | |||
|- | {{!}} class="tf-cbox-sec" colspan="2" {{!}} Class Production (TRMN)}} | ||
{{#if:{{{active|}}}| | |||
{{!}}- | |||
{{!}} class="tf-cbox-l" {{!}} '''Active:''' | |||
{{!}} class="tf-cbox-r" {{!}} {{{active}}}}} | |||
{{#if:{{{reserve|}}}| | |||
{{!}}- | |||
{{!}} class="tf-cbox-l" {{!}} '''Reserve:''' | |||
{{!}} class="tf-cbox-r" {{!}} {{{reserve}}}}} | |||
|- | |- | ||
| | | class="tf-cbox-sec" colspan="2" | General Characteristics | ||
{{#if:{{{type|}}}| | |||
{{!}}- | |||
{{!}} class="tf-cbox-l" {{!}} '''Type:''' | |||
{{!}} class="tf-cbox-r" {{!}} {{{type}}}}} | |||
{{#if:{{{dimensions|}}}| | |||
{{!}}- | |||
{{!}} class="tf-cbox-l" {{!}} '''Dimensions:''' | |||
|- | {{!}} class="tf-cbox-r" {{!}} {{{dimensions}}}}} | ||
{{#if:{{{speed|}}}| | |||
{{!}}- | |||
{{!}} class="tf-cbox-l" {{!}} '''Speed:''' | |||
{{!}} class="tf-cbox-r" {{!}} {{{speed}}}}} | |||
{{#if:{{{complement|}}}| | |||
{{!}}- | |||
{{!}} class="tf-cbox-l" {{!}} '''Crew Complement:''' | |||
{{!}} class="tf-cbox-r" {{!}} {{{complement}}}}} | |||
|- | {{#if:{{{armament|}}}| | ||
{{!}}- | |||
{{!}} class="tf-cbox-l" {{!}} '''Armament:''' | |||
{{!}} class="tf-cbox-r" {{!}} {{{armament}}}}} | |||
{{#if:{{{aux|}}}| | |||
{{!}}- | |||
{{!}} class="tf-cbox-l" {{!}} '''Auxiliary Craft:''' | |||
{{!}} class="tf-cbox-r" {{!}} {{{aux}}}}} | |||
{{#if:{{{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> | == Usage == | ||
{{ | <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]] | ||
| | [[Category:Sidebar templates|{{PAGENAME}}]] | ||
| | |||
| type = | |||
| dimensions = | |||
| speed = | |||
| complement = | |||
| armament = | |||
| | |||
| | |||
}} | |||
</noinclude> | </noinclude> | ||