Difference between revisions of "Template:Infobox astronaut"
(When wrapped, gaps between words in the labels are too wide, e.g. they suggest separate labels rather than one wrapped label. So labelstyle and accompanying datastyle set to line-height:1.2em) |
imported>Andrybak m (add parameter "embed" to the invocation of Module:Check for unknown parameters) |
||
| (53 intermediate revisions by 27 users not shown) | |||
| Line 1: | Line 1: | ||
| − | {{ | + | {{Infobox person |
| − | | | + | | child = {{lc:{{{child|{{{embed}}}}}}}} |
| − | | | + | | honorific_prefix = {{{honorific_prefix|{{{honorific prefix|}}} }}} |
| − | | | + | | name = {{{name|}}} |
| − | | image | + | | honorific_suffix = {{{honorific_suffix|{{{honorific suffix|}}} }}} |
| − | | | + | | image = {{{image|}}} |
| − | | | + | | image_size = {{{image_size|}}} |
| − | | | + | | alt = {{{alt|}}} |
| + | | caption = {{{caption|}}} | ||
| + | | native_name = {{{native_name|}}} | ||
| + | | native_name_lang = {{{native_name_lang|}}} | ||
| + | | nationality = {{{nationality|}}} | ||
| + | | citizenship = {{{citizenship|}}} | ||
| + | | status = {{{status|}}} | ||
| + | | birth_name = {{{birth_name|}}} | ||
| + | | birth_date = {{{birth_date|}}} | ||
| + | | birth_place = {{{birth_place|}}} | ||
| + | | death_date = {{{death_date|}}} | ||
| + | | death_place = {{{death_place|}}} | ||
| + | | resting_place = {{{resting_place|}}} | ||
| + | | resting_place_coordinates = {{{resting_place_coordinates|{{{resting_place_coords|}}} }}} | ||
| + | | other_names = {{{other names|{{{other_names|{{{othername|{{{alias|}}} }}} }}} }}} | ||
| + | | occupation = {{{occupation|}}} | ||
| + | | alma_mater = {{{alma_mater|}}} | ||
| + | | awards = {{{awards|}}} | ||
| + | | website = {{{url|{{{website|}}} }}} | ||
| + | | signature = {{{signature|}}} | ||
| + | | signature_alt = {{{signature_alt|}}} | ||
| − | | | + | | module = {{#if:{{{type|}}}{{{current_occupation|}}}{{{previous_occupation|}}}{{{rank|}}}{{{time|}}}{{{space_time|}}}{{{selection|}}}{{{eva1|}}}{{{evas|}}}{{{eva2|}}}{{{eva_time|}}}{{{mission|}}}{{{missions|}}}{{{insignia|}}}{{{Date of ret|}}}{{{retirement|}}}{{{memorials|}}} |
| − | | | + | |{{Infobox |
| − | + | | child = yes | |
| − | | | + | | title = '''Space career''' |
| − | | | + | | decat = yes <!-- remove from template:infobox tracking categories --> |
| − | |||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | }}<noinclude> | + | | class1 = role |
| − | {{ | + | | header1 = {{{type|}}} |
| − | + | ||
| + | | label10 = {{longitem|Current occupation}} | ||
| + | | class10 = role | ||
| + | | data10 = {{{current_occupation|}}} | ||
| + | |||
| + | | label11 = {{longitem|Previous occupation}} | ||
| + | | class11 = role | ||
| + | | data11 = {{{previous_occupation|}}} | ||
| + | |||
| + | | label13 = Rank | ||
| + | | class13 = title | ||
| + | | data13 = {{{rank|}}} | ||
| + | |||
| + | | rowclass14 = note | ||
| + | | label14 = {{longitem|Time in space}} | ||
| + | | data14 = {{#if:{{{time|}}}|{{{time}}}|{{{space_time|}}}}} | ||
| + | |||
| + | | label15 = Selection | ||
| + | | data15 = {{{selection|}}} | ||
| + | |||
| + | | label16 = {{longitem|Total [[Extravehicular activity|EVA]]s}} | ||
| + | | data16 = {{#if:{{{eva1|}}}|{{{eva1}}}|{{{evas|}}}}} | ||
| + | |||
| + | | label17 = {{longitem|Total EVA time}} | ||
| + | | data17 = {{#if:{{{eva2|}}}|{{{eva2}}}|{{{eva_time|}}}}} | ||
| + | |||
| + | | label18 = Missions | ||
| + | | data18 = {{#if:{{{mission|}}}|{{{mission}}}|{{{missions|}}}}} | ||
| + | |||
| + | | label19 = {{longitem|Mission insignia}} | ||
| + | | data19 = {{{insignia|}}} | ||
| + | |||
| + | | label20 = Retirement | ||
| + | | data20 = {{#if:{{{Date of ret|}}}|{{{Date of ret}}}|{{{retirement|}}}}} | ||
| + | |||
| + | | label22 = Memorials | ||
| + | | data22 = {{{memorials|}}} | ||
| + | |||
| + | }} }} | ||
| + | |||
| + | | module2 = {{{module|}}} | ||
| + | |||
| + | }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox astronaut with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox astronaut]] with unknown parameter "_VALUE_"|ignoreblank=y| child | embed | name | honorific prefix | honorific suffix| honorific_prefix | honorific_suffix | image | image_size | alt | caption | type | native_name | native_name_lang | nationality | citizenship | status | birth_name | birth_date | birth_place | death_date | death_place | resting_place | resting_place_coordinates | resting_place_coords | other names | other_names | othername | alias | occupation | current_occupation | previous_occupation | alma_mater | rank | time | space_time | selection | eva1 | evas | eva2 | eva_time | mission | missions | insignia | Date of ret | retirement | awards | memorials | url | website | module | signature}}<noinclude> | ||
| + | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 07:12, 19 June 2019
[[Category:Infobox templates|Template:Remove first word]]Template:Wikidata image
Template:Person infobox header Template:Uses Infobox person
| This template uses Lua: |
{{Infobox astronaut}} may be used in an article about a person who is an astronaut or cosmonaut.
Contents
Usage
This infobox may be added by copy-pasting the template as shown below into an article.
Template:Parameter names example
{{Infobox astronaut
| name =
| honorific_prefix =
| honorific_suffix =
| image =
| image_size =
| alt =
| caption =
| type =
| native_name =
| native_name_lang =
| nationality =
| status =
| birth_name =
| birth_date =
| birth_place =
| death_date =
| death_place =
| resting_place =
| resting_place_coords =
| other_names =
| occupation =
| current_occupation =
| previous_occupation =
| alma_mater =
| rank =
| space_time =
| selection =
| evas =
| eva_time = <!-- h m s -->
| missions = <!-- or: |mission= -->
| insignia =
| retirement = <!-- {{end date|YYYY|MM|DD}} -->
| awards =
| memorials =
| website = <!-- {{URL|example.com}} -->
| module =
| child =
}}
Parameters
Script error: No such module "aligned table".
Embedding other templates via module parameter
The module parameter is used for embedding other templates into this infobox (see Wikipedia:Infobox modules). For example:
{{Infobox astronaut
| name =
| <!-- etc. -->
| module =
{{Infobox football biography |embed=yes
| <!-- etc. -->
}}
}}
Use as an embedded template via child parameter
The child parameter is used when embedding this infobox into another.
This infobox may be used to create a genre-specific section within {{Infobox person}} (or similar biographical infobox templates) for cases where a person may be notable in more than one field; a generic example is shown below. For guidance on usage, see Wikipedia:Infobox modules. Also see the Template:Infobox documentation which explains embedding and subboxes.
{{Infobox person
| name =
| image =
| caption =
| birth_date =
| birth_place =
| <!-- etc. -->
| module =
{{Infobox astronaut | child=yes
| parameter-1 =
| parameter-2 =
| parameter-3 =
| parameter-4 =
| <!-- etc. -->
}}
}}
Example
Yuri Gagarin | |
|---|---|
Юрий Гагарин | |
![]() Gagarin on a visit to Sweden, 1964 | |
| Born | Yuri Alekseyevich Gagarin 9 March 1934 |
| Died | 27 March 1968 (aged 34) Novosyolovo, Russian SFSR, Soviet Union |
| Resting place | Kremlin Wall Necropolis |
| Nationality | Soviet |
| Occupation | Pilot |
| Awards | Hero of the Soviet Union Medal "For Merit in Space Exploration" |
| Space career | |
| Soviet cosmonaut The first human in space | |
| Rank | Colonel (Polkovnik), Soviet Air Forces |
Time in space | 1 hour, 48 minutes |
| Selection | Air Force Group 1 |
| Missions | Vostok 1 |
| [[Category:Infobox templates|Template:Remove first word]] | |
{{Infobox astronaut
| name = Yuri Gagarin
| image = Gagarin in Sweden.jpg
| caption = Gagarin on a visit to Sweden, 1964
| type = [[Soviet space program|Soviet]] cosmonaut<br />The first human in [[outer space|space]]
| native_name = Юрий Гагарин
| native_name_lang = ru
| nationality = [[Soviet people|Soviet]]
| birth_name = Yuri Alekseyevich Gagarin
| birth_date = {{Birth date|df=yes|1934|3|9}}
| birth_place = [[Klushino]], [[Russian SFSR]], [[Soviet Union]]
| death_date = {{Death date and age|df=yes|1968|3|27|1934|3|9}}
| death_place = [[Novosyolovo]], Russian SFSR, Soviet Union
| resting_place = [[Kremlin Wall Necropolis]]
| occupation = [[Pilot (aircraft)|Pilot]]
| rank = Colonel ([[Polkovnik]]), [[Soviet Air Forces]]
| selection = [[List of astronauts by year of selection#1960|Air Force Group 1]]
| time = 1 hour, 48 minutes
| mission = [[Vostok 1]]
| insignia =
| awards = {{Hero of the Soviet Union}} {{Order of Lenin}}
}}
Microformat
Tracking category
Template:Spaceflight infoboxes
| The above documentation is transcluded from Template:Infobox astronaut/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |
