Difference between revisions of "Template:Infobox/Kerbonaut"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Added ID# field; defaults to "Unknown". Hope translations are right.)
m (Use dict, move documentation)
 
(26 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{Infobox
+
<includeonly>{{Infobox/Kerbal
 +
|name={{{name|}}}
 
|file={{{file|}}}
 
|file={{{file|}}}
|name={{{name|}}}
 
 
|hovertext={{{hovertext|}}}
 
|hovertext={{{hovertext|}}}
|extra_occuption={{{extra_occupation|}}}
+
|occupation={{Infobox/Kerbal/Dict|Kerbonaut}}
|id={{{id|}}}
 
 
|lines=
 
|lines=
{{if||{{{hovertext|}}}|{{Infobox/Line|style=text-align:center; font-style:italic;|{{{hovertext}}}}}
+
{{Infobox/Line|{{Infobox/Kerbal/Dict|Specialisation}}|{{#switch: {{{special}}}
}}
+
|p={{Infobox/Kerbal/Dict|Pilot}}
{{Infobox/Line|{{lang|en=Occupation:|ru=профессия:|de=Tätigkeit:}}|{{lang|en=Kerbonaut|ru=Кербанавт|de=Kerbonaut}}{{#if: {{{extra_occupation|}}}|, {{{extra_occupation}}}}}
+
|s={{Infobox/Kerbal/Dict|Scientist}}
}}
+
|e={{Infobox/Kerbal/Dict|Engineer}}
{{Infobox/Line|{{lang|en=KSC ID#:}}|{{if||{{{id|}}}|{{{id}}}|{{lang|en=Unknown|ru=неизвестный|de=unbekannt}}}}
+
|#default={{Dict|Unknown}}
}}
+
}}}}{{if||{{{extra occupations|}}}|
{{Infobox/Line|{{if lang link|Courage|ru=мужество|de=Mut|pl=Odwaga}}|{{Infobox/Kerbal/bar|{{{brave<noinclude>|0.3</noinclude>}}}}}}}
+
{{Infobox/Line|{{Infobox/Kerbal/Dict|Other}}|{{{extra occupations}}}}}}}
{{Infobox/Line|{{if lang link|Stupidity|ru=глупость|de=Dummheit|pl=Głupota}}|{{Infobox/Kerbal/bar|{{{dumb<noinclude>|0.6</noinclude>}}}}}}}
+
{{Infobox/Line|{{Infobox/Kerbal/Dict|ID}}|{{{id|{{Dict|Unknown}}}}}}}
{{Infobox/Line|{{lang|en=Badass|ru=задира|de=Badass|pl=Twardziel}}|{{#ifeq: {{uc:{{{badass<noinclude>|yes</noinclude>}}}}}|YES|{{Yes}}|{{No}}}}}}
+
{{Infobox/Line|{{Infobox/Kerbal/Dict|Courage}}|{{Infobox/Kerbonaut/bar|{{{brave|0}}}}}}}
}}
+
{{Infobox/Line|{{Infobox/Kerbal/Dict|Stupidity}}|{{Infobox/Kerbonaut/bar|{{{dumb|0}}}}}}}
<noinclude>
+
{{Infobox/Line|{{Infobox/Kerbal/Dict|Badass}}|{{Boolean|{{{badass}}}|{{No}}}}}}
 
+
}}</includeonly><noinclude>
{{Parameter Table|parameters=
+
{{Documentation}}
{{Parameter Row|name|The name of the kerbal, including nicknames.|The name of the article}}
+
</noinclude>
{{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|extra_occupation|Extra occupation besides Kerbonaut, like Manufacturer|Not set}}
 
{{Parameter Row|id|Identification number (from promo vid "Selection Process")|Unknown}}
 
{{Parameter Row|brave|The courage of the kerbal with value between 0 and 1.}}
 
{{Parameter Row|dumb|The stupidity of the kerbal with value between 0 and 1.}}
 
{{Parameter Row|badass|Set to <tt>yes</tt> if the badass flag is set.}}
 
}}
 
 
 
[[Category:Infobox templates|Kerbal]]</noinclude>
 

Latest revision as of 14:46, 22 September 2024

Documentation icon Template documentation[view] [edit] [history] [purge]Pages that link to Template:Infobox/Kerbonaut
John Kerman
Image needed.svg
Occupation Kerbonaut
Specialisation Pilot
Other occupations Manufacturer
KSC ID# 0015
Courage
Stupidity
Badass Yes


Shows an infobox for Kerbonauts. If it is about a Kerbal use {{Infobox/Kerbal}} instead.

# Optional Description Default
name Yes The name of the Kerbonaut, including nicknames. Infobox
file Yes An image of the Kerbonaut. File:Image needed.svg
hovertext Yes The image's hovertext and subtitle. Not set/Hidden
special Yes The specialisation of the Kerbonaut. Suppported values are:
  • p - Pilot
  • s - Scientist
  • e - Engineer

If the value is not known, shows Unknown.

Unknown
extra occupations Yes Extra occupation besides Kerbonaut, like Manufacturer. Not set/Hidden
id Yes Identification number (from promo vid "Selection Process"). Unknown
brave Yes The courage of the Kerbonaut with a value between 0 and 1. 0
dumb Yes The stupidity of the Kerbonaut with a value between 0 and 1. 0
badass Yes Wether the Kerbonaut is a badass. Set to y if the badass flag is set. No