YellowWarningTriangle.png This wiki is closed in favour of the new wiki. Information shown is likely to be very out of date.

Difference between revisions of "Template:Planet"

From Discovery Wiki
Jump to navigationJump to search
m
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<noinclude><!--</noinclude>
 
<noinclude><!--</noinclude>
 
<div style="float: left; width: 220px; height: 50px; border: 2px solid #2f6fab; padding: 5px; margin: 5px 5px 0px 0px;">
 
<div style="float: left; width: 220px; height: 50px; border: 2px solid #2f6fab; padding: 5px; margin: 5px 5px 0px 0px;">
<div style="float: left; width: 50px; height: 50px; margin-right: 6px; background: #111111; 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: #111111; text-align: center; font: 9px/48px Tahoma;">{{#if: {{{3|}}} | [[Image:{{{3}}}|left|50px]] | <div style="float: left; width: 50px; height: 50px; margin-right: 6px; background: #050505; text-align: center; font: 9px/48px Tahoma;">No image</div> }}</div>
 
<div style="float: left; font-weight: bold;">[[{{{1}}}]]<br>
 
<div style="float: left; font-weight: bold;">[[{{{1}}}]]<br>
 
<span style="font-size: 10px; font-style: italic;">{{{2}}}</span></div>
 
<span style="font-size: 10px; font-style: italic;">{{{2}}}</span></div>
<div style="clear: left;"></div></div><noinclude>
+
<div style="clear: left;"></div></div>__NOTOC__<noinclude>
 
-->
 
-->
 
==Usage==
 
==Usage==
Line 11: Line 11:
 
*It will create a link to the page "'''<name>'''".
 
*It will create a link to the page "'''<name>'''".
 
*The text you input will be placed underneath in italics.
 
*The text you input will be placed underneath in italics.
*An automatic image will be used on the left. This will be "<name>.jpg". If there is not an image of a planet available, please upload one using "<name>.jpg". ('''Note the lowercase ".jpg"''')
 
 
*This template allows you to specify an image if necessary. Use the third parameter to input a picture manually.
 
*This template allows you to specify an image if necessary. Use the third parameter to input a picture manually.
 
<pre>{{Planet|Name|AnyText|OptionalImage}}</pre>
 
<pre>{{Planet|Name|AnyText|OptionalImage}}</pre>
Line 17: Line 16:
 
<pre>
 
<pre>
 
{{Planet|Manhattan|inhabited|}}
 
{{Planet|Manhattan|inhabited|}}
{{Planet|Texas|Ice Cream|Crete.JPG}}</pre>
+
{{Planet|Texas|Ice Cream|Crete.jpg}}</pre>
  
 
===Result===
 
===Result===
 
{{Planet|Manhattan|inhabited|}}
 
{{Planet|Manhattan|inhabited|}}
{{Planet|Texas|Ice Cream|Crete.JPG}}
+
{{Planet|Texas|Ice Cream|Crete.jpg}}
  
 
{{Clear}}
 
{{Clear}}

Latest revision as of 18:08, 14 September 2012

Usage

This Template is currently used inside the {{System}} template, and possibly other places in the future.

  • Use the <name> of a Celestial body. Planets will be "Planet Manhattan". Moons will be "Maine"
  • It will create a link to the page "<name>".
  • The text you input will be placed underneath in italics.
  • This template allows you to specify an image if necessary. Use the third parameter to input a picture manually.
{{Planet|Name|AnyText|OptionalImage}}

Example

{{Planet|Manhattan|inhabited|}}
{{Planet|Texas|Ice Cream|Crete.jpg}}

Result

No image
Manhattan
inhabited
Planet Crete.jpg
Texas
Ice Cream