Difference between revisions of "Template:EH Ship"

From Emperor's Hammer Encyclopaedia Imperia
(fixed display issue)
m (Protected "Template:EH Ship" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(16 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| width="250" align="right" cellpadding="3" cellspacing="0" style="float: right; clear: right; 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: {{{bgcom|}}}|
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} {{!}} BGCOM:
{{{commodore}}}
+
{{!}} {{!}}  
 +
{{{bgcom}}}}}
 
|-
 
|-
{{!}} 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: {{{commodore|}}}|
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} {{!}} Commodore:
{{{nickname}}}
+
{{!}} {{!}}  
 +
{{{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;"}}} {{!}} Motto:
+
{{#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:
{{{motto}}}
+
{{!}} {{!}}  
 +
{{{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;"}}} {{!}} Wing(s):
+
{{#if: {{{nickname|}}}|
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} {{!}} Nickname:
{{{wing}}}
+
{{!}} {{!}}  
 +
{{{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;"}}} {{!}} Status:
+
{{#if: {{{motto|}}}|
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} {{!}} Motto:
{{{status}}}
+
{{!}} {{!}}
|- --> <includeonly>[[Category:Ships Of the TIE Corps]]</includeonly>
+
{{{motto}}}}}
  |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: {{{wing|}}}|
 +
{{!}} {{!}} Wing(s):
 +
{{!}} {{!}}
 +
{{{wing}}}}}
 +
|-
 +
{{#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 43: Line 63:
 
|name=
 
|name=
 
|battlegroup=
 
|battlegroup=
 +
|bgcom=
 
|commodore=
 
|commodore=
 +
|flagofficer=
 
|nickname=
 
|nickname=
 
|motto=
 
|motto=
 
|wing=
 
|wing=
 
|status=
 
|status=
 +
|patch=
 
}}
 
}}
 
</pre>
 
</pre>
 
[[Category:Templates]]
 
[[Category:Templates]]

Latest revision as of 07:16, 9 February 2023

Usage

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

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