Difference between revisions of "Template:Infobox/Kerbonaut"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Use dict, move documentation)
 
(14 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{Infobox/Kerbal
+
<includeonly>{{Infobox/Kerbal
 +
|name={{{name|}}}
 
|file={{{file|}}}
 
|file={{{file|}}}
|name={{{name|}}}
 
 
|hovertext={{{hovertext|}}}
 
|hovertext={{{hovertext|}}}
|occupation={{lang|en=Kerbonaut|ru=Кербанавт|es=Kerbonaut|de=Kerbonaut|pl=Kerbonauta|fr=Kerbonaute|it=Astronauta}}|occupation trans={{lang|en=|ru=Кербанавт|es=Kerbonaut|de=Kerbonaut|pl=Kerbonauta|fr=Kerbonaute|it=Astronauta}}
+
|occupation={{Infobox/Kerbal/Dict|Kerbonaut}}
 
|lines=
 
|lines=
{{if||{{{extra occupations|}}}|{{Infobox/Line|{{lang|en=Other occupations:|de=Andere Tätigkeiten:|pl=Inne zawody:}}|{{{extra occupations}}}}}
+
{{Infobox/Line|{{Infobox/Kerbal/Dict|Specialisation}}|{{#switch: {{{special}}}
}}{{Infobox/Line|{{lang|en=KSC ID#:}}|{{if||{{{id|}}}|{{{id}}}|{{Dict|Unknown}}}}}}
+
|p={{Infobox/Kerbal/Dict|Pilot}}
{{Infobox/Line|{{if lang link|Courage|ru=мужество|es=Valentía|de=Mut|pl=Odwaga|fr=Courage|it=Coraggio}}|{{Infobox/Kerbonaut/bar|{{{brave<noinclude>|0.3</noinclude>}}}}}}}
+
|s={{Infobox/Kerbal/Dict|Scientist}}
{{Infobox/Line|{{if lang link|Stupidity|ru=глупость|es=Estupidez|de=Dummheit|pl=Głupota|fr=Stupidité|it=Stupidità}}|{{Infobox/Kerbonaut/bar|{{{dumb<noinclude>|0.6</noinclude>}}}}}}}
+
|e={{Infobox/Kerbal/Dict|Engineer}}
{{Infobox/Line|{{lang|en=Badass|ru=задира|es=Badass|de=Badass|pl=Twardziel|fr=Dur à cuire|it=Cazzuto}}|{{#ifeq: {{uc:{{{badass<noinclude>|yes</noinclude>}}}}}|YES|{{Yes}}|{{No}}}}}}
+
|#default={{Dict|Unknown}}
}}<noinclude>
+
}}}}{{if||{{{extra occupations|}}}|
An infobox for [[kerbonaut]]s. If it is about a Kerbal use {{Tl|Infobox/Kerbal}} instead.
+
{{Infobox/Line|{{Infobox/Kerbal/Dict|Other}}|{{{extra occupations}}}}}}}
 
+
{{Infobox/Line|{{Infobox/Kerbal/Dict|ID}}|{{{id|{{Dict|Unknown}}}}}}}
{{Parameter Table|parameters=
+
{{Infobox/Line|{{Infobox/Kerbal/Dict|Courage}}|{{Infobox/Kerbonaut/bar|{{{brave|0}}}}}}}
{{Parameter Row|name|The name of the kerbal, including nicknames.|The name of the article}}
+
{{Infobox/Line|{{Infobox/Kerbal/Dict|Stupidity}}|{{Infobox/Kerbonaut/bar|{{{dumb|0}}}}}}}
{{Parameter Row|file|An image of the kerbal.|[[:File:Image needed.svg]]}}
+
{{Infobox/Line|{{Infobox/Kerbal/Dict|Badass}}|{{Boolean|{{{badass}}}|{{No}}}}}}
{{Parameter Row|hovertext|The image's hovertext and subtitle.|Not set}}
+
}}</includeonly><noinclude>
{{Parameter Row|extra occupations|Extra occupation besides Kerbonaut, like Manufacturer|Not set}}
+
{{Documentation}}
{{Parameter Row|id|Identification number (from promo vid "Selection Process")|<tt>Unknown</tt>}}
+
</noinclude>
{{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