Difference between revisions of "Template:Infobox space shuttle"

From blackwiki
Jump to navigation Jump to search
imported>Thumperward
(update styling)
imported>Thumperward
(convert to {{infobox}} for code clarity and future maintainability)
Line 1: Line 1:
{| {{WPMILHIST Infobox style|main_box}}
+
{{ infobox
|+ colspan=2 | '''''{{{name}}}'''''
+
| title  = <includeonly>''{{{name|{{PAGENAME}}}}}''</includeonly>
|-
+
| image  = {{#if:{{{image|}}}|[[Image:{{{image}}}|200px|{{PAGENAME}}]]}}
|colspan="2" align="center"| {{#if:{{{image<includeonly>|</includeonly>}}}
+
| caption = {{{caption|}}}
|[[Image:{{{image}}}|200px|{{PAGENAME}}]]<br/>
 
<small>{{{caption<includeonly>|</includeonly>}}}</small>}}<!--
 
  
-->{{#if:{{{number<includeonly>|</includeonly>}}}
+
| label1  = [[Orbiter Vehicle Designation|OV designation]]
|<tr valign="top"><td>'''[[Orbiter Vehicle Designation|OV&nbsp;designation]]'''</td><td valign="middle">{{{number}}}</td></tr>}}<!--
+
| data1  = {{{number|}}}
 +
| label2  = Country
 +
| data2  = {{{country|}}}
 +
| label3  = Contract award
 +
| data3  = {{{contract|}}}
 +
| label4  = Named after
 +
| data4  = {{{named_after|}}}
 +
| label5  = Status
 +
| data5  = {{{status|}}}
 +
| label6  = First flight
 +
| data6  = {{{first_flight|}}}{{#if:{{{first_date|}}}|<br />{{{first_date}}} }}
 +
| label7  = Last flight
 +
| data7  = {{{last_flight|}}}{{#if:{{{last_date|}}}|<br />{{{last_date}}} }}
 +
| label8  = Planned retirement
 +
| data8  = {{{retirement|}}}{{#if:{{{date|}}}|<br />{{{date}}} }}
 +
| label9  = Number of missions
 +
| data9  = {{{missions|}}}
 +
| label10 = Crews
 +
| data10  = {{{crews|}}}
 +
| label11 = Time spent in space
 +
| data11  = {{{time|}}}
 +
| label12 = Number of orbits
 +
| data12  = {{{orbits|}}}
 +
| label13 = Distance travelled
 +
| data13  = {{{distance|}}}
 +
| label14 = Satellites deployed
 +
| data14  = {{{deployed|}}}
 +
| label15 = [[Mir]] dockings
 +
| data15  = {{{dockings_mir|}}}
 +
| label16 = [[International Space Station|ISS]] dockings
 +
| data16  = {{{dockings_iss|}}}
  
-->{{#if:{{{country<includeonly>|</includeonly>}}}
+
}}<noinclude>{{documentation}}</noinclude>
|<tr valign="top"><td>'''Country'''</td><td>{{{country}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{contract<includeonly>|</includeonly>}}}
 
|<tr valign="top"><td>'''Contract&nbsp;award'''</td><td>{{{contract}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{named_after<includeonly>|</includeonly>}}}
 
|<tr valign="top"><td>'''Named&nbsp;after'''</td><td>{{{named_after}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{first_flight<includeonly>|</includeonly>}}}
 
|<tr valign="top">
 
<td>'''First&nbsp;flight'''</td><td>{{{first_flight}}}<br/>{{{first_date|}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{last_flight<includeonly>|</includeonly>}}}
 
|<tr valign="top">
 
<td>'''Last&nbsp;flight'''</td><td>{{{last_flight}}}<br/>{{{last_date|}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{Planned_Retirement<includeonly>|</includeonly>}}}
 
|<tr valign="top">
 
<td>'''Planned&nbsp;retirement'''</td><td>{{{retirement}}}<br/>{{{date|}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{missions<includeonly>|</includeonly>}}}
 
|<tr valign="top"><td>'''Number&nbsp;of&nbsp;missions'''</td><td>{{{missions}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{crews<includeonly>|</includeonly>}}}
 
|<tr valign="top"><td>'''Crews'''</td><td>{{{crews}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{time<includeonly>|</includeonly>}}}
 
|<tr valign=top><td>'''Time&nbsp;spent&nbsp;in&nbsp;space'''</td><td>{{{time}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{orbits<includeonly>|</includeonly>}}}
 
|<tr valign="top"><td>'''Number&nbsp;of&nbsp;orbits'''</td><td>{{{orbits}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{distance<includeonly>|</includeonly>}}}
 
|<tr valign="top"><td>'''Distance&nbsp;travelled'''</td><td>{{{distance}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{deployed<includeonly>|</includeonly>}}}
 
|<tr valign="top"><td>'''Satellites&nbsp;deployed'''</td><td>{{{deployed}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{dockings_mir<includeonly>|</includeonly>}}}
 
|<tr valign="top"><td>'''[[Mir]]&nbsp;dockings'''</td><td>{{{dockings_mir}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{dockings_iss<includeonly>|</includeonly>}}}
 
|<tr valign="top">
 
<td>'''[[International Space Station|ISS]]&nbsp;dockings'''</td><td>{{{dockings_iss}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{status<includeonly>|</includeonly>}}}
 
|<tr valign="top"><td>'''Status:'''</td><td>{{{status}}}</td></tr>}}
 
 
 
|}<noinclude>
 
{{documentation}}
 
</noinclude>
 

Revision as of 10:21, 29 October 2008

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

Template documentation[view] [edit] [history] [purge]

This infobox is used for individual Space Shuttle orbiters and Buran-class orbiters.

Usage

Full code
{{Infobox space shuttle
| name = <!-- English name(s) of the orbiter, page name if left blank -->
| native_name = <!-- Native name(s) of the orbiter -->
| native_name_lang = <!-- ISO-639-1 designation of the native language -->
| image = <!-- image of the orbiter without Image: or File: prefixes -->
| image_size = <!-- image size of the orbiter -->
| alt = <!-- image alt of the orbitere -->
| caption = <!-- image caption of the orbiter -->
| type = <!-- type of the orbiter -->
| number = <!-- construction number of the orbiter -->
| country = <!-- country who manufactured the orbiter -->
| contract = <!-- when the orbiter was contracted -->
| named_after = <!-- namesake of the orbiter -->
| status = <!-- current status of the orbiter -->
| first_flight = <!-- first flight of the orbiter -->
| first_date = <!-- range of the first flight -->
| last_flight = <!-- last flight of the orbiter -->
| last_date = <!-- range of the last flight -->
| retirement = <!-- planned flight after which the orbiter will be retired, if the orbiter is currently in service -->
| date = <!-- date of the planned retirement -->
| missions = <!-- number of missions the orbiter accomplished -->
| crews = <!-- total number of crews the orbiter carried -->
| time = <!-- total number of days the orbiter spent in space -->
| orbits = <!-- total number of orbits the orbiter orbited -->
| distance = <!-- total distance the orbiter traveled in space -->
| deployed = <!-- number of satellites the orbiter deployed -->
| dockings_mir = <!-- number of times the orbiter docked to the Mir space station -->
| dockings_iss = <!-- number of times the orbiter docked to the International Space Station -->
}}

Example

'Columbia'
Infobox space shuttle
Columbia launches on STS-109 (HST-3B) to repair the Hubble Space telescope.
OV designationOV-102
CountryUnited States
Contract awardJuly 26, 1972
Named afterColumbia (1773)
(renamed Columbia Rediviva, 1787)
StatusDestroyed (February 1, 2003)
First flightSTS-1
April 12, 1981 – April 14, 1981
Last flightSTS-107
January 16, 2003 – February 1, 2003
Number of missions28
Crews160
Number of orbits4,808
Distance travelled201,497,772 km (125,204,911 mi)
Satellites deployed8
[[Category:Infobox templates|Template:Remove first word]]
{{Infobox space shuttle
| name =''Columbia''
| image = STS-109 launch.jpg
| caption = ''Columbia'' launches on STS-109 (HST-3B) to repair the Hubble Space telescope.
| type = [[Space Shuttle orbiter]]
| number =OV-102
| country =United States
| contract =July 26, 1972
| named_after =''[[Columbia Rediviva|Columbia]]'' (1773)<br/> (renamed ''[[Columbia Rediviva]]'', 1787)
| status =[[Space Shuttle Columbia disaster|Destroyed]] (February 1, 2003)
| first_flight =[[STS-1]]
| first_date =April 12, 1981 – April 14, 1981
| last_flight =[[STS-107]]
| last_date =January 16, 2003 – February 1, 2003
| missions =28
| crews =160
| days =300
| orbits =4,808
| distance ={{cvt|201,497,772|km}}
| deployed =8
}}

See also

Template:Spaceflight infoboxes