Difference between revisions of "Template:Infobox astronaut/doc"

From blackwiki
Jump to navigation Jump to search
imported>Myself488
m (added interwiki-links)
imported>Soumya-8974
 
(71 intermediate revisions by 39 users not shown)
Line 1: Line 1:
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
+
{{Documentation subpage}}
    <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
+
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 +
{{Person infobox header}}
 +
{{Uses Infobox person}}
 +
{{lua|Module:InfoboxImage|Module:Check for unknown parameters}}
 +
 
 +
{{tl|Infobox astronaut}} may be used in an article about a person who is an [[astronaut]] or cosmonaut.
  
 
== Usage ==
 
== Usage ==
 +
 
This infobox may be added by copy-pasting the template as shown below into an article.
 
This infobox may be added by copy-pasting the template as shown below into an article.
  
<div style="width:250px; background:#ddd; border:1px solid black; padding:0.5em 1em 0.5em 1em;">
+
{{Parameter names example
<pre>{{Infobox Astronaut
+
|name |honorific_prefix |honorific_suffix |image |image_size |alt |caption |type |native_name |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={{{selection}}}&nbsp;[a&nbsp;date] |evas={{{evas}}}&nbsp;[a&nbsp;number] |eva_time |missions={{{missions}}} or {{{mission}}} |insignia |retirement={{{retirement}}}&nbsp;[a&nbsp;date] |awards |memorials |website |module
|name               =  
+
}}
|image               =  
+
 
|width              =  
+
<div style="width:60%;background:#ddd;border:1px solid black;padding:0.5em 1.0em;">
|caption             =  
+
<pre style="overflow:auto;">
|type               =  
+
{{Infobox astronaut
|nationality         =  
+
| name =
|status             =  
+
| honorific_prefix =
|date_birth          =  
+
| honorific_suffix =  
|place_birth        =  
+
| image =  
|date_death          =  
+
| image_size =
|place_death        =  
+
| alt =
|occupation         =  
+
| caption =  
|current_occupation =  
+
| type =
|previous_occupation =  
+
| native_name =
|rank               =  
+
| native_name_lang =  
|time                =  
+
| nationality =  
|selection           =  
+
| status =  
|mission             =  
+
| birth_name =
|insignia           =  
+
| birth_date =  
|Date of ret        =  
+
| birth_place =  
|awards             =  
+
| death_date =  
}}</pre>
+
| 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 =
 +
}}
 +
</pre>
 
</div>
 
</div>
 +
{{clear}}
  
