Difference between revisions of "Template:Ship"

From Emperor's Hammer Encyclopaedia Imperia
 
(2 intermediate revisions by 2 users not shown)
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'''
 
|-
 
|-
{{!}} class="sidebar-heading-label" {{!}} Manufacturer:
+
{{#if: {{{manufac|}}}|
{{!}} class="sidebar-heading-value" {{!}}  
+
{{!}} class="sidebar-label" {{!}} Manufacturer:
{{{manufac}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{manufac}}}}}
 
|-
 
|-
{{!}} class="sidebar-heading-label" {{!}} Product Line:
+
{{#if: {{{proline|}}}|
{{!}} class="sidebar-heading-value" {{!}}  
+
{{!}} class="sidebar-label" {{!}} Product Line:
{{{proline}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{proline}}}}}
 
|-
 
|-
{{!}} class="sidebar-heading-label" {{!}} Model:
+
{{#if: {{{model|}}}|
{{!}} class="sidebar-heading-value" {{!}}  
+
{{!}} class="sidebar-label" {{!}} Model:
{{{model}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{model}}}}}
 
|-
 
|-
{{!}} class="sidebar-heading-label" {{!}} Class:
+
{{#if: {{{class|}}}|
{{!}} class="sidebar-heading-value" {{!}}  
+
{{!}} class="sidebar-label" {{!}} Class:
{{{class}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{class}}}}}
 
|-
 
|-
 
| colspan="2" class="sidebar-heading-subheading" | '''Technical Specifications'''
 
| colspan="2" class="sidebar-heading-subheading" | '''Technical Specifications'''
 
|-
 
|-
{{!}} class="sidebar-heading-label" {{!}} Length:
+
{{#if: {{{length|}}}|
{{!}} class="sidebar-heading-value" {{!}}  
+
{{!}} class="sidebar-label" {{!}} Length:
{{{length}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{length}}}}}
 
|-
 
|-
{{!}} class="sidebar-heading-label" {{!}} Width:
+
{{#if: {{{width|}}}|
{{!}} class="sidebar-heading-value" {{!}}  
+
{{!}} class="sidebar-label" {{!}} Width:
{{{width}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{width}}}}}
 
|-
 
|-
{{!}} class="sidebar-heading-label" {{!}} Height & Depth:
+
{{#if: {{{height|}}}|
{{!}} class="sidebar-heading-value" {{!}}  
+
{{!}} class="sidebar-label" {{!}} Height & Depth:
{{{height}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{height}}}}}
 
|-
 
|-
{{!}} class="sidebar-heading-label" {{!}} Engine Units:
+
{{#if: {{{engine|}}}|
{{!}} class="sidebar-heading-value" {{!}}  
+
{{!}} class="sidebar-label" {{!}} Engine Units:
{{{engine}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{engine}}}}}
 
|-
 
|-
{{!}} class="sidebar-heading-label" {{!}} Hyperdrive Rating:
+
{{#if: {{{hyperdrive|}}}|
{{!}} class="sidebar-heading-value" {{!}}  
+
{{!}} class="sidebar-label" {{!}} Hyperdrive Rating:
{{{hyperdrive}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{hyperdrive}}}}}
 
|-
 
|-
{{!}} class="sidebar-heading-label" {{!}} Power Output:
+
{{#if: {{{output|}}}|
{{!}} class="sidebar-heading-value" {{!}}  
+
{{!}} class="sidebar-label" {{!}} Power Output:
{{{output}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{output}}}}}
 
|-
 
|-
{{!}} class="sidebar-heading-label" {{!}} Power Core:
+
{{#if: {{{core|}}}|
{{!}} class="sidebar-heading-value" {{!}}  
+
{{!}} class="sidebar-label" {{!}} Power Core:
{{{core}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{core}}}}}
 
|-
 
|-
{{!}} class="sidebar-heading-label" {{!}} Shield Rating:
+
{{#if: {{{shields|}}}|
{{!}} class="sidebar-heading-value" {{!}}  
+
{{!}} class="sidebar-label" {{!}} Shield Rating:
{{{sheilds}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{shields}}}}}
 
|-
 
|-
{{!}} class="sidebar-heading-label" {{!}} Hull Rating:
+
{{#if: {{{hull|}}}|
{{!}} class="sidebar-heading-value" {{!}}  
+
{{!}} class="sidebar-label" {{!}} Hull Rating:
{{{hull}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{hull}}}}}
 
|-
 
|-
{{!}} class="sidebar-heading-label" {{!}} Armaments:
+
{{#if: {{{weapons|}}}|
{{!}} class="sidebar-heading-value" {{!}}  
+
{{!}} class="sidebar-label" {{!}} Armaments:
{{{weapons}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{weapons}}}}}
 
|-
 
|-
{{!}} class="sidebar-heading-label" {{!}} Additional Forces:
+
{{#if: {{{forces|}}}|
{{!}} class="sidebar-heading-value" {{!}}  
+
{{!}} class="sidebar-label" {{!}} Additional Forces:
{{{forces}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{forces}}}}}
 
|-
 
|-
{{!}} class="sidebar-heading-label" {{!}} Crew:
+
{{#if: {{{crew|}}}|
{{!}} class="sidebar-heading-value" {{!}}  
+
{{!}} class="sidebar-label" {{!}} Crew:
{{{crew}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{crew}}}}}
 
|-
 
|-
{{!}} class="sidebar-heading-label" {{!}} Passengers:
+
{{#if: {{{pass|}}}|
{{!}} class="sidebar-heading-value" {{!}}  
+
{{!}} class="sidebar-label" {{!}} Passengers:
{{{pass}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{pass}}}}}
 
|-
 
|-
{{!}} class="sidebar-heading-label" {{!}} Cargo Capacity:
+
{{#if: {{{cargo|}}}|
{{!}} class="sidebar-heading-value" {{!}}  
+
{{!}} class="sidebar-label" {{!}} Cargo Capacity:
{{{cargo}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{cargo}}}}}
 
|-
 
|-
{{!}} class="sidebar-heading-label" {{!}} Consumables:
+
{{#if: {{{consumables|}}}|
{{!}} class="sidebar-heading-value" {{!}}  
+
{{!}} class="sidebar-label" {{!}} Consumables:
{{{foodstuff}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{foodstuff}}}}}
 
|-
 
|-
 
| colspan="2" class="sidebar-heading-subheading" | '''Fleet Information'''
 
| colspan="2" class="sidebar-heading-subheading" | '''Fleet Information'''
 
|-
 
|-
{{!}} class="sidebar-heading-label" {{!}} Battlegroup:
+
{{#if: {{{bg|}}}|
{{!}} class="sidebar-heading-value" {{!}}  
+
{{!}} class="sidebar-label" {{!}} Battlegroup:
{{{bg}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{bg}}}}}
 
|-
 
|-
{{!}} class="sidebar-heading-label" {{!}} Duty Statement:
+
{{#if: {{{mos|}}}|
{{!}} class="sidebar-heading-value" {{!}}  
+
{{!}} class="sidebar-label" {{!}} Duty Statement:
{{{mos}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{mos}}}}}
 
|-
 
|-
{{!}} class="sidebar-heading-label" {{!}} Commadant:
+
{{#if: {{{vip|}}}|
{{!}} class="sidebar-heading-value" {{!}}  
+
{{!}} class="sidebar-label" {{!}} Commadant:
{{{vip}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{vip}}}}}
 
|-
 
|-
{{!}} class="sidebar-heading-label" {{!}} Ship Captain:
+
{{#if: {{{capt|}}}|
{{!}} class="sidebar-heading-value" {{!}}  
+
{{!}} class="sidebar-label" {{!}} Ship Captain:
{{{capt}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{capt}}}}}
 
|-
 
|-
{{!}} class="sidebar-heading-label" {{!}} Vessel Support:
+
{{#if: {{{support|}}}|
{{!}} class="sidebar-heading-value" {{!}}  
+
{{!}} class="sidebar-label" {{!}} Vessel Support:
{{{support}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{support}}}}}
 
|-
 
|-
{{!}} class="sidebar-heading-label" {{!}} Affiliation:
+
{{#if: {{{affiliation|}}}|
{{!}} class="sidebar-heading-value" {{!}}  
+
{{!}} class="sidebar-label" {{!}} Affiliation:
{{{affiliation}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{affiliation}}}}}
 
|-
 
|-
 
   |colspan="2" | [[Template:Ship|[ Source ]]]
 
   |colspan="2" | [[Template:Ship|[ Source ]]]
Line 147: Line 173:
 
}}
 
}}
 
</pre>
 
</pre>
 +
 +
__NOTOC__
 +
[[Category:Templates]]
 +
</noinclude>

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
}}