Difference between revisions of "Template:EH Ship"

From Emperor's Hammer Encyclopaedia Imperia
m
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| width="250" align="right" cellpadding="3" cellspacing="0" style="border: 2px #333333 solid; background: #000000; border-top-right-radius: .8em; border-top-left-radius: .8em; -moz-border-radius-topright: .8em; -moz-border-radius-topleft: .8em; -webkit-border-top-right-radius: .8em; -webkit-border-top-left-radius: .8em; border-bottom-right-radius: .8em; border-bottom-left-radius: .8em; -moz-border-radius-bottomright: .8em; -moz-border-radius-bottomleft: .8em; -webkit-border-bottom-right-radius: .8em; -webkit-border-bottom-left-radius: .8em; margin-top: -1.4em; margin: 0 0 1em 1em; font-size: 12px;color: #ffffff;"
+
{| width="250" align="right" cellpadding="3" cellspacing="0" style="font-size: smaller;" class="sidebar sidebar-ship"
 +
<includeonly>[[Category:Ships of the Emperor's Hammer]]</includeonly>
 
|-
 
|-
 
+
{{#if: {{{image|}}}|
{{!}} colspan="2" bgcolor={{{bgcolor_value|#222222; style="background: #222222; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller; text-align: center;"}}} {{!}} {{{image}}}
+
{{!}} colspan="2" {{!}} {{{image}}}}}
 
|-
 
|-
| colspan="2" style="border-top: 1px solid #111111; text-align: center; color: #e5e5ed; font-size:larger; background-color:#90905F; text-align:center; font-variant:small-caps;" | '''{{{class}}} {{{name}}}'''
+
| colspan="2" style="font-size:larger; font-variant:small-caps; text-align: center;" | '''{{{class}}} {{{name}}}'''
 
|-
 
|-
| colspan="2" style="border-top: 1px solid #111111; text-align: center; color: #e5e5ed; background-color:#75754C; text-align:center; font-size:8pt;" | '''Ship Information'''
+
| colspan="2" class="sidebar-heading-subheading" style="text-align: center;" | '''Ship Information'''
 
|-
 
|-
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Battlegroup:
+
{{#if: {{{battlegroup|}}}|
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} {{!}} Battlegroup:
{{{battlegroup}}}
+
{{!}} {{!}}  
 +
{{{battlegroup}}}}}
 
|-
 
|-
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Commodore:
+
{{#if: {{{commodore|}}}|
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} {{!}} Commodore:
{{{commodore}}}
+
{{!}} {{!}}  
 +
{{{commodore}}}}}
 
|-
 
|-
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Nickname:
+
{{#if: {{{flagofficer|}}}|
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} {{!}} Flag Officer:
{{{nickname}}}
+
{{!}} {{!}}  
 +
{{{flagofficer}}}}}
 
|-
 
|-
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Motto:
+
{{#if: {{{nickname|}}}|
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} {{!}} Nickname:
{{{motto}}}
+
{{!}} {{!}}  
 +
{{{nickname}}}}}
 
|-
 
|-
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Wing(s):
+
{{#if: {{{motto|}}}|
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} {{!}} Motto:
{{{wing}}}
+
{{!}} {{!}}  
 +
{{{motto}}}}}
 
|-
 
|-
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Status:
+
{{#if: {{{wing|}}}|
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} {{!}} Wing(s):
{{{status}}}
+
{{!}} {{!}}  
|- --> <includeonly>[[Category:Ships Of the TIE Corps]]</includeonly>
+
{{{wing}}}}}
  |colspan="2" style="border-bottom-right-radius: .8em; border-bottom-left-radius: .8em; -moz-border-radius-bottomright: .8em; -moz-border-radius-bottomleft: .8em; -webkit-border-bottom-right-radius: .8em; -webkit-border-bottom-left-radius: .8em; text-align: center; color: #e5e5ed; font-variant:small-caps; font-size:smaller; background-color:#90905F; text-align:center; border-top: 1px solid #111111;" | [[Template:EH Ship|[ Source ]]]
+
|-
 +
{{#if: {{{status|}}}|
 +
{{!}} {{!}} Status:
 +
{{!}} {{!}}
 +
{{{status}}}}}
 +
|-
 +
{{#if: {{{patch|}}}|
 +
{{!}} colspan="2" style="text-align: center;" {{!}} {{{patch}}}}}
 +
|-
 +
|colspan="2" style="font-variant:small-caps;" | [[Template:EH Ship|[ Source ]]]
 
|}
 
|}
 
<noinclude>{{Clear}}
 
<noinclude>{{Clear}}
Line 44: Line 59:
 
|battlegroup=
 
|battlegroup=
 
|commodore=
 
|commodore=
 +
|flagofficer=
 
|nickname=
 
|nickname=
 
|motto=
 
|motto=
 
|wing=
 
|wing=
 
|status=
 
|status=
 +
|patch=
 
}}
 
}}
 
</pre>
 
</pre>
 
[[Category:Templates]]
 
[[Category:Templates]]

Revision as of 11:49, 20 June 2021

Usage

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

{{EH Ship
|image=
|class=
|name=
|battlegroup=
|commodore=
|flagofficer=
|nickname=
|motto=
|wing=
|status=
|patch=
}}