Difference between revisions of "Template:BodyBox"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Created page with "<includeonly>| class="planetbox" style="padding:10px" | [[File:{{{image|Tiny{{{name}}}.png}}}|link={{{name}}}{{if lang}}|{{#switch: {{{size|P}}}|Star|S=125px|Planet|P=100px|Mo...")
 
m (!show only base page name;)
Line 1: Line 1:
<includeonly>| class="planetbox" style="padding:10px" | [[File:{{{image|Tiny{{{name}}}.png}}}|link={{{name}}}{{if lang}}|{{#switch: {{{size|P}}}|Star|S=125px|Planet|P=100px|Moon|M=75px|#default={{{size}}}}}]]<span class="planetlabel">[[{{{name}}}{{if lang}}]]</span></includeonly>
+
<includeonly>| class="planetbox" style="padding:10px" | [[File:{{{image|Tiny{{{name}}}.png}}}|link={{{name}}}{{if lang}}|{{#switch: {{{size|P}}}|Star|S=125px|Planet|P=100px|Moon|M=75px|#default={{{size}}}}}]]<span class="planetlabel">[[{{{name}}}{{if lang}}|{{BASEPAGENAME:{{{name}}}}}]]</span></includeonly>
 
<noinclude>Creates a table entry for a “solar sytem table”.
 
<noinclude>Creates a table entry for a “solar sytem table”.
  

Revision as of 17:46, 21 February 2013

Creates a table entry for a “solar sytem table”.

Name Description
name Name of the celestial body.
image Name of an image of the celestial body. Uses “Tiny{{{name}}}.png” if not set.
size Size of the image. Available values:
  • Star (125 px)
  • Planet (100 px)
  • Moon (75 px)
  • Any other value are used directly. (e.g. 42px or 74em)