Difference between revisions of "Template:Infobox supernova"

From blackwiki
Jump to navigation Jump to search
imported>John of Reading
(Allow the "notes" parameter to be blank - the text "{{{notes}}}" is currently visible in the SN 2014J article)
imported>Huntster
(Clean up coding, specifically to deprecate "iauc", since not everyone will have access to its subscription service, and because it really should be formatted as a simple reference as for other parameters. Documentation page coming shortly.)
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
| above    = {{{name}}}
+
| above    = {{{name|}}}
| image    = {{{image<includeonly>|</includeonly>}}}
+
| image    = {{{image|}}}
| caption  = {{{caption<includeonly>|</includeonly>}}}
+
| caption  = {{{caption|}}}
 
| abovestyle  = background: #ABCDEF;
 
| abovestyle  = background: #ABCDEF;
 
| headerstyle = background: #ABCDEF;
 
| headerstyle = background: #ABCDEF;
 
| belowstyle  = background: #ABCDEF;
 
| belowstyle  = background: #ABCDEF;
 
| labelstyle  = background: inherit;
 
| labelstyle  = background: inherit;
| header1  = Observation data <small>([[Epoch (astronomy)|Epoch]] {{{epoch}}})</small>
+
| header1  = {{#if:{{{type|}}}{{{SNRtype|}}}{{{host|}}}{{{constellation|}}}{{{ra|}}}{{{dec|}}}{{{gal|}}}{{{discovery|}}}{{{mag_v|}}}{{{distance|}}} | Observation data{{#if:{{{epoch|}}} | &nbsp;<small>([[Epoch (astronomy)|Epoch]] {{{epoch}}})</small>}} }}
 
| label2  = [[Supernova#Classification|Supernova type]]
 
| label2  = [[Supernova#Classification|Supernova type]]
| data2    = {{{type}}}
+
| data2    = {{{type|}}}
 
| label3  = [[Supernova remnant|Remnant type]]
 
| label3  = [[Supernova remnant|Remnant type]]
| data3    = {{{SNRtype}}}
+
| data3    = {{{SNRtype|}}}
 
| label4  = [[Galaxy|Host galaxy]]
 
| label4  = [[Galaxy|Host galaxy]]
| data4    = {{{host}}}
+
| data4    = {{{host|}}}
 
| label5  = [[Constellation]]
 
| label5  = [[Constellation]]
| data5    = {{{constellation}}}
+
| data5    = {{{constellation|}}}
 
| label6  = [[Right ascension]]
 
| label6  = [[Right ascension]]
| data6    = {{{ra}}}
+
| data6    = {{{ra|}}}
 
| label7  = [[Declination]]
 
| label7  = [[Declination]]
| data7    = {{{dec}}}
+
| data7    = {{{dec|}}}
 
| label8  = [[Galactic coordinate system|Galactic coordinates]]
 
| label8  = [[Galactic coordinate system|Galactic coordinates]]
| data8    = {{{gal}}}
+
| data8    = {{{gal|}}}
 
| label9  = Discovery date
 
| label9  = Discovery date
| data9    = {{{discovery}}} <sup>{{{iauc}}}</sup>
+
| data9    = {{{discovery|}}}{{#if:{{{iauc|}}} | &nbsp;<sup>{{{iauc}}}<!--deprecated--></sup>}}
 
| label10  = [[Apparent magnitude|Peak magnitude]] <small>(V)</small>
 
| label10  = [[Apparent magnitude|Peak magnitude]] <small>(V)</small>
| data10  = {{{mag_v}}}
+
| data10  = {{{mag_v|}}}
 
| label11  = [[Distance (astronomy)|Distance]]
 
| label11  = [[Distance (astronomy)|Distance]]
| data11  = {{{distance}}}
+
| data11  = {{{distance|}}}
| header12 = Physical characteristics
+
| header12 = {{#if:{{{progenitor|}}}{{{progenitor_type|}}}{{{b-v|}}}{{{notes|}}} | Physical characteristics}}
 
| label13  = Progenitor
 
| label13  = Progenitor
| data13  = {{{progenitor<includeonly>|?</includeonly>}}}
+
| data13  = {{{progenitor|}}}
 
| label14  = Progenitor type
 
| label14  = Progenitor type
| data14  = {{{progenitor_type<includeonly>|?</includeonly>}}}
+
| data14  = {{{progenitor_type|}}}
 
| label15  = [[B-V colour|Colour]] <small>(B-V)</small>
 
| label15  = [[B-V colour|Colour]] <small>(B-V)</small>
| data15  = {{{b-v<includeonly>|?</includeonly>}}}
+
| data15  = {{{b-v|}}}
 
| label16  = Notable features
 
| label16  = Notable features
| data16  = {{{notes<includeonly>|</includeonly>}}}
+
| data16  = {{{notes|}}}
}}<includeonly>{{ #if: {{{example|}}} | | [[Category:Supernovae]] }}</includeonly><noinclude>
+
}}<includeonly>{{#if:{{{example|}}} | | [[Category:Supernovae]]}}</includeonly><noinclude>{{documentation}}
 
[[Category:Astronomy infobox templates]]
 
[[Category:Astronomy infobox templates]]
 
</noinclude>
 
</noinclude>

Revision as of 20:16, 26 January 2014

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

Template documentation[create]