Difference between revisions of "Template:Infobox star"

From blackwiki
Jump to navigation Jump to search
imported>Primefac
(add deprecated template)
imported>Zackmann08
(redirecting for now. Will soon be undergoing a major rebuild.)
Line 1: Line 1:
<noinclude>{{Being deleted|2018 November 20|Template:Infobox_star}}
+
#redirect [[Template:Starbox begin]]
{{deprecated|Infobox star|Starbox begin|date=9 December 2018}}</noinclude>{{infobox
 
| bodystyle = width: {{{width|20em}}}; font-size: 90%
 
 
 
| title = {{{name|<includeonly>For instructions on use, see [[Template:Infobox star]]</includeonly>}}}
 
 
 
| image    = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{imagesize|}}}|alt={{{alt|}}}}}
 
| caption = {{{caption|}}}
 
 
 
<!------------------------------ Observation data ----------------------------->
 
| header1 = {{#if: {{{observation_data|}}} | <div style="background-color: {{{bgcolour|}}}; width:100%">Observational data</div>}}
 
 
 
| label2 = [[Epoch (astronomy)|Epoch]]:
 
|  data2 = {{{epoch|}}}
 
 
 
| label3 = [[Constellation]]:
 
|  data3 = {{{constellation|}}}
 
 
 
| label4 = [[Right ascension]]:
 
|  data4 = {{{ra|}}}
 
 
 
| label5 = [[Declination]]:
 
|  data5 = {{{dec|}}}
 
 
 
| label6 = [[Apparent magnitude]]:
 
|  data6 = {{{apparent_magnitude|}}}
 
 
 
| label7 = [[Absolute magnitude]]:
 
|  data7 = {{{absolute_magnitude|}}}
 
 
 
| label8 = [[Spectral type]]/<br/>{{nowrap|[[Luminosity class]]:}}
 
|  data8 = {{{spectral_type|}}}{{{luminosity_class|}}}
 
 
 
 
 
<!------- name1 -------->
 
| header10 = {{{name1|}}}
 
 
 
| label11 = [[Right ascension]]:
 
|  data11 = {{{ra1|}}}
 
 
 
| label12 = [[Declination]]:
 
|  data12 = {{{dec1|}}}
 
 
 
| label13 = [[Apparent magnitude]]:
 
|  data13 = {{{apparent_magnitude1|}}}
 
 
 
| label14 = [[Absolute magnitude]]:
 
|  data14 = {{{absolute_magnitude1|}}}
 
 
 
| label15 = [[Spectral type]]/<br/>{{nowrap|[[Luminosity class]]:}}
 
|  data15 = {{{spectral_type1|}}}{{{luminosity_class1|}}}
 
 
 
 
 
<!------- name2 -------->
 
| header20 = {{{name2|}}}
 
 
 
| label21 = [[Right ascension]]:
 
|  data21 = {{{ra2|}}}
 
 
 
| label22 = [[Declination]]:
 
|  data22 = {{{dec2|}}}
 
 
 
| label23 = [[Apparent magnitude]]:
 
|  data23 = {{{apparent_magnitude2|}}}
 
 
 
| label24 = [[Absolute magnitude]]:
 
|  data24 = {{{absolute_magnitude2|}}}
 
 
 
| label25 = [[Spectral type]]/<br/>{{nowrap|[[Luminosity class]]:}}
 
|  data25 = {{{spectral_type2|}}}{{{luminosity_class2|}}}
 
 
 
 
 
<!---------------------------- Physical attributes ---------------------------->
 
| header50 = {{#if: {{{physical_attributes|}}}{{{distance_pc|}}}{{{distance_pc1|}}}{{{distance_pc2|}}}{{{radius|}}}{{{radius1|}}}{{{radius2|}}}{{{mass|}}}{{{mass1|}}}{{{mass2|}}} | <div style="background-color: {{{bgcolour|}}}; width:100%">Physical attributes</div>}} <!-- To maintain independence from |physical_attributes=, add any new attributes to the front of this #if: statement. The "Physical attributes" header will then show whenever its child parameters are populated. In this way, |physical_attributes= serves as a fail-safe against uninformed article-editors. This can be similarly done to |observation_data=. -->
 
 
 
| label51 = [[Cosmic distance ladder|Distance]]:
 
|  data51 = {{{distance_pc|}}}
 
 
 
| label52 = [[Solar radius|Radius]]:
 
|  data52 = {{#if: {{{radius|}}} | {{Solar radius|{{{radius|}}}|link=y}} }}
 
 
 
| label53 = [[Solar mass|Mass]]:
 
|  data53 = {{#if: {{{mass|}}} | {{Solar mass|{{{mass|}}}|link=y}} }}
 
 
 
 
 
<!------- name1 -------->
 
| header60 = {{#if: {{{physical_attributes|}}} | {{{name1|}}} }} <!-- If physical_attributes and name1 are not blank, show name1 -->
 
 
 
| label61 = [[Cosmic distance ladder|Distance]]:
 
|  data61 = {{{distance_pc1|}}}
 
 
 
| label62 = [[Solar radius|Radius]]:
 
|  data62 = {{#if: {{{radius1|}}} | {{Solar radius|{{{radius1|}}}|link=y}} }}
 
 
 
| label63 = [[Solar mass|Mass]]:
 
|  data63 = {{#if: {{{mass1|}}} | {{Solar mass|{{{mass1|}}}|link=y}} }}
 
 
 
 
 
<!------- name2 -------->
 
| header70 = {{#if: {{{physical_attributes|}}} | {{{name2|}}} }}
 
 
 
| label71 = [[Cosmic distance ladder|Distance]]:
 
|  data71 = {{{distance_pc2|}}}
 
 
 
| label72 = [[Solar radius|Radius]]:
 
|  data72 = {{#if: {{{radius2|}}} | {{Solar radius|{{{radius2|}}}|link=y}} }}
 
 
 
| label73 = [[Solar mass|Mass]]:
 
|  data73 = {{#if: {{{mass2|}}} | {{Solar mass|{{{mass2|}}}|link=y}} }}
 
 
 
 
 
<!----------------------------------- Footer ---------------------------------->
 
| header99 = {{#if:{{{names|}}} | Other designations }}
 
|  data100 = {{{names|}}}
 
 
 
}}<noinclude>{{Documentation}}</noinclude>
 

Revision as of 00:16, 10 December 2018