Difference between revisions of "Template:Gtvaship"

From FreeSpace Wiki
Jump to: navigation, search
m (i'm serious, and don't call me shirley)
m (removing redundant parameter)
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
{|width="300" align="right" cellpadding="4" cellspacing="0" style="border: 1px #A6110D solid; background: rgb(35, 35, 35) none repeat scroll 0%; width: 300; margin-top: -1.4em; margin: 0 0 1em 1em;"
+
{|width="300" align="right" cellpadding="2" cellspacing="0" style="border: 1px #A6110D solid; background: rgb(35, 35, 35) none repeat scroll 0%; width: 300; margin-top: -1.4em; margin: 0 0 1em 1em; font-size: 80%;"
 
|-
 
|-
 
|colspan="2" height="40" style="background-color:  #603030; text-align: center; color: #E5BB63; font-size: 150%;"|'''{{{name}}}'''
 
|colspan="2" height="40" style="background-color:  #603030; text-align: center; color: #E5BB63; font-size: 150%;"|'''{{{name}}}'''
 
|-
 
|-
{{#if: {{{image|}}}|colspan="2" style="background-color:  #000000; text-align: center; color: #cccccc;"
+
{{#if: {{{image|}}}|{{!}}colspan="2" style="background-color:  #000000; text-align: center; color: #cccccc;"{{!}}{{{image}}}|}}
{{!}} {{{image}}}
 
}}
 
 
|-
 
|-
|bgcolor="#302020" style="background-color:  #402020; color: #f9f9f9;"|'''Name:'''
+
{{#if: {{{class|}}}|
|bgcolor="#101010"|{{{name}}}
+
{{!}}bgcolor="#302020" style="background-color:  #402020; color: #f9f9f9;"{{!}}'''Class:'''
 +
{{!}}bgcolor="#101010"{{!}}{{{class}}}
 +
|}}
 
|-
 
|-
|bgcolor="#302020" style="background-color:  #402020; color: #f9f9f9;"|'''Class:'''
+
{{#if: {{{1stapp|}}}|
|bgcolor="#101010"|{{{class}}}
+
{{!}}bgcolor="#302020" style="background-color:  #402020; color: #f9f9f9;"{{!}}'''First Appearance:'''
 +
{{!}}bgcolor="#101010"{{!}}{{{1stapp}}}
 +
|}}
 
|-
 
|-
|bgcolor="#302020" style="background-color:  #402020; color: #f9f9f9;"|'''First Appeared:'''
+
{{#if: {{{inservice|}}}|
|bgcolor="#101010"|{{{1stapp}}}
+
{{!}}bgcolor="#302020" style="background-color:  #402020; color: #f9f9f9;"{{!}}'''In Service:'''
 +
{{!}}bgcolor="#101010"{{!}}{{{inservice}}}
 +
|}}
 
|-
 
|-
|bgcolor="#302020" style="background-color:  #402020; color: #f9f9f9;"|'''In Service:'''
+
{{#if: {{{location|}}}|
|bgcolor="#101010"|{{{inservice}}}
+
{{!}}bgcolor="#302020" style="background-color:  #402020; color: #f9f9f9;"{{!}}'''Location:'''
 +
{{!}}bgcolor="#101010"{{!}}{{{location}}}
 +
|}}
 
|-
 
|-
|bgcolor="#302020" style="background-color:  #402020; color: #f9f9f9;"|'''Commander:'''
+
{{#if: {{{faction|}}}|
|bgcolor="#101010"|{{{commander}}}
+
{{!}}bgcolor="#302020" style="background-color:  #402020; color: #f9f9f9;"{{!}}'''Faction:'''
 +
{{!}}bgcolor="#101010"{{!}}{{{faction}}}
 +
|}}
 
|-
 
|-
|bgcolor="#302020" style="background-color:  #402020; color: #f9f9f9;"|'''Fate:'''
+
{{#if: {{{commander|}}}|
|bgcolor="#101010"|{{{fate}}}
+
{{!}}bgcolor="#302020" style="background-color:  #402020; color: #f9f9f9;"{{!}}'''Commander:'''
 +
{{!}}bgcolor="#101010"{{!}}{{{commander}}}
 +
|}}
 
|-
 
|-
|bgcolor="#302020" style="background-color:  #402020; -moz-border-radius-bottomleft: 1em; color: #f9f9f9;"|'''Squadrons:'''
+
{{#if: {{{fate|}}}|
|bgcolor="#101010"|{{{squadrons}}}
+
{{!}}bgcolor="#302020" style="background-color:  #402020; color: #f9f9f9;"{{!}}'''Fate:'''
 +
{{!}}bgcolor="#101010"{{!}}{{{fate}}}
 +
|}}
 +
|-
 +
{{#if: {{{squadrons|}}}|
 +
{{!}}bgcolor="#302020" style="background-color: #402020; color: #f9f9f9;"{{!}}'''Squadrons:'''
 +
{{!}}bgcolor="#101010"{{!}}
 +
{{{squadrons}}}
 +
|}}
 
|}
 
|}
 
 
 
<noinclude>
 
<noinclude>
 
<br clear=all>
 
<br clear=all>
Line 39: Line 55:
 
| 1stapp    =  
 
| 1stapp    =  
 
| inservice =  
 
| inservice =  
| commander =
+
| location  =
| fate      =
+
| faction  =
 +
| commander =  
 +
| fate      =  
 
| squadrons =  
 
| squadrons =  
 
}}</pre>
 
}}</pre>
 +
 +
Despite the name, this template can be used for any unique ship, not just GTVA ships. Location should only be used for installations.
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 21:08, 30 July 2011

{{{name}}}


Usage

{{Gtvaship
| image     = 
| name      = 
| class     = 
| 1stapp    = 
| inservice = 
| location  = 
| faction   = 
| commander = 
| fate      = 
| squadrons = 
}}

Despite the name, this template can be used for any unique ship, not just GTVA ships. Location should only be used for installations.