Difference between revisions of "Template:BodyBox"
From Kerbal Space Program Wiki
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}}|{{BASEPAGENAME:{{{name}}}}}]]</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}}|{{{caption|{{BodyData/Name|{{BASEPAGENAME:{{{name}}}}}}}]]</span></includeonly> |
<noinclude>Creates a table entry for a “solar sytem table”. | <noinclude>Creates a table entry for a “solar sytem table”. | ||
− | {| | + | {{Parameter Table|name=text|parameters= |
− | + | {{ParameterRow|name|Name of the celestial body.}} | |
− | + | {{ParameterRow|image|Name of an image of the celestial body.|<tt>'''Tiny{{{name}}}.png'''</tt> if not set.}} | |
− | | | + | {{ParameterRow|size|Size of the image. Available values: |
− | | name | ||
− | | Name of the celestial body. | ||
− | |||
− | | image | ||
− | | Name of an image of the celestial body. | ||
− | |||
− | | size | ||
− | | Size of the image. Available values: | ||
* '''S'''tar (125 px) | * '''S'''tar (125 px) | ||
* '''P'''lanet (100 px) | * '''P'''lanet (100 px) | ||
* '''M'''oon (75 px) | * '''M'''oon (75 px) | ||
− | * Any other value are used directly. (e.g. 42px or 74em) | + | * Any other value are used directly. (e.g. 42px or 74em)|<tt>P</tt>}} |
− | |}</noinclude> | + | {{ParameterRow|caption|Displayed name, may be transcribed.|{{Tlx|BodyData/Name|{{{name}}}}}}} |
+ | }}</noinclude> |
Revision as of 08:31, 13 June 2013
Creates a table entry for a “solar sytem table”.