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

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Add French)
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=태양|hu=Nap|force={{{2|}}}}}
+
|Sun={{lang|en=Sun|pl=Słońce|nl=Zon|fr=Soleil|ru=Солнце|hr=Sunce|de=Sonne|zh-cn=太阳|ko=태양|hu=Nap|force={{{2|}}}}}
 
|Kerbol={{lang|en=Kerbol|ru=Кербол|ko=커볼|he=קֶרְבּוֹל|force={{{2|}}}}}
 
|Kerbol={{lang|en=Kerbol|ru=Кербол|ko=커볼|he=קֶרְבּוֹל|force={{{2|}}}}}
 
|Moho={{lang|en=Moho|ru=Мохо|ko=모호|he=מוֹהוֹ|force={{{2|}}}}}
 
|Moho={{lang|en=Moho|ru=Мохо|ko=모호|he=מוֹהוֹ|force={{{2|}}}}}

Revision as of 01:11, 8 April 2017

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.