Difference between revisions of "Template:Ship List"

From Discovery Wiki
Jump to navigationJump to search
(Yet another failed attempt at trying to centre the image vertically...)
Line 1: Line 1:
 
<noinclude><!--</noinclude>
 
<noinclude><!--</noinclude>
 
<div style="float: left; width: 200px; height: 50px; border: 2px solid #2f6fab; padding: 5px; margin: 5px 5px 0px 0px;">
 
<div style="float: left; width: 200px; height: 50px; border: 2px solid #2f6fab; padding: 5px; margin: 5px 5px 0px 0px;">
{{#if: {{{3|}}}|<div style="display: table;"><div style="display: table-cell; vertical-align: middle; width: 50px; min-height: 50px; float: left; margin-right: 3px;">[[Image:{{{3}}}|50px]]</div></div>|<div style="float: left; width: 50px; height: 50px; margin-right: 6px; background: #111111; text-align: center; font: 9px/48px Tahoma;">No image</div>}}<div style="float: left; font-weight: bold; width: 140px;">{{{1}}}<br>{{#if: {{{2|}}}|<span style="font-size: 10px;">{{{2}}}</span>|&nbsp;}}</div><div style="clear: left;"></div></div><noinclude>-->
+
{{#if: {{{3|}}}|[[Image:{{{3}}}|left|50px]]|<div style="float: left; width: 50px; height: 50px; margin-right: 6px; background: #111111; text-align: center; font: 9px/48px Tahoma;">No image</div>}}<div style="float: left; font-weight: bold; width: 140px;">{{{1}}}<br>{{#if: {{{2|}}}|<span style="font-size: 10px;">{{{2}}}</span>|&nbsp;}}</div><div style="clear: left;"></div></div><noinclude>-->
  
 
==Usage==
 
==Usage==

Revision as of 22:53, 18 May 2010


Usage

{{Ship List begin}}
{{Ship List | <ship name/link> | <ship class (optional)> | <image name (optional)>}}
{{Ship List | <ship name/link> | <ship class (optional)> | <image name (optional)>}}
...
{{Ship List end}}

Example

Loki.png
Loki
Light Fighter
Odin.png
Odin
Very Heavy Fighter
Thor.png
Thor
Bomber