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

From Kerbal Space Program Wiki
Jump to: navigation, search
m (*new special case name;)
(+force a language; *update documentation;)
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=태양}}
+
|Sun={{lang|en=Sun|pl=Słońce|nl=zon|ru=Солнце|de=Sonne|zh-cn=太阳|ko=태양|force={{{2|}}}}}
|Kerbol={{lang|en=Kerbol|ru=Кербол|ko=커볼}}
+
|Kerbol={{lang|en=Kerbol|ru=Кербол|ko=커볼|force={{{2|}}}}}
|Moho={{lang|en=Moho|ru=Мохо|ko=모호}}
+
|Moho={{lang|en=Moho|ru=Мохо|ko=모호|force={{{2|}}}}}
|Eve={{lang|en=Eve|ru=Ив|ko=이브}}
+
|Eve={{lang|en=Eve|ru=Ив|ko=이브|force={{{2|}}}}}
|Gilly={{lang|en=Gilly|ru=Джилли|ko=길리}}
+
|Gilly={{lang|en=Gilly|ru=Джилли|ko=길리|force={{{2|}}}}}
|Kerbin={{lang|en=Kerbin|ru=Кербин|ko=커빈}}
+
|Kerbin={{lang|en=Kerbin|ru=Кербин|ko=커빈|force={{{2|}}}}}
 
|Mun
 
|Mun
|Mün={{lang|en=Mun|ru=Мун|ko=문}}
+
|Mün={{lang|en=Mun|ru=Мун|ko=문|force={{{2|}}}}}
|Minmus={{lang|en=Minmus|ru=Минмус|ko=민무스}}
+
|Minmus={{lang|en=Minmus|ru=Минмус|ko=민무스|force={{{2|}}}}}
|Duna={{lang|en=Duna|ru=Дюна|ko=듀나}}
+
|Duna={{lang|en=Duna|ru=Дюна|ko=듀나|force={{{2|}}}}}
|Ike={{lang|en=Ike|ru=Айк|ko=아이크}}
+
|Ike={{lang|en=Ike|ru=Айк|ko=아이크|force={{{2|}}}}}
|Dres={{lang|en=Dres|ru=Дрес|ko=드레스}}
+
|Dres={{lang|en=Dres|ru=Дрес|ko=드레스|force={{{2|}}}}}
|Jool={{lang|en=Jool|ru=Джул|ko=쥴}}
+
|Jool={{lang|en=Jool|ru=Джул|ko=쥴|force={{{2|}}}}}
|Laythe={{lang|en=Laythe|ru=Лейс|ko=레이스}}
+
|Laythe={{lang|en=Laythe|ru=Лейс|ko=레이스|force={{{2|}}}}}
|Vall={{lang|en=Vall|ru=Валл|ko=볼}}
+
|Vall={{lang|en=Vall|ru=Валл|ko=볼|force={{{2|}}}}}
|Tylo={{lang|en=Tylo|ru=Тайло|ko=타일로}}
+
|Tylo={{lang|en=Tylo|ru=Тайло|ko=타일로|force={{{2|}}}}}
|Bop={{lang|en=Bop|ru=Боп|ko=밥}}
+
|Bop={{lang|en=Bop|ru=Боп|ko=밥|force={{{2|}}}}}
|Pol={{lang|en=Pol|ru=Пол|ko=폴}}
+
|Pol={{lang|en=Pol|ru=Пол|ko=폴|force={{{2|}}}}}
|Eeloo={{lang|en=Eeloo|ru=Иилу|ko=일루}}
+
|Eeloo={{lang|en=Eeloo|ru=Иилу|ko=일루|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 [[Celestials|celestial body]]. If the first parameter is ''Infobox'' (e.g. when used in {{Tl|Infobox/Body}}) it returns <tt>Infobox</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>”
  
 
[[Category:Templates|BodyData/Name]]
 
[[Category:Templates|BodyData/Name]]
 
[[Category:BodyData Base Templates|Name]]</noinclude>
 
[[Category:BodyData Base Templates|Name]]</noinclude>

Revision as of 10:42, 31 August 2013

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