Difference between revisions of "Template:Infobox/Kerbal"

From Kerbal Space Program Wiki
Jump to: navigation, search
(+Translations, hopefully correct)
 
(23 intermediate revisions by 5 users not shown)
Line 4: Line 4:
 
|hovertext={{{hovertext|}}}
 
|hovertext={{{hovertext|}}}
 
|lines=
 
|lines=
{{if||{{{hovertext|}}}|{{ Infobox/Line|style=text-align:center; font-style:italic;|{{{hovertext}}}}}}}
+
{{if||{{{hovertext|}}}|{{ Infobox/Line|style=text-align:center; font-style:italic; |{{{hovertext}}}}}}}
{{Infobox/Line|{{lang|en=Occupation:|ru=профессия:|de=Tätigkeit:|pl=Zawód|fr=Profession:}}|{{#if: {{{occupation trans|}}}|{{{occupation trans}}} <small>(}}{{{occupation}}}{{#if: {{{occupation trans|}}}|)</small>}}}}
+
{{Infobox/Line| {{lang|en=Occupation:|ru=профессия:|es=Profesión:|de=Tätigkeit:|pl=Zawód:|fr=Profession:|it=Professione:|ja={{Nowrap|職名:}}|hu=Szakma:|tr=Mesleği:}}|{{#if: {{{occupation trans|}}}|{{{occupation trans}}} <small>(}}{{{occupation}}}{{#if: {{{occupation trans|}}}|)</small>}}}}{{if||{{{lines|}}}|
}}
+
{{{lines}}}}}
<noinclude>Shows an infobox for any [[kerbal]]. For [[kerbonaut]]s use {{Tl|Infobox/Kerbonaut}} instead.
+
}}<noinclude>
 +
 
 +
Shows an infobox for any [[kerbal]]. For [[kerbonaut]]s use {{Tl|Infobox/Kerbonaut}} instead.
  
 
The {{{occupation}}} should always be in the native language (so usually English). To translate it, use instead the {{{occupation trans}}} parameter.
 
The {{{occupation}}} should always be in the native language (so usually English). To translate it, use instead the {{{occupation trans}}} parameter.
  
{{Parameter Table|name=text|parameters=
+
{{Parameter table|name=text|parameters=
{{Parameter Row|name|The name of the kerbal, including nicknames.|The name of the article.}}
+
{{Parameter row|name|The name of the kerbal, including nicknames.|The name of the article.}}
{{Parameter Row|file|An image of the kerbal.|[[:File:Image needed.svg]]}}
+
{{Parameter row|file|An image of the kerbal.|[[:File:Image needed.svg]]}}
{{Parameter Row|hovertext|The image's hovertext and subtitle.|Not set}}
+
{{Parameter row|hovertext|The image's hovertext and subtitle.|Not set}}
{{Parameter Row|occupation|The kerbal's role or occupation.}}
+
{{Parameter row|occupation|The kerbal's role or occupation.}}
{{Parameter Row|occupation trans|The kerbal's role or occupation translated.|Not set}}
+
{{Parameter row|occupation trans|The kerbal's role or occupation translated.|Not set}}
 +
{{Parameter row|lines|Additional lines below the occupation.|Not set/Hidden}}
 
}}
 
}}
  
 
[[Category:Infobox templates|Kerbal]]</noinclude>
 
[[Category:Infobox templates|Kerbal]]</noinclude>

Latest revision as of 22:35, 11 January 2019

Infobox
Image needed.svg
Occupation: {{{occupation}}}

Shows an infobox for any kerbal. For kerbonauts use {{Infobox/Kerbonaut}} instead.

The {{{occupation}}} should always be in the native language (so usually English). To translate it, use instead the {{{occupation trans}}} parameter.

Name Optional Description Default
name Yes The name of the kerbal, including nicknames. The name of the article.
file Yes An image of the kerbal. File:Image needed.svg
hovertext Yes The image's hovertext and subtitle. Not set
occupation No The kerbal's role or occupation.
occupation trans Yes The kerbal's role or occupation translated. Not set
lines Yes Additional lines below the occupation. Not set/Hidden