Difference between revisions of "Template:Infobox/Kerbonaut"

From Kerbal Space Program Wiki
Jump to: navigation, search
m
m (Use dict, move documentation)
 
(31 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|}}}
 +
|occupation={{Infobox/Kerbal/Dict|Kerbonaut}}
 
|lines=
 
|lines=
{{if||{{{hovertext|}}}|{{Infobox/Line|style=text-align:center; font-style:italic;|{{{hovertext}}}}}
+
{{Infobox/Line|{{Infobox/Kerbal/Dict|Specialisation}}|{{#switch: {{{special}}}
}}{{Infobox/Line|{{if lang link|Courage|de=Mut}}|{{Infobox/Kerbal/bar|{{{brave<noinclude>|0.3</noinclude>}}}}}}}
+
|p={{Infobox/Kerbal/Dict|Pilot}}
{{Infobox/Line|{{lang|en=Stupidity|de=Dummheit}}|{{Infobox/Kerbal/bar|{{{dumb<noinclude>|0.6</noinclude>}}}}}}}
+
|s={{Infobox/Kerbal/Dict|Scientist}}
{{Infobox/Line|Badass|{{#ifeq: {{uc:{{{badass<noinclude>|yes</noinclude>}}}}}|YES|{{Yes}}|{{No}}}}}}
+
|e={{Infobox/Kerbal/Dict|Engineer}}
}}<noinclude>
+
|#default={{Dict|Unknown}}
 
+
}}}}{{if||{{{extra occupations|}}}|
{{Parameter Table|parameters=
+
{{Infobox/Line|{{Infobox/Kerbal/Dict|Other}}|{{{extra occupations}}}}}}}
{{Parameter Row|name|The name of the kerbal, including nicknames.|The name of the article}}
+
{{Infobox/Line|{{Infobox/Kerbal/Dict|ID}}|{{{id|{{Dict|Unknown}}}}}}}
{{Parameter Row|file|An image of the kerbal.|[[:File:Image needed.svg]]}}
+
{{Infobox/Line|{{Infobox/Kerbal/Dict|Courage}}|{{Infobox/Kerbonaut/bar|{{{brave|0}}}}}}}
{{Parameter Row|hovertext|The image's hovertext and subtitle.|Not set}}
+
{{Infobox/Line|{{Infobox/Kerbal/Dict|Stupidity}}|{{Infobox/Kerbonaut/bar|{{{dumb|0}}}}}}}
{{Parameter Row|brave|The courage of the kerbal with value between 0 and 1.}}
+
{{Infobox/Line|{{Infobox/Kerbal/Dict|Badass}}|{{Boolean|{{{badass}}}|{{No}}}}}}
{{Parameter Row|dumb|The stupidity of the kerbal with value between 0 and 1.}}
+
}}</includeonly><noinclude>
{{Parameter Row|badass|Set to <tt>yes</tt> if the badass flag is set.}}
+
{{Documentation}}
}}
+
</noinclude>
 
 
[[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