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...")
 
(Undo everything)
 
(10 intermediate revisions by 3 users not shown)
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|{{#switch: {{{name}}}
<noinclude>Creates a table entry for a “solar sytem table”.
+
|Kerbol=Star
 +
|Gilly
 +
|Mun
 +
|Mün
 +
|Minmus
 +
|Ike
 +
|Laythe
 +
|Tylo
 +
|Vall
 +
|Pol
 +
|Bop=Moon
 +
|#default=Planet}}}}}|Star|S=125px|Planet|P=100px|Moon|M=75px|#default={{{size}}}}}]]<span class="planetlabel">[[{{{name}}}{{if lang}}|{{{caption|{{Body data/Name|{{{name}}}}}}}}]]</span></includeonly>
 +
<noinclude>Creates a table entry for a “solar sytem table” like [[Kerbol System/Map]].
  
{| class="wikitable"
+
{{Parameter table|name=text|parameters=
! Name
+
{{Parameter row|name|Name of the celestial body.}}
! Description
+
{{Parameter row|image|Name of an image of the celestial body.|<tt>'''Tiny{{{name}}}.png'''</tt> if not set.}}
|-
+
{{Parameter row|size|Size of the image. Available values:
| 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:
 
 
* '''S'''tar (125 px)
 
* '''S'''tar (125 px)
* '''P'''lanet (100 px)
+
* [[Planet|'''P'''lanet]] (100 px)
* '''M'''oon (75 px)
+
* [[Moon|'''M'''oon]] (75 px)
* Any other value are used directly. (e.g. 42px or 74em)
+
* Any other value are used directly without any unit (e.g. <tt>42px</tt> or <tt>74em</tt>).|<tt>Star</tt> when {{{name}}} is Kerbol or Sun, Moon when it's a name of a Moon, Planet instead}}
|}</noinclude>
+
{{Parameter row|caption|Displayed name, may be transcribed.|{{Tlx|Body data/Name|{{{name}}}}}}}
 +
}}
 +
 
 +
[[Category:Templates]]</noinclude>

Latest revision as of 07:04, 16 April 2018

Creates a table entry for a “solar sytem table” like Kerbol System/Map.

Name Optional Description Default
name No Name of the celestial body.
image Yes Name of an image of the celestial body. Tiny{{{name}}}.png if not set.
size Yes Size of the image. Available values:
  • Star (125 px)
  • Planet (100 px)
  • Moon (75 px)
  • Any other value are used directly without any unit (e.g. 42px or 74em).
Star when {{{name}}} is Kerbol or Sun, Moon when it's a name of a Moon, Planet instead
caption Yes Displayed name, may be transcribed. {{Body data/Name|{{{name}}}}}