Difference between revisions of "Template:Infobox/Kerbal"
From Kerbal Space Program Wiki
m (Move doc) |
m (Use dict) |
||
Line 5: | Line 5: | ||
|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|{{ | + | {{Infobox/Line|{{Infobox/Kerbal/Dict|Occupation}}|{{#if: {{{occupation trans|}}}|{{{occupation trans}}} <small>(}}{{{occupation}}}{{#if: {{{occupation trans|}}}|)</small>}}}}{{if||{{{lines|}}}| |
{{{lines}}}}} | {{{lines}}}}} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 14:21, 22 September 2024
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 |
The above documentation is transcluded from Template:Infobox/Kerbal/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |