Difference between revisions of "Template:Infobox/Kerbal"

From Kerbal Space Program Wiki
Jump to: navigation, search
(+a bit of text;)
m (Use dict)
 
(27 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Infobox
+
<includeonly>{{Infobox
 
|name={{{name|}}}
 
|name={{{name|}}}
 
|file={{{file|}}}
 
|file={{{file|}}}
 
|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|de=Tätigkeit}}|{{#if: {{{occupation trans|}}}|{{{occupation trans}}} <small>(}}{{{occupation}}}{{#if: {{{occupation trans|}}}|)</small>}}}}
+
{{Infobox/Line|{{Infobox/Kerbal/Dict|Occupation}}|{{#if: {{{occupation trans|}}}|{{{occupation trans}}} <small>(}}{{{occupation}}}{{#if: {{{occupation trans|}}}|)</small>}}}}{{if||{{{lines|}}}|
}}<noinclude>Shows an infobox for any [[kerbal]]. For [[kerbonaut]]s use {{Tl|Infobox/Kerbonaut}} instead.
+
{{{lines}}}}}
 
+
}}</includeonly><noinclude>
The {{{occupation}}} should always be in the native language (so usually English). To translate it, use instead the {{{occupation trans}}} parameter.
+
{{Documentation}}
 
+
</noinclude>
{{Parameter Table|name=text|parameters=
 
{{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|hovertext|The image's hovertext and subtitle.|Not set}}
 
{{Parameter Row|occupation|The kerbal's role or occupation.}}
 
{{Parameter Row|occupation trans|The kerbal's role or occupation translated.|Not set}}
 
}}
 
 
 
[[Category:Infobox templates|Kerbal]]</noinclude>
 

Latest revision as of 14:21, 22 September 2024

Documentation icon Template documentation[view] [edit] [history] [purge]Pages that link to Template:Infobox/Kerbal
John Kerbal
John hidden behind the question mark
John hidden behind the question mark
Occupation Pilote (Pilot)

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

The {{{occupation}}} parameter should always be in English. To translate it, use the {{{occupation trans}}} parameter.

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