Difference between revisions of "Template:Body data/Name"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (*moved template;)
m
Line 1: Line 1:
 
<includeonly>{{ #switch: {{{1}}}
 
<includeonly>{{ #switch: {{{1}}}
|Sun={{lang|en=Sun|pl=Słońce|nl=zon|ru=Солнце|hr=Sunce|de=Sonne|zh-cn=太阳|ko=태양|force={{{2|}}}}}
+
|Sun={{lang|en=Sun|pl=Słońce|nl=zon|ru=Солнце|hr=Sunce|de=Sonne|zh-cn=太阳|ko=태양|hu=Nap|force={{{2|}}}}}
 
|Kerbol={{lang|en=Kerbol|ru=Кербол|ko=커볼|force={{{2|}}}}}
 
|Kerbol={{lang|en=Kerbol|ru=Кербол|ko=커볼|force={{{2|}}}}}
 
|Moho={{lang|en=Moho|ru=Мохо|ko=모호|force={{{2|}}}}}
 
|Moho={{lang|en=Moho|ru=Мохо|ko=모호|force={{{2|}}}}}

Revision as of 08:51, 4 March 2015

Returns the transcribed name of a celestial body. If the first parameter is Infobox (e.g. when used in {{Infobox/Body}}) it returns Infobox. This template allows a second parameter to force a specific language. Uses a language code supported by {{lang}}. When the first parameter is “Sun”, it returns the translation for “Sun” and not the same as “Kerbol”.

The {{Body data/full name}} shows the English and translated name.