Difference between revisions of "Template:Planet"

From Discovery Wiki
Jump to navigationJump to search
Line 1: Line 1:
 
<noinclude><!--</noinclude>
 
<noinclude><!--</noinclude>
 
<div style="float: left; width: 200px; height: 50px; border: 2px solid #eeeeee; padding: 5px; margin: 5px 5px 0px 0px;">
 
<div style="float: left; width: 200px; height: 50px; border: 2px solid #eeeeee; padding: 5px; margin: 5px 5px 0px 0px;">
<div style="float: left; width: 50px; height: 50px; margin-right: 6px; background: #f5f5f5; text-align: center; font: 9px/48px Tahoma;">{{#if: {{{3|}}} | [[Image:{{{3}}}|left|50px]] | {{#ifexist: Image:{{{1}}}.jpg | [[Image:{{{1}}}.jpg|left|50px]] | <div style="float: left; width: 50px; height: 50px; margin-right: 6px; background: #f5f5f5; text-align: center; font: 9px/48px Tahoma;">No image</div> }} }}</div>
+
<div style="float: left; width: 50px; height: 50px; margin-right: 6px; background: #f5f5f5; text-align: center; font: 9px/48px Tahoma;">{{#if: {{{3|}}} | [[Image:{{{3}}}|left|50px]] | {{#ifexist: Image:{{{1}}}.jpg | [[Image:{{{1}}}.jpg|left|50px]] | <div style="float: left; width: 50px; height: 50px; margin-right: 6px; background: #f5f5f5; text-align: center; font: 9px/48px Tahoma;">[[{{{1}}}.jpg|No image]]</div> }} }}</div>
 
<div style="float: left; font-weight: bold;">[[Planet {{{1}}}]]<br>
 
<div style="float: left; font-weight: bold;">[[Planet {{{1}}}]]<br>
 
<span style="font-size: 10px; font-style: italic;">{{{2}}}</span></div>
 
<span style="font-size: 10px; font-style: italic;">{{{2}}}</span></div>

Revision as of 02:27, 9 July 2009


Usage

This template allows you to specify an image if necessary. Use the third parameter to input a picture manually.

{{Planet|Manhattan|inhabited|}}
{{Planet|Manhattan|inhabited|Crete.JPG}}

Result

Planet Manhattan.jpg