== Parameters ==
+
===Parameters===
 +
{{Aligned table
 +
| class = wikitable
 +
| row1header = y
 +
| cols = 2
 +
| col1style = font-style:italic;font-weight:bold;padding-right:1.0em;
 +
| {{noitalic|Parameter}} | Explanation
 +
| name        | Commonly-known name of person (defaults to article name, without disambiguation)
 +
| honorific_prefix | To appear on the line above the person's name
 +
| honorific_suffix | To appear on the line below the person's name
 +
| image      | A picture of or including the person. Use file name only, without the [[bracket]]s and File: or Image: prefix (abc.jpg, xyz.png, etc.)
 +
| image_size  | Size to display image: ''200px'' (set width), ''x300px'' (set height), or ''200x300px'' (max width & max height). This defaults to ''frameless'' (default is 220px, but logged in users can change this by clicking on "my preferences" and adjusting thumbnail size) if empty or omitted. This parameter should not normally need to be set.
 +
| alt        | Alternative text for image, for visually impaired readers (see [[WP:ALT]])
 +
| caption    | Caption to accompany image. If a (portrait) photograph of the person, try to include date of photo and photographer's name.
 +
| type        | Sponsoring agency (NASA, RKA, ESA, CSA, etc.) plus "Astronaut" ("Cosmonaut" for RKA) for professionals; Payload Specialist, Tourist, etc. for other flyers.
 +
| native_name | Name in the person's [[native language]]. If more than one, separate using {{tl|plainlist}}.
 +
| native_name_lang | [[ISO 639-1]] two-letter code for person's native language (e.g. "fr" for French). If more than one, use {{tl|lang}} in {{para|native_name}} instead.
 +
| nationality | Nationality. [[Wikipedia:Manual of Style (icons)#Biographical use|Do not use a flag template]].
 +
| citizenship | Citizenship. See [[Template:Infobox person#nationality|usage notes in documentation of template Infobox person]].
 +
| status      | Status of involvement with an astro/cosmonaut corps (e.g. Active, Retired, Dismissed); applies only to ''living'' persons. Remove upon death; do not put "dead" or circumstances of death.
 +
| birth_name  | Name at birth, if different than ''name''
 +
| birth_date  | Date of birth. If the person is living, use {{tl|Birth date and age}}, {{tl|Birth-date and age}}, or {{tl|Birth year and age}}. If deceased, use {{tl|Birth date}} or {{tl|Birth-date}}. Use plain text for partial dates. <br />Example: <nowiki>{{Birth date and age|1950|8|26}}</nowiki> if born August 26, 1950 <br />Example: <nowiki>{{Birth date and age|df=yes|1950|8|26}}</nowiki> to display birth date as 26 August 1950
 +
| birth_place | Place of birth (town/city, state/province, country).
 +
| death_date  | Date of death. If the date of birth is known, use {{tl|Death date and age}}, {{tl|Death-date and age}}, or {{tl|Death year and age}}. Otherwise, use {{tl|Death date}} or {{tl|Death-date}}. Use plain text for partial dates. <br />Example: <nowiki>{{Death date and age|1993|2|24|1950|8|26}}</nowiki> if died February 24, 1993 and born August 26, 1950 <br />Example: <nowiki>{{Death date and age|df=yes|1993|2|24|1941|4|12}}</nowiki> to display death date as 24 February 1993
 +
| death_place | Place of death (town/city, state/province, country).
 +
| resting_place | Location where person buried, ashes interred/scattered, etc.
 +
| resting_place_coords | Precise coordinates for place of burial, ash-scattering etc. Use {{tl|coord}} template.
 +
| other_names | If person used/known by names other than those already given.
 +
| occupation  | Occupation or occupations other than as an astro/cosmonaut.
 +
| current_occupation | Current occupation if not still an astro/cosmonaut. 
 +
| previous_occupation | Occupation before becoming an astro/cosmonaut.
 +
| alma_mater  | ''[[Alma mater]]''.
 +
| rank        | ''Military'' rank (if any).
 +
| space_time  | Total time (to date) person has spent in space (h(ours) m(inutes) s(econds)).
 +
| selection  | Date when person selected to train as an astronaut.
 +
| evas        | Total number of [[Extra-vehicular activity|EVA]]s.
 +
| eva_time    | Total time of all EVAs when combined.
 +
| missions<br/>{{nobold|or:}} mission | ''Completed'' or ''in-progress'' space mission or missions in which the person has taken or is taking part. Do not enter future missions: crew assignments can change prior to launch.
 +
| insignia    | One or more images of ''completed'' or ''in-progress'' mission insignia for space missions in which the person has taken or is taking part. Do not enter future missions: crew assignments can change prior to launch.
 +
| retirement  | Date when person retired from astro/cosmonaut activity.
 +
| awards      | Any awards person has received.
 +
| memorials  | Any monuments or memorials to the person.
 +
| website<br/>{{nobold|or: }}url | Official website only. Unofficial websites should be placed under <nowiki>==External links==</nowiki> in the body of the article. Use {{tl|URL}} as in <nowiki>{{URL|Example.com}}</nowiki>. Do not include the <code>www.</code> part unless the server requires it. Use [[camel case]] capitalization to make multiword domain names easier to read.
 +
| module      | Used for embedding other templates into this infobox (see [[#module|below]] for more details).
 +
| child      | For embedding this infobox into another (see [[#child|below]] for more details).
 +
}}
  
{| class="wikitable"
+
{{Anchor|module}}
!style="width:140px; text-align:left;"| Parameter
 
!style="text-align:left;"| Explanation
 
|-
 
| '''''name'''''
 
| Insert name of person.
 
|-
 
| '''''image'''''
 
| Insert image, preferably at 200px.
 
|-
 
| '''''width'''''
 
| Set (optional) width of image; defaults to: 20em.
 
|-
 
| '''''caption'''''
 
| Insert photograph caption. Try to include date of photo and the photographer.
 
|-
 
| '''''type'''
 
| Sponsoring agency (NASA, RKA, CSA, etc.) plus either Astronaut or Cosmonaut for professionals or Payload Specialist, Tourist, etc. for other flyers
 
|-
 
| '''''date_birth'''''
 
| Insert date of birth: month, day, year.
 
|-
 
| '''''place_birth'''''
 
| Insert place of birth: town, city, country.
 
|-
 
| '''''date_death'''''
 
| Insert date of death: month, day, year.
 
|-
 
| '''''place_death'''''
 
| Insert place of death: town, city, country.
 
|-
 
| '''''occupation'''''
 
| Insert the person's other occupations aside from being an astronaut.
 
|-
 
| '''''current_occupation'''''
 
| Insert the person's current occupation, if not still an astronaut.
 
|-
 
| '''''previous_occupation'''''
 
| Insert what the person did prior to becoming an astronaut.
 
|-
 
| '''''rank'''''
 
| Insert the person's '''military''' rank, if any.
 
|-
 
| '''''time'''''
 
| Insert the amount of time the person has spent in space.
 
|-
 
| '''''selection'''''
 
| Insert when the person was selected to train as an astronaut.
 
|-
 
| '''''mission'''''
 
| Insert the '''completed''' mission(s) that the person has been a part of.
 
|-
 
| '''''insignia'''''
 
| Insert (an) image(s) of '''completed''' mission insignia(s).
 
|-
 
| '''''Date of ret'''''
 
| Insert the date that this person retired from astronaut service.
 
|-
 
| '''''awards'''''
 
| Insert any awards the person has received.
 
|}
 
  
==Microformat==
+
=== Embedding other templates via ''module'' parameter===
 +
The ''module'' parameter is used for embedding other templates into this infobox (see [[Wikipedia:Infobox modules]]). For example:
 +
<pre style="overflow:auto;">
 +
{{Infobox astronaut
 +
| name =
 +
| <!-- etc. -->
 +
| module =
 +
  {{Infobox football biography |embed=yes
 +
  | <!-- etc. -->
 +
  }}
 +
}}
 +
</pre>
 +
 
 +
{{Anchor|child}}
 +
 
 +
===Use as an embedded template via ''child'' parameter===
 +
The ''child'' parameter is used when embedding this infobox into another.
 +
 
 +
{{Infobox person module documentation |template=Infobox astronaut | parameter=child}}
 +
 
 +
== Example ==
 +
{{hatnote|The following markup is included '''only for illustration purposes'''. It is not intended to provide up-to-date information about [[Yuri Gagarin]] and should not be updated for the sake of '''truth'''.}}
 +
{{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]]<br>[[Medal "For Merit in Space Exploration"]]
 +
}}
 +
<pre style="overflow:auto;">
 +
{{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}}
 +
}}
 +
</pre>
 +
{{clear}}
 +
 
 +
== Microformat ==
 
{{UF-hcard-person}}
 
{{UF-hcard-person}}
  
<includeonly>
+
== Tracking category ==
<!--Categories-->
+
* {{clc|Pages using infobox astronaut with unknown parameters}}
[[Category:People infobox templates|Astronaut]]
+
 
[[Category:Space exploration infobox templates|Astronaut]]
+
{{Spaceflight infoboxes}}
  
<!--Other languages-->
+
<includeonly>{{Sandbox other||
[[bg:Шаблон:Космонавт]]
+
<!-- Categories go here and interwikis go in Wikidata. -->
[[cs:Šablona:Infobox Kosmonaut]]
+
{{DEFAULTSORT:Astronaut}}
[[da:Skabelon: Infoboks astronaut]]
+
[[Category:People and person infobox templates]]
[[de:Vorlage:Infobox Raumfahrer]]
+
[[Category:Spaceflight infobox templates]]
[[es:Plantilla:Ficha de astronauta]]
+
[[Category:Biographical templates usable as a module|Astronaut]]<!--override defaultsort-->
[[fr:Modèle:Spationaute]]
+
[[Category:Infobox templates with module parameter|Astronaut]]<!--override defaultsort-->
[[he:תבנית:טייס חלל]]
+
[[Category:Templates that add a tracking category|{{PAGENAME}}]]<!--override defaultsort-->
[[mk:Шаблон:Инфокутија Астронаут]]
+
}}</includeonly>
[[hr:Predložak:Infokvir Astronaut]]
 
[[id:Templat:Infobox Astronaut]]
 
[[ja:Template:Infobox Astronaut]]
 
[[pt:Predefinição:Info astronauta]]
 
[[sk:Šablóna:Infobox Kozmonaut]]
 
[[zh:Template:Infobox Astronaut]]
 
</includeonly>
 

Latest revision as of 13:42, 25 July 2020

Template:Person infobox header Template:Uses Infobox person

{{Infobox astronaut}} may be used in an article about a person who is an astronaut or cosmonaut.

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
Юрий Гагарин
File:Gagarin in Sweden.jpg
Gagarin on a visit to Sweden, 1964
Born
Yuri Alekseyevich Gagarin

(1934-03-09)9 March 1934
Died27 March 1968(1968-03-27) (aged 34)
Novosyolovo, Russian SFSR, Soviet Union
Resting placeKremlin Wall Necropolis
NationalitySoviet
OccupationPilot
AwardsHero of the Soviet Union
Medal "For Merit in Space Exploration"
Space career
Soviet cosmonaut
The first human in space
RankColonel (Polkovnik), Soviet Air Forces
Time in space
1 hour, 48 minutes
SelectionAir Force Group 1
MissionsVostok 1

Template:Wikidata image

{{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

Template:UF-hcard-person

Tracking category

Template:Spaceflight infoboxes