Template:Infobox-shipclass: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m Bring Infobox-shipclass up to tf-cbox house style with section headers (tf-cbox-sec); fix Type->type #if bug |
||
| (4 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|}}}| | |||
{{#if: {{{name|}}}| | {{!}}- | ||
{{!}} class=" | {{!}} class="tf-cbox-l" {{!}} '''Name:''' | ||
{{!}} class=" | {{!}} class="tf-cbox-r" {{!}} {{{name}}}}} | ||
{{#if:{{{builders|}}}| | |||
{{#if: {{{builders|}}}| | {{!}}- | ||
{{!}} class=" | {{!}} class="tf-cbox-l" {{!}} '''Builders:''' | ||
{{!}} class=" | {{!}} class="tf-cbox-r" {{!}} {{{builders}}}}} | ||
{{#if:{{{operators|}}}| | |||
{{#if: {{{operators|}}}| | {{!}}- | ||
{{!}} class=" | {{!}} class="tf-cbox-l" {{!}} '''Operator(s):''' | ||
{{!}} class=" | {{!}} class="tf-cbox-r" {{!}} {{{operators}}}}} | ||
{{#if:{{{preceded|}}}| | |||
{{#if: {{{preceded|}}}| | {{!}}- | ||
{{!}} class=" | {{!}} class="tf-cbox-l" {{!}} '''Preceded by:''' | ||
{{!}} class=" | {{!}} class="tf-cbox-r" {{!}} [[{{{preceded}}}]]}} | ||
{{#if:{{{succeeded|}}}| | |||
{{#if: {{{succeeded|}}}| | {{!}}- | ||
{{!}} class=" | {{!}} class="tf-cbox-l" {{!}} '''Succeeded by:''' | ||
{{!}} class=" | {{!}} class="tf-cbox-r" {{!}} [[{{{succeeded}}}]]}} | ||
|- | {{#if:{{{active|}}}{{{reserve|}}}| | ||
{{!}}- | |||
{{!}} class="tf-cbox-sec" colspan="2" {{!}} Class Production (TRMN)}} | |||
{{#if: {{{ | {{#if:{{{active|}}}| | ||
{{!}} class=" | {{!}}- | ||
{{!}} class=" | {{!}} class="tf-cbox-l" {{!}} '''Active:''' | ||
{{!}} class="tf-cbox-r" {{!}} {{{active}}}}} | |||
{{#if: {{{ | {{#if:{{{reserve|}}}| | ||
{{!}} class=" | {{!}}- | ||
{{!}} class=" | {{!}} class="tf-cbox-l" {{!}} '''Reserve:''' | ||
|- | {{!}} class="tf-cbox-r" {{!}} {{{reserve}}}}} | ||
| | |- | ||
| class="tf-cbox-sec" colspan="2" | General Characteristics | |||
{{#if: {{{ | {{#if:{{{type|}}}| | ||
{{!}} class=" | {{!}}- | ||
{{!}} class=" | {{!}} class="tf-cbox-l" {{!}} '''Type:''' | ||
{{!}} class="tf-cbox-r" {{!}} {{{type}}}}} | |||
{{#if: {{{dimensions|}}}| | {{#if:{{{dimensions|}}}| | ||
{{!}} class=" | {{!}}- | ||
{{!}} class=" | {{!}} class="tf-cbox-l" {{!}} '''Dimensions:''' | ||
{{!}} class="tf-cbox-r" {{!}} {{{dimensions}}}}} | |||
{{#if: {{{speed|}}}| | {{#if:{{{speed|}}}| | ||
{{!}} class=" | {{!}}- | ||
{{!}} class=" | {{!}} class="tf-cbox-l" {{!}} '''Speed:''' | ||
{{!}} class="tf-cbox-r" {{!}} {{{speed}}}}} | |||
{{#if: {{{complement|}}}| | {{#if:{{{complement|}}}| | ||
{{!}} class=" | {{!}}- | ||
{{!}} class=" | {{!}} class="tf-cbox-l" {{!}} '''Crew Complement:''' | ||
{{!}} class="tf-cbox-r" {{!}} {{{complement}}}}} | |||
{{#if: {{{armament|}}}| | {{#if:{{{armament|}}}| | ||
{{!}} class=" | {{!}}- | ||
{{!}} class=" | {{!}} class="tf-cbox-l" {{!}} '''Armament:''' | ||
{{!}} class="tf-cbox-r" {{!}} {{{armament}}}}} | |||
{{#if: {{{aux|}}}| | {{#if:{{{aux|}}}| | ||
{{!}} class=" | {{!}}- | ||
{{!}} class=" | {{!}} class="tf-cbox-l" {{!}} '''Auxiliary Craft:''' | ||
|- | {{!}} class="tf-cbox-r" {{!}} {{{aux}}}}} | ||
{{#if:{{{footnotes|}}}| | |||
|} | {{!}}- | ||
{{!}} class="tf-cbox-foot" colspan="2" {{!}} {{{footnotes}}}}} | |||
<noinclude> | |}</includeonly><noinclude> | ||
<pre> | {{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 = | |||
| | |||
}} | |||
</noinclude> | </noinclude> | ||
Latest revision as of 18:39, 15 July 2026
- This template is not yet documented. Please create documentation here: Template:Infobox-shipclass/doc
Infobox-shipclass is the sidebar for ship-class pages, using the shared tf-cbox house style. Sections: Class Overview, Class Production (TRMN), General Characteristics.
Usage
{{Infobox-shipclass
| class = | image =
| name = | builders = | operators = | preceded = | succeeded =
| active = | reserve =
| type = | dimensions = | speed = | complement = | armament = | aux =
| footnotes =
}}