Difference between revisions of "Template:Infobox astronaut"

From blackwiki
Jump to navigation Jump to search
imported>ArielGold
m (changing "Space time" to "Time in space' - which is the correct term used by NASA)
imported>Thumperward
(convert to {{infobox}} for code clarity and future maintainability)
Line 1: Line 1:
{| class="infobox vcard" style="width:22em; font-size:88%; text-align:left"
+
{{ infobox
 +
| bodyclass  = vcard
 +
| aboveclass = fn
 +
| above      = {{{name|<includeonly>{{PAGENAME}}</includeonly>}}}
 +
| image      = {{#if:{{{image|}}} | [[Image:{{{image}}}|{{{width|200px}}}]]}}
 +
| caption    = {{{caption|}}}
  
<!-----Name----->
+
| header1    = {{#if:{{{type|}}}|<span class="role">{{{type}}}</span>}}
|-
 
| colspan="2" style="text-align:center; font-size:larger;" class="fn" {{!}} '''{{{name<includeonly>|{{PAGENAME}}</includeonly>}}}'''
 
  
<!----Image----->
+
| label1    = Nationality
|-
+
| data1      = {{{nationality|}}}
|colspan="2" style="text-align:center"| {{#if:{{{image<includeonly>|</includeonly>}}} | [[Image:{{{image}}}|{{{width|200px}}}|{{PAGENAME}}]]<br/>
+
| label2    = Status
{{{caption|}}} |<!--else:--><noinclude>{{{image}}}</noinclude>}}
+
| data2      = {{{status|}}}
|-
+
| label3    = Born
 +
| data3      = {{{date_birth|}}}{{#if:{{{place_birth|}}}<br />{{{place_birth}}} }}
 +
| label4    = Died
 +
| data4      = {{{date_death|}}}{{#if:{{{place_death|}}}<br />{{{place_death}}} }}
 +
| label5    = Other occupation
 +
| data5      = {{{occupation|}}}
 +
| label6    = Current occupation
 +
| data6      = {{{current_occupation|}}}
 +
| label7    = Previous occupation
 +
| data7      = {{{previous_occupation|}}}
 +
| label8    = Rank
 +
| data8      = {{{rank|}}}
 +
| label9    = Time in space
 +
| data9      = {{{time|}}}
 +
| label10    = Selection
 +
| data10    = {{{selection|}}}
 +
| label11    = Missions
 +
| data11    = {{{mission|}}}
 +
| label12    = Mission insignia
 +
| data12    = {{{insignia|}}}
 +
| label13    = Retirement
 +
| data13    = {{{Date of ret|}}}
  
<!-----Type----->
+
}}<noinclude>{{documentation}}<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --></noinclude>
{{#if:{{{type<includeonly>|</includeonly>}}} |
 
!colspan="2" style="text-align:center;" cellspacing="0" cellpadding="2"{{!}} <span class="role">{{{type}}}</span>
 
{{!-}}
 
}}
 
 
 
<!-----Nationality----->
 
!style="width:7em; padding-left:0.5em;"| Nationality
 
|style="padding-left:0.5em;"          | {{{nationality}}}
 
|-
 
 
 
<!-----Status----->
 
{{#if:{{{status<includeonly>|</includeonly>}}} |
 
!style="width:7em; padding-left:0.5em;"      {{!}} Status
 
{{!}}class="note" style="padding-left:0.5em;"{{!}} {{{status}}}
 
{{!-}}
 
}}
 
 
 
<!-----Birth/Death----->
 
!style="vertical-align:middle; padding-left:0.5em;"| Born
 
|style="padding-left:0.5em;"| {{{date_birth<includeonly>|</includeonly>}}}<br/>{{{place_birth<includeonly>|</includeonly>}}}
 
|-
 
{{#if:{{{date_death<includeonly>|</includeonly>}}} |
 
!style="vertical-align:middle; padding-left:0.5em;"{{!}} Died
 
{{!}}style="padding-left:0.5em;"{{!}} {{{date_death}}}<br/>{{{place_death<includeonly>|</includeonly>}}}
 
{{!-}}
 
}}
 
 
 
<!-----Occupation----->
 
{{#if:{{{occupation<includeonly>|</includeonly>}}} |
 
!style="vertical-align:middle; padding-left:0.5em;"    {{!}} Other occupation
 
{{!}}style="vertical-align:middle; padding-left:0.5em;"{{!}} {{{occupation}}}
 
{{!-}}
 
}}
 
{{#if:{{{current_occupation<includeonly>|</includeonly>}}} |
 
!style="line-height:11pt; padding-left:0.5em;"        {{!}} Current<br/>occupation
 
{{!}}style="vertical-align:middle; padding-left:0.5em;"{{!}} {{{current_occupation}}}
 
{{!-}}
 
}}
 
{{#if:{{{previous_occupation<includeonly>|</includeonly>}}} |
 
!style="line-height:11pt; padding-left:0.5em;"        {{!}} Previous<br/>occupation
 
{{!}}style="vertical-align:middle; padding-left:0.5em;"{{!}} {{{previous_occupation}}}
 
{{!-}}
 
}}
 
 
 
<!-----Military Rank----->
 
{{#if:{{{rank<includeonly>|</includeonly>}}} |
 
!style="vertical-align:middle; padding-left:0.5em;" {{!}} Rank
 
{{!}}style="padding-left:0.5em;"                    {{!}} {{{rank}}}
 
{{!-}}
 
}}
 
 
 
<!-----Time in space----->
 
{{#if:{{{time<includeonly>|</includeonly>}}} |
 
!style=" padding-left:0.5em;"  {{!}} Time&nbsp;in&nbsp;space
 
{{!}}style="padding-left:0.5em;"{{!}} {{{time}}}
 
{{!-}}
 
}}
 
 
 
<!-----Selection, Completed Mission/s, Mission Insignia----->
 
!style="vertical-align:middle; padding-left:0.5em;"| Selection
 
|style="padding-left:0.5em;"                      | {{{selection}}}
 
|-
 
!style="vertical-align:middle; padding-left:0.5em;"| Missions
 
|style="padding-left:0.5em;"                      | {{{mission}}}
 
|-
 
 
 
{{#if:{{{insignia<includeonly>|</includeonly>}}} |
 
!style="line-height:11pt; vertical-align:middle; padding-left:0.5em;"{{!}} Mission<br/>insignia
 
{{!}}style="vertical-align:middle; padding-left:0.5em;"              {{!}} {{{insignia}}}
 
{{!-}}
 
}}
 
 
 
<!-----Retirement----->
 
{{#if:{{{Date of ret<includeonly>|</includeonly>}}} |
 
!style="vertical-align:middle; padding-left:0.5em;"    {{!}} Retirement
 
{{!}}style="vertical-align:middle; padding-left:0.5em;"{{!}} {{{Date of ret}}}
 
{{!-}}e
 
}}
 
 
 
|}<noinclude>
 
{{documentation}}
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS -->
 
</noinclude>
 

Revision as of 09:03, 28 October 2008

[[Category:Infobox templates|Template:Remove first word]]

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
Gagarin in Sweden.jpg
Gagarin on a visit to Sweden, 1964
Soviet cosmonaut
The first human in space
Other occupationPilot
RankColonel (Polkovnik), Soviet Air Forces
Time in space1 hour, 48 minutes
SelectionAir Force Group 1
MissionsVostok 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

Template:UF-hcard-person

Tracking category

Template:Spaceflight infoboxes