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

From Kerbal Space Program Wiki
Jump to: navigation, search
(+force a language; *update documentation;)
 
(11 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 
<includeonly>{{ #switch: {{{1}}}
 
<includeonly>{{ #switch: {{{1}}}
|Sun={{lang|en=Sun|pl=Słońce|nl=zon|ru=Солнце|de=Sonne|zh-cn=太阳|ko=태양|force={{{2|}}}}}
+
|Sun={{lang|en=Sun|pl=Słońce|nl=Zon|fr=Soleil|ru=Солнце|hr=Sunce|de=Sonne|zh-cn=太阳|ko=태양|hu=Nap|ja=太陽|tr=Güneş|force={{{2|}}}}}
|Kerbol={{lang|en=Kerbol|ru=Кербол|ko=커볼|force={{{2|}}}}}
+
|Kerbol={{lang|en=Kerbol|ru=Кербол|ko=커볼|he=קֶרְבּוֹל|ja=カーボル|force={{{2|}}}}}
|Moho={{lang|en=Moho|ru=Мохо|ko=모호|force={{{2|}}}}}
+
|Moho={{lang|en=Moho|ru=Мохо|ko=모호|he=מוֹהוֹ|ja=モーホー|force={{{2|}}}}}
|Eve={{lang|en=Eve|ru=Ив|ko=이브|force={{{2|}}}}}
+
|Eve={{lang|en=Eve|ru=Ив|ko=이브|he=ְאִיב|ja=イブ||force={{{2|}}}}}
|Gilly={{lang|en=Gilly|ru=Джилли|ko=길리|force={{{2|}}}}}
+
|Gilly={{lang|en=Gilly|ru=Джилли|ko=길리|he=גִ'ילִי|ja=ギリー|force={{{2|}}}}}
|Kerbin={{lang|en=Kerbin|ru=Кербин|ko=커빈|force={{{2|}}}}}
+
|Kerbin={{lang|en=Kerbin|ru=Кербин|ko=커빈|he=קֶרְבִּין|ja=カービン|force={{{2|}}}}}
 
|Mun
 
|Mun
|Mün={{lang|en=Mun|ru=Мун|ko=문|force={{{2|}}}}}
+
|Mün={{lang|en=Mun|ru=Мун|ko=문|hu=Mün|he=מוּן|ja=ムン|force={{{2|}}}}}
|Minmus={{lang|en=Minmus|ru=Минмус|ko=민무스|force={{{2|}}}}}
+
|Minmus={{lang|en=Minmus|ru=Минмус|ko=민무스|he=מִינְמוּס|ja=ミンマス|force={{{2|}}}}}
|Duna={{lang|en=Duna|ru=Дюна|ko=듀나|force={{{2|}}}}}
+
|Duna={{lang|en=Duna|ru=Дюна|ko=듀나|he=דוּנַה|ja=ドゥナ|force={{{2|}}}}}
|Ike={{lang|en=Ike|ru=Айк|ko=아이크|force={{{2|}}}}}
+
|Ike={{lang|en=Ike|ru=Айк|ko=아이크|he=אָיִיקְ|ja=アイク|force={{{2|}}}}}
|Dres={{lang|en=Dres|ru=Дрес|ko=드레스|force={{{2|}}}}}
+
|Dres={{lang|en=Dres|ru=Дрес|ko=드레스|he=דרֶסְ|ja=ドレス|force={{{2|}}}}}
|Jool={{lang|en=Jool|ru=Джул|ko=쥴|force={{{2|}}}}}
+
|Jool={{lang|en=Jool|ru=Джул|ko=쥴|he=ג'וּל|ja=ジュール|force={{{2|}}}}}
|Laythe={{lang|en=Laythe|ru=Лейс|ko=레이스|force={{{2|}}}}}
+
|Laythe={{lang|en=Laythe|ru=Лейт|ko=레이스|he=לייתְ|ja=レイス|force={{{2|}}}}}
|Vall={{lang|en=Vall|ru=Валл|ko=볼|force={{{2|}}}}}
+
|Vall={{lang|en=Vall|ru=Валл|ko=볼|he=וָאלְ|ja=ヴァル|force={{{2|}}}}}
|Tylo={{lang|en=Tylo|ru=Тайло|ko=타일로|force={{{2|}}}}}
+
|Tylo={{lang|en=Tylo|ru=Тило|ko=타일로|he=טִילוֹ|ja=タイロー|force={{{2|}}}}}
|Bop={{lang|en=Bop|ru=Боп|ko=밥|force={{{2|}}}}}
+
|Bop={{lang|en=Bop|ru=Боп|ko=밥|he=בּוֹפּ|ja=ボップ|force={{{2|}}}}}
|Pol={{lang|en=Pol|ru=Пол|ko=폴|force={{{2|}}}}}
+
|Pol={{lang|en=Pol|ru=Пол|ko=폴|he=פּוֹלְ|ja=ポル|force={{{2|}}}}}
|Eeloo={{lang|en=Eeloo|ru=Иилу|ko=일루|force={{{2|}}}}}
+
|Eeloo={{lang|en=Eeloo|ru=Иилу|ko=일루|he=אִילוּ|ja=イーロー|force={{{2|}}}}}
 
|Infobox=Infobox <!-- Special case if used in Template -->
 
|Infobox=Infobox <!-- Special case if used in Template -->
}}</includeonly><noinclude>Returns the transcribed name of a [[celestial body]]. If the first parameter is ''Infobox'' (e.g. when used in {{Tl|Infobox/Body}}) it returns <tt>Infobox</tt>. This template allows a second parameter to force a specific language. Uses a language code supported by {{Tl|lang}}. When the first parameter is “<tt>Sun</tt>”, it returns the translation for “<tt>Sun</tt>” and not the same as “<tt>Kerbol</tt>”
+
}}</includeonly><noinclude>Returns the transcribed name of a [[celestial body]]. If the first parameter is ''Infobox'' (e.g. when used in {{Tl|Infobox/Body}}) it returns <tt>Infobox</tt>. This template allows a second parameter to force a specific language. Uses a language code supported by {{Tl|lang}}. When the first parameter is “<tt>Sun</tt>”, it returns the translation for “<tt>Sun</tt>” and not the same as “<tt>Kerbol</tt>”.
 +
 
 +
The {{Tl|Body data/full name}} shows the English and translated name.
  
[[Category:Templates|BodyData/Name]]
 
 
[[Category:BodyData Base Templates|Name]]</noinclude>
 
[[Category:BodyData Base Templates|Name]]</noinclude>

Latest revision as of 22:19, 11 January 2019

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.