Difference between revisions of "Template:Ship"

From Emperor's Hammer Encyclopaedia Imperia
m (Added Template Category tag)
 
Line 1: Line 1:
 
{| width="250" align="right" cellpadding="3" cellspacing="0" class="sidebar" style="float: right; clear: right; font-size: smaller;"
 
{| width="250" align="right" cellpadding="3" cellspacing="0" class="sidebar" style="float: right; clear: right; font-size: smaller;"
 
|-
 
|-
{{!}} colspan="2" class="sidebar-heading-image" {{!}} {{{image}}}
+
{{#if: {{{image|}}}|
 +
{{!}} colspan="2" class="sidebar-heading-image" {{!}} {{{image}}}}}
 
|-
 
|-
 
| colspan="2" class="sidebar-heading-heading" | '''{{{name}}}'''
 
| colspan="2" class="sidebar-heading-heading" | '''{{{name}}}'''
Line 7: Line 8:
 
| colspan="2" class="sidebar-heading-subheading" | '''Production Information'''
 
| colspan="2" class="sidebar-heading-subheading" | '''Production Information'''
 
|-
 
|-
 +
{{#if: {{{manufac|}}}|
 
{{!}} class="sidebar-label" {{!}} Manufacturer:
 
{{!}} class="sidebar-label" {{!}} Manufacturer:
 
{{!}} class="sidebar-value" {{!}}  
 
{{!}} class="sidebar-value" {{!}}  
{{{manufac}}}
+
{{{manufac}}}}}
 
|-
 
|-
 +
{{#if: {{{proline|}}}|
 
{{!}} class="sidebar-label" {{!}} Product Line:
 
{{!}} class="sidebar-label" {{!}} Product Line:
 
{{!}} class="sidebar-value" {{!}}  
 
{{!}} class="sidebar-value" {{!}}  
{{{proline}}}
+
{{{proline}}}}}
 
|-
 
|-
 +
{{#if: {{{model|}}}|
 
{{!}} class="sidebar-label" {{!}} Model:
 
{{!}} class="sidebar-label" {{!}} Model:
 
{{!}} class="sidebar-value" {{!}}  
 
{{!}} class="sidebar-value" {{!}}  
{{{model}}}
+
{{{model}}}}}
 
|-
 
|-
 +
{{#if: {{{class|}}}|
 
{{!}} class="sidebar-label" {{!}} Class:
 
{{!}} class="sidebar-label" {{!}} Class:
 
{{!}} class="sidebar-value" {{!}}  
 
{{!}} class="sidebar-value" {{!}}  
{{{class}}}
+
{{{class}}}}}
 
|-
 
|-
 
| colspan="2" class="sidebar-heading-subheading" | '''Technical Specifications'''
 
| colspan="2" class="sidebar-heading-subheading" | '''Technical Specifications'''
 
|-
 
|-
 +
{{#if: {{{length|}}}|
 
{{!}} class="sidebar-label" {{!}} Length:
 
{{!}} class="sidebar-label" {{!}} Length:
 
{{!}} class="sidebar-value" {{!}}  
 
{{!}} class="sidebar-value" {{!}}  
{{{length}}}
+
{{{length}}}}}
 
|-
 
|-
 +
{{#if: {{{width|}}}|
 
{{!}} class="sidebar-label" {{!}} Width:
 
{{!}} class="sidebar-label" {{!}} Width:
 
{{!}} class="sidebar-value" {{!}}  
 
{{!}} class="sidebar-value" {{!}}  
{{{width}}}
+
{{{width}}}}}
 
|-
 
|-
 +
{{#if: {{{height|}}}|
 
{{!}} class="sidebar-label" {{!}} Height & Depth:
 
{{!}} class="sidebar-label" {{!}} Height & Depth:
 
{{!}} class="sidebar-value" {{!}}  
 
{{!}} class="sidebar-value" {{!}}  
{{{height}}}
+
{{{height}}}}}
 
|-
 
|-
 +
{{#if: {{{engine|}}}|
 
{{!}} class="sidebar-label" {{!}} Engine Units:
 
{{!}} class="sidebar-label" {{!}} Engine Units:
 
{{!}} class="sidebar-value" {{!}}  
 
{{!}} class="sidebar-value" {{!}}  
{{{engine}}}
+
{{{engine}}}}}
 
|-
 
|-
 +
{{#if: {{{hyperdrive|}}}|
 
{{!}} class="sidebar-label" {{!}} Hyperdrive Rating:
 
{{!}} class="sidebar-label" {{!}} Hyperdrive Rating:
 
{{!}} class="sidebar-value" {{!}}  
 
{{!}} class="sidebar-value" {{!}}  
{{{hyperdrive}}}
+
{{{hyperdrive}}}}}
 
|-
 
|-
 +
{{#if: {{{output|}}}|
 
{{!}} class="sidebar-label" {{!}} Power Output:
 
{{!}} class="sidebar-label" {{!}} Power Output:
 
{{!}} class="sidebar-value" {{!}}  
 
{{!}} class="sidebar-value" {{!}}  
{{{output}}}
+
{{{output}}}}}
 
|-
 
|-
 +
{{#if: {{{core|}}}|
 
{{!}} class="sidebar-label" {{!}} Power Core:
 
{{!}} class="sidebar-label" {{!}} Power Core:
 
{{!}} class="sidebar-value" {{!}}  
 
{{!}} class="sidebar-value" {{!}}  
{{{core}}}
+
{{{core}}}}}
 
|-
 
|-
 +
{{#if: {{{shields|}}}|
 
{{!}} class="sidebar-label" {{!}} Shield Rating:
 
{{!}} class="sidebar-label" {{!}} Shield Rating:
 
{{!}} class="sidebar-value" {{!}}  
 
{{!}} class="sidebar-value" {{!}}  
{{{sheilds}}}
+
{{{shields}}}}}
 
|-
 
|-
 +
{{#if: {{{hull|}}}|
 
{{!}} class="sidebar-label" {{!}} Hull Rating:
 
{{!}} class="sidebar-label" {{!}} Hull Rating:
 
{{!}} class="sidebar-value" {{!}}  
 
{{!}} class="sidebar-value" {{!}}  
{{{hull}}}
+
{{{hull}}}}}
 
|-
 
|-
 +
{{#if: {{{weapons|}}}|
 
{{!}} class="sidebar-label" {{!}} Armaments:
 
{{!}} class="sidebar-label" {{!}} Armaments:
 
{{!}} class="sidebar-value" {{!}}  
 
{{!}} class="sidebar-value" {{!}}  
{{{weapons}}}
+
{{{weapons}}}}}
 
|-
 
|-
 +
{{#if: {{{forces|}}}|
 
{{!}} class="sidebar-label" {{!}} Additional Forces:
 
{{!}} class="sidebar-label" {{!}} Additional Forces:
 
{{!}} class="sidebar-value" {{!}}  
 
{{!}} class="sidebar-value" {{!}}  
{{{forces}}}
+
{{{forces}}}}}
 
|-
 
|-
 +
{{#if: {{{crew|}}}|
 
{{!}} class="sidebar-label" {{!}} Crew:
 
{{!}} class="sidebar-label" {{!}} Crew:
 
{{!}} class="sidebar-value" {{!}}  
 
{{!}} class="sidebar-value" {{!}}  
{{{crew}}}
+
{{{crew}}}}}
 
|-
 
|-
 +
{{#if: {{{pass|}}}|
 
{{!}} class="sidebar-label" {{!}} Passengers:
 
{{!}} class="sidebar-label" {{!}} Passengers:
 
{{!}} class="sidebar-value" {{!}}  
 
{{!}} class="sidebar-value" {{!}}  
{{{pass}}}
+
{{{pass}}}}}
 
|-
 
|-
 +
{{#if: {{{cargo|}}}|
 
{{!}} class="sidebar-label" {{!}} Cargo Capacity:
 
{{!}} class="sidebar-label" {{!}} Cargo Capacity:
 
{{!}} class="sidebar-value" {{!}}  
 
{{!}} class="sidebar-value" {{!}}  
{{{cargo}}}
+
{{{cargo}}}}}
 
|-
 
|-
 +
{{#if: {{{consumables|}}}|
 
{{!}} class="sidebar-label" {{!}} Consumables:
 
{{!}} class="sidebar-label" {{!}} Consumables:
 
{{!}} class="sidebar-value" {{!}}  
 
{{!}} class="sidebar-value" {{!}}  
{{{foodstuff}}}
+
{{{foodstuff}}}}}
 
|-
 
|-
 
| colspan="2" class="sidebar-heading-subheading" | '''Fleet Information'''
 
| colspan="2" class="sidebar-heading-subheading" | '''Fleet Information'''
 
|-
 
|-
 +
{{#if: {{{bg|}}}|
 
{{!}} class="sidebar-label" {{!}} Battlegroup:
 
{{!}} class="sidebar-label" {{!}} Battlegroup:
 
{{!}} class="sidebar-value" {{!}}  
 
{{!}} class="sidebar-value" {{!}}  
{{{bg}}}
+
{{{bg}}}}}
 
|-
 
|-
 +
{{#if: {{{mos|}}}|
 
{{!}} class="sidebar-label" {{!}} Duty Statement:
 
{{!}} class="sidebar-label" {{!}} Duty Statement:
 
{{!}} class="sidebar-value" {{!}}  
 
{{!}} class="sidebar-value" {{!}}  
{{{mos}}}
+
{{{mos}}}}}
 
|-
 
|-
 +
{{#if: {{{vip|}}}|
 
{{!}} class="sidebar-label" {{!}} Commadant:
 
{{!}} class="sidebar-label" {{!}} Commadant:
 
{{!}} class="sidebar-value" {{!}}  
 
{{!}} class="sidebar-value" {{!}}  
{{{vip}}}
+
{{{vip}}}}}
 
|-
 
|-
 +
{{#if: {{{capt|}}}|
 
{{!}} class="sidebar-label" {{!}} Ship Captain:
 
{{!}} class="sidebar-label" {{!}} Ship Captain:
 
{{!}} class="sidebar-value" {{!}}  
 
{{!}} class="sidebar-value" {{!}}  
{{{capt}}}
+
{{{capt}}}}}
 
|-
 
|-
 +
{{#if: {{{support|}}}|
 
{{!}} class="sidebar-label" {{!}} Vessel Support:
 
{{!}} class="sidebar-label" {{!}} Vessel Support:
 
{{!}} class="sidebar-value" {{!}}  
 
{{!}} class="sidebar-value" {{!}}  
{{{support}}}
+
{{{support}}}}}
 
|-
 
|-
 +
{{#if: {{{affiliation|}}}|
 
{{!}} class="sidebar-label" {{!}} Affiliation:
 
{{!}} class="sidebar-label" {{!}} Affiliation:
 
{{!}} class="sidebar-value" {{!}}  
 
{{!}} class="sidebar-value" {{!}}  
{{{affiliation}}}
+
{{{affiliation}}}}}
 
|-
 
|-
 
   |colspan="2" | [[Template:Ship|[ Source ]]]
 
   |colspan="2" | [[Template:Ship|[ Source ]]]

Latest revision as of 07:08, 9 February 2023

Usage

To use: Paste the following text into the desired character article, and fill in the appropriate fields.

{{Ship
|image=
|name=
|manufac=
|proline=
|model=
|class=
|length=
|width=
|height=
|engine=
|hyperdrive=
|output=
|core=
|shields=
|hull=
|weapons=
|forces=
|crew=
|pass=
|cargo=
|foodstuff=
|bg=
|mos=
|vip=
|capt=
|support=
|affiliation
}}