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

From Kerbal Space Program Wiki
Jump to: navigation, search
(+force a language; *update documentation;)
m (+link to similar template;)
Line 20: Line 20:
 
|Eeloo={{lang|en=Eeloo|ru=Иилу|ko=일루|force={{{2|}}}}}
 
|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 [[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|BodyData/FullName}} shows the English and translated name.
  
 
[[Category:Templates|BodyData/Name]]
 
[[Category:Templates|BodyData/Name]]
 
[[Category:BodyData Base Templates|Name]]</noinclude>
 
[[Category:BodyData Base Templates|Name]]</noinclude>

Revision as of 00:56, 15 December 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”.

The {{BodyData/FullName}} shows the English and translated name.