Difference between pages "Template:Infobox star" and "Template:Infobox star/sandbox"

(Difference between pages)
Jump to navigation Jump to search
Page 1
Page 2
imported>PhilipTerryGraham
(Merged {{Deprecated}} into custom {{Mbox}} message)
 
imported>PhilipTerryGraham
(Even brighter colour for compact stars)
 
Line 1: Line 1:
<noinclude>{{Intricate template}}{{Mbox|text = This template is currently being developed, and thus it is [[Deprecation|discouraged from use]] until its development is complete to a standard satisfactory to the community. If you have any suggestions for changes to this template, discuss them '''[[Template talk:Infobox star|on the talk page]]'''.}}</noinclude>{{Infobox
+
{{Infobox
| headerstyle  = font-size: 100%; background-color: #FFFFC0
+
| headerstyle  = font-size: 100%; background-color: #{{#switch:{{{type|}}} | [[Compact star]] = D9F9FF | [[Black hole]] = E9E9E9 | #default = FFFFCD}}
 
| title        = {{{name|}}}
 
| title        = {{{name|}}}
| image        = <includeonly>{{#invoke:InfoboxImage|InfoboxImage|image={{#if:{{{image|}}} | {{{image|}}} | <div style="position: relative">[[File:{{{constellation|}}} constellation map.svg|frameless|alt=Diagram showing star positions and boundaries of the {{{constellation|}}} constellation and its surroundings]]<div style="position: absolute; left: {{{map x|}}}%; top: {{{map y|}}}%;">[[File:Red circle.svg|{{{map circle|12}}}px]]</div></div> }}|alt={{{alt|}}}}}</includeonly>
+
| image        = <includeonly>{{#invoke:InfoboxImage|InfoboxImage|image={{#if:{{{image|}}} | {{#ifeq:{{{image|}}} | none | | {{{image|}}} }} | <div style="position: relative">[[File:{{#if:{{{map image|}}} | {{{map image|}}} | {{{constellation|}}} constellation map.svg }}|frameless|alt=Diagram showing star positions and boundaries of the {{{constellation|}}} constellation and its surroundings, with the location of {{{name|}}} circled]]<div style="position: absolute; left: {{{map x|}}}%; top: {{{map y|}}}%;">[[File:Red circle.svg|{{{map circle|12}}}px]]</div></div> }}|alt={{{alt|}}}}}</includeonly>
| caption      = <includeonly>{{#if:{{{image|}}} | {{{caption|}}} | Location of {{{name|}}} in {{{constellation|}}} (circled) }}</includeonly>
+
| caption      = <includeonly>{{#if:{{{image|}}}{{{map image|}}} | {{{caption|}}} | }}</includeonly>
  
| label1      = [[List of proper names of stars|Proper name]]
+
| header1      = <includeonly>{{#if: {{{type|}}} | {{{type|}}} in [[{{{constellation|}}} (constellation)|{{{constellation|}}}]] | {{#if: {{{stars|}}} | {{#ifexpr: {{{stars|}}} > 1 | [[Star system]] in [[{{{constellation|}}} (constellation)|{{{constellation|}}}]] | [[Star]] in [[{{{constellation|}}} (constellation)|{{{constellation|}}}]] }} | [[Star]] in [[{{{constellation|}}} (constellation)|{{{constellation|}}}]] }} }}</includeonly>
| data1        = {{#if:{{{proper name b|}}}{{{magnitude b|}}}{{{spectral b|}}}{{{age b|}}}{{{mass b|}}}{{{radius b|}}}{{{rotation b|}}}{{{planets b|}}}{{{period b|}}}{{{axis b|}}}{{{eccentricity b|}}}{{{inclination b|}}} | | {{{proper name|}}}}}
 
| label2      = [[Constellation]]
 
| data2        = {{#if:{{{constellation|}}} | [[{{{constellation|}}} (constellation)|{{{constellation|}}}]] | }}
 
| label3      = [[Galaxy]]
 
| data3        = {{{galaxy|}}}
 
| label4      = [[Celestial coordinate system|Coordinates]]
 
| data4        = {{Unbulleted list|{{{ascension|}}}|{{{declination|}}}}}
 
| label5      = [[Cosmic distance ladder|Distance]]
 
| data5        = {{{distance|}}}
 
| label6      = [[Epoch (astronomy)|Epoch]]
 
| data6        = {{{epoch|}}}
 
  
| data7       = {{#if:{{{proper name b|}}}{{{magnitude b|}}}{{{spectral b|}}}{{{age b|}}}{{{mass b|}}}{{{radius b|}}}{{{rotation b|}}}{{{planets b|}}} | | {{#if:{{{magnitude|}}}{{{spectral|}}}{{{age|}}}{{{mass|}}}{{{radius|}}}{{{rotation|}}}{{{planets|}}} | '''Characteristics''' | }} }}
+
| label2      = [[Star]]s
| header8      = {{#if:{{{proper name b|}}}{{{magnitude b|}}}{{{spectral b|}}}{{{age b|}}}{{{mass b|}}}{{{radius b|}}}{{{rotation b|}}}{{{planets b|}}}{{{period b|}}}{{{axis b|}}}{{{eccentricity b|}}}{{{inclination b|}}} | {{{name|}}} A | }}
+
| data2        = {{{stars|}}}
 +
| label3      = [[Epoch (astronomy)|Epoch]]
 +
| data3       = <includeonly>{{#if:{{{epoch|}}} | {{{epoch|}}} | [[Epoch (astronomy)#Julian years and J2000|J2000.0]] }}</includeonly>
 +
| label4      = [[List of proper names of stars|Proper name]]
 +
| data4        = {{{proper name|}}}
 +
| label5      = [[Galaxy]]
 +
| data5        = {{{galaxy|}}}
 +
| label6      = [[Celestial coordinate system|Coordinates]]
 +
| data6        = {{Unbulleted list|{{{ascension|}}}|{{{declination|}}}}}
 +
| label7      = [[Apparent magnitude|Apparent {{Mvar|m}}]] <sub>([[Visible spectrum|V]])</sub>
 +
| data7        = {{{apparent|}}}
 +
| label8      = {{#if:{{{apparent band|}}} | {{#if:{{{apparent|}}} | Apparent {{Mvar|m}} <sub>({{{apparent band|}}})</sub> | [[Apparent magnitude|Apparent {{Mvar|m}}]] <sub>({{{apparent band|}}})</sub> }} | }}
 +
| data8        = {{#if:{{{apparent band|}}} | {{{apparent alt|}}} | }}
 +
| label9      = [[Absolute magnitude|Absolute {{Mvar|m}}]] <sub>({{#if:{{{apparent|}}}{{{apparent alt band|}}}{{{apparent alt|}}} | V | [[Visible spectrum|V]] }})</sub>
 +
| data9        = {{{absolute|}}}
 +
| label10      = [[Cosmic distance ladder|Distance]]
 +
| data10      = {{{distance|}}}
 +
| label11      = [[Proper motion]]
 +
| data11      = {{Unbulleted list|{{{motion ra|}}}|{{{motion dec|}}}}}
 +
| label12      = [[Radial velocity]]
 +
| data12      = {{{velocity|}}}
  
| label9      = [[List of proper names of stars|Proper name]]
+
| header13    = {{#if:{{{stars|}}} | {{#ifexpr: {{{stars|}}} < 2 | {{#if:{{{age|}}}{{{mass|}}}{{{radius|}}}{{{rotation|}}}{{{temperature|}}}{{{stellar|}}}{{{variable|}}}{{{planets|}}} | Characteristics | }} | }} | {{#if:{{{age|}}}{{{mass|}}}{{{radius|}}}{{{rotation|}}}{{{temperature|}}}{{{stellar|}}}{{{variable|}}}{{{planets|}}} | Characteristics | }} }}
| data9        = {{#if:{{{proper name b|}}}{{{magnitude b|}}}{{{spectral b|}}}{{{age b|}}}{{{mass b|}}}{{{radius b|}}}{{{rotation b|}}}{{{planets b|}}}{{{period b|}}}{{{axis b|}}}{{{eccentricity b|}}}{{{inclination b|}}} | {{{proper name|}}} | }}
 
| label10      = [[Apparent magnitude|Apparent {{Mvar|m}}]]
 
| data10      = {{{magnitude|}}}
 
| label11      = [[Stellar classification|Spectral type]]
 
| data11      = {{{spectral|}}}
 
| label12      = [[Stellar evolution|Age]]
 
| data12      = {{{age|}}}
 
| label13      = [[Stellar mass|Mass]]
 
| data13      = {{{mass|}}}
 
| label14      = [[Radius]]
 
| data14      = {{{radius|}}}
 
| label15      = [[Stellar rotation|Rotation]]
 
| data15      = {{{rotation|}}}
 
| label16      = [[Planetary system|Planets]]
 
| data16      = {{{planets|}}}
 
  
| data17      = {{#if:{{{period|}}}{{{axis|}}}{{{eccentricity|}}}{{{inclination|}}} | '''Orbit''' | }}
+
| label14      = {{#if:{{{age|}}} | {{#if:{{{stars|}}} | {{#ifexpr: {{{stars|}}} < 2 | [[Stellar evolution|Age]] | }} | [[Stellar evolution|Age]] }} | }}
| label18      = [[Orbital period|Period]]
+
| data14      = {{#if:{{{age|}}} | {{#if:{{{stars|}}} | {{#ifexpr: {{{stars|}}} < 2 | {{{age|}}} | }} | {{{age|}}} }} | }}
| data18      = {{{period|}}}
+
| label15     = {{#if:{{{mass|}}} | {{#if:{{{stars|}}} | {{#ifexpr: {{{stars|}}} < 2 | [[Stellar mass|Mass]] | }} | [[Stellar mass|Mass]] }} | }}
| label19      = [[Semi-major and semi-minor axes|{{Mvar|a}} axis]]
+
| data15      = {{#if:{{{mass|}}} | {{#if:{{{stars|}}} | {{#ifexpr: {{{stars|}}} < 2 | {{{mass|}}} | }} | {{{mass|}}} }} | }}
| data19      = {{{axis|}}}
+
| label16     = {{#if:{{{radius|}}} | {{#if:{{{stars|}}} | {{#ifexpr: {{{stars|}}} < 2 | [[Radius]] | }} | [[Radius]] }} | }}
| label20      = [[Orbital eccentricity|Eccentricity]]
+
| data16      = {{#if:{{{radius|}}} | {{#if:{{{stars|}}} | {{#ifexpr: {{{stars|}}} < 2 | {{{radius|}}} | }} | {{{radius|}}} }} | }}
| data20      = {{{eccentricity|}}}
+
| label17     = {{#if:{{{rotation|}}} | {{#if:{{{stars|}}} | {{#ifexpr: {{{stars|}}} < 2 | [[Stellar rotation|Rotation]] | }} | [[Stellar rotation|Rotation]] }} | }}
| label21      = [[Orbital inclination|Inclination]]
+
| data17      = {{#if:{{{rotation|}}} | {{#if:{{{stars|}}} | {{#ifexpr: {{{stars|}}} < 2 | {{{rotation|}}} | }} | {{{rotation|}}} }} | }}
| data21      = {{{inclination|}}}
+
| label18     = {{#if:{{{temperature|}}} | {{#if:{{{stars|}}} | {{#ifexpr: {{{stars|}}} < 2 | [[Effective temperature|Temperature]] | }} | [[Effective temperature|Temperature]] }} | }}
 
+
| data18      = {{#if:{{{temperature|}}} | {{#if:{{{stars|}}} | {{#ifexpr: {{{stars|}}} < 2 | {{{temperature|}}} | }} | {{{temperature|}}} }} | }}
| header22    = {{#if:{{{proper name b|}}}{{{magnitude b|}}}{{{spectral b|}}}{{{age b|}}}{{{mass b|}}}{{{radius b|}}}{{{rotation b|}}}{{{planets b|}}}{{{period b|}}}{{{axis b|}}}{{{eccentricity b|}}}{{{inclination b|}}} | {{{name|}}} B | }}
+
| label19     = {{#if:{{{stellar|}}} | {{#if:{{{stars|}}} | {{#ifexpr: {{{stars|}}} > 1 | [[Stellar classification|Stellar classes]] | }} | [[Stellar classification|Stellar class]] }} | }}
 
+
| data19      = {{#if:{{{stellar|}}} | {{#if:{{{stars|}}} | {{#ifexpr: {{{stars|}}} > 1 | {{{stellar|}}} | }} | {{{stellar|}}} }} | }}
| label23     = {{#if:{{{proper name|}}} | Proper name | [[List of proper names of stars|Proper name]] }}
+
| label20      = {{#if:{{{variable|}}} | {{#if:{{{stars|}}} | {{#ifexpr: {{{stars|}}} > 1 | [[Variable star|Variable classes]] | }} | [[Variable star|Variable class]] }} | }}
| data23      = {{{proper name b|}}}
+
| data20      = {{#if:{{{variable|}}} | {{#if:{{{stars|}}} | {{#ifexpr: {{{stars|}}} > 1 | {{{variable|}}} | }} | {{{variable|}}} }} | }}
| label24      = {{#if:{{{magnitude|}}} | Apparent {{Mvar|m}} | [[Apparent magnitude|Apparent {{Mvar|m}}]] }}
+
| label21      = [[Planetary system|Planets]]
| data24      = {{{magnitude b|}}}
+
| data21       = {{{planets|}}}
| label25      = {{#if:{{{spectral|}}} | Spectral type | [[Stellar classification|Spectral type]] }}
 
| data25      = {{{spectral b|}}}
 
| label26      = {{#if:{{{age|}}} | Age | [[Stellar evolution|Age]] }}
 
| data26      = {{{age b|}}}
 
| label27      = {{#if:{{{mass|}}} | Mass | [[Stellar mass|Mass]] }}
 
| data27      = {{{mass b|}}}
 
| label28     = {{#if:{{{radius|}}} | Radius | [[Radius]] }}
 
| data28      = {{{radius b|}}}
 
| label29      = {{#if:{{{rotation|}}} | Rotation | [[Stellar rotation|Rotation]] }}
 
| data29      = {{{rotation b|}}}
 
| label30      = {{#if:{{{planets|}}} | Planets | [[Planetary system|Planets]] }}
 
| data30      = {{{planets b|}}}
 
 
 
| data31      = {{#if:{{{period b|}}}{{{axis b|}}}{{{eccentricity b|}}}{{{inclination b|}}} | '''Orbit''' | }}
 
| label32      = {{#if:{{{period|}}} | Period | [[Orbital period|Period]] }}
 
| data32      = {{{period b|}}}
 
| label33     = {{#if:{{{axis|}}} | {{Mvar|a}} axis | [[Semi-major and semi-minor axes|{{Mvar|a}} axis]] }}
 
| data33      = {{{axis b|}}}
 
| label34      = {{#if:{{{eccentricity|}}} | Eccentricity | [[Orbital eccentricity|Eccentricity]] }}
 
| data34      = {{{eccentricity b|}}}
 
| label35      = {{#if:{{{inclination|}}} | Inclination | [[Orbital inclination|Inclination]] }}
 
| data35      = {{{inclination b|}}}
 
 
 
| header36    = {{#if:{{{proper name c|}}}{{{magnitude c|}}}{{{spectral c|}}}{{{age c|}}}{{{mass c|}}}{{{radius c|}}}{{{rotation c|}}}{{{planets c|}}}{{{period c|}}}{{{axis c|}}}{{{eccentricity c|}}}{{{inclination c|}}} | {{{name|}}} C | }}
 
 
 
| label37     = {{#if:{{{proper name|}}}{{{proper name a|}}}{{{proper name b|}}} | Proper name | [[List of proper names of stars|Proper name]] }}
 
| data37      = {{{proper name c|}}}
 
| label38      = {{#if:{{{magnitude|}}}{{{magnitude b|}}} | Apparent {{Mvar|m}} | [[Apparent magnitude|Apparent {{Mvar|m}}]] }}
 
| data38      = {{{magnitude c|}}}
 
| label39      = {{#if:{{{spectral|}}}{{{spectral b|}}} | Spectral type | [[Stellar classification|Spectral type]] }}
 
| data39      = {{{spectral c|}}}
 
| label40      = {{#if:{{{age|}}}{{{age b|}}} | Age | [[Stellar evolution|Age]] }}
 
| data40      = {{{age c|}}}
 
| label41     = {{#if:{{{mass|}}}{{{mass b|}}} | Mass | [[Stellar mass|Mass]] }}
 
| data41      = {{{mass c|}}}
 
| label42      = {{#if:{{{radius|}}}{{{radius b|}}} | Radius | [[Radius]] }}
 
| data42      = {{{radius c|}}}
 
| label43      = {{#if:{{{rotation|}}}{{{rotation b|}}} | Rotation | [[Stellar rotation|Rotation]] }}
 
| data43      = {{{rotation c|}}}
 
| label44      = {{#if:{{{planets|}}}{{{planets b|}}} | Planets | [[Planetary system|Planets]] }}
 
| data44      = {{{planets c|}}}
 
 
 
| data45      = {{#if:{{{period c|}}}{{{axis c|}}}{{{eccentricity c|}}}{{{inclination c|}}} | '''Orbit''' | }}
 
| label46      = {{#if:{{{period|}}}{{{period b|}}} | Period | [[Orbital period|Period]] }}
 
| data46      = {{{period c|}}}
 
| label47      = {{#if:{{{axis|}}}{{{axis b|}}} | {{Mvar|a}} axis | [[Semi-major and semi-minor axes|{{Mvar|a}} axis]] }}
 
| data47      = {{{axis c|}}}
 
| label48      = {{#if:{{{eccentricity|}}}{{{eccentricity b|}}} | Eccentricity | [[Orbital eccentricity|Eccentricity]] }}
 
| data48      = {{{eccentricity c|}}}
 
| label49      = {{#if:{{{inclination|}}}{{{inclination b|}}} | Inclination | [[Orbital inclination|Inclination]] }}
 
| data49       = {{{inclination c|}}}
 
 
}}<noinclude>{{Documentation}}</noinclude>
 
}}<noinclude>{{Documentation}}</noinclude>