Template:Infobox astronomical event
{{infobox
| headerstyle = background:#C0C0C0;
| title = {{{name|{{#if:{{#invoke:Wikidata|ViewSomething|labels|en|value}}|{{#invoke:Wikidata|ViewSomething|labels|en|value}}|{{PAGENAMEBASE}}}}}}}
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:Wikidata|getValue|P18|{{{image|FETCH_WIKIDATA}}} }}|upright={{{image_scale|1.3}}}|alt={{{alt|}}}|suppressplaceholder=yes}}
| caption = {{{caption|{{#invoke:Wikidata|getImageLegend|FETCH_WIKIDATA}}}}}
| label2 = Event type
| data2 = {{#invoke:String2|ucfirst|{{#invoke:WikidataIB|getValue|P31|name=event_type|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|yes}}}|{{{event_type|}}}}}}}
| label3 = Spectral class
| data4 = {{#invoke:WikidataIB|getValue|P215|name=spectral_class|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|yes}}}|{{{class|{{{type|}}} }}} }}
| label5 = Date
| data5 = {{#invoke:WikidataIB|getValue|P575|name=start_time|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|yes}}}|{{{start_time|{{{discovery|}}}}}}}}
| label6 = Duration
| data6 = {{#invoke:WikidataIB|getValue|P2047|name=duration|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|yes}}}|{{{duration|}}}}}
| label7 = Instrument
| data7 = {{#invoke:WikidataIB|getValue|P65|name=detected_by|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|yes}}}|{{{detected_by|}}}}}
| label10 = Constellation
| data10 = {{#invoke:WikidataIB|getValue|P59|name=constellation|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|yes}}}|{{{constellation|}}}}}
| label11 = Right ascension
| data11 = {{{ra|}}}
| label12 = Declination
| data12 = {{{dec|}}}
| label13 = Epoch
| data13 = {{{epoch|}}}
| label14 = Galactic coordinates
| data14 = {{{gal|}}}
| label15 = Distance
| data15 = {{{distance|{{#if:{{#property:P2583}}|{{#ifeq:{{#invoke:Wikidata|getUnits|P2583|FETCH_WIKIDATA}}|light-year|{{convert|input=P2583|pc|abbr=on}}|{{convert|input=P2583|ly|abbr=on}} }} }} }}}
| label16 = Redshift
| data16 = {{#invoke:WikidataIB|getValue|P1090|name=redshift|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|yes}}}|{{{redshift|}}}}}
| label17 = Source
| data17 = {{{source|}}}
| label18 = Remnant
| data18 = {{{remnant|{{{SNRtype|}}} }}}
| label19 = Host
| data19 = {{{host|}}}
| label21 = Progenitor
| data21 = {{{progenitor|}}}
| label22 = Progenitor type
| data22 = {{{progenitor_type|}}}
| label23 = Colour (B-V)
| data23 = {{{b-v|}}}
| label24 = Notable features
| data24 = {{{notes|}}}
| label26 = Peak apparent magnitude
| data26 = {{{peak|{{{mag_v|}}}}}}
| label27 = Total energy output
| data27 = {{{energy|}}}
| label28 = Other designations
| data28 = {{#invoke:Wikidata|getRawValue|P528|{{{names|FETCH_WIKIDATA}}}}}
| label29 = Website
| data29 = {{{website|{{#if:{{#property:P856}}|{{Url|1={{#invoke:Wikidata|getValue|P856|FETCH_WIKIDATA}} }} }} }}}
| label30 = Preceded by
| data30 = {{#invoke:WikidataIB|getValue|P155|name=precededby|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|yes}}}|{{{predecessor|}}}}}
| label31 = Followed by
| data31 = {{#invoke:WikidataIB|getValue|P156|name=followedby|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|yes}}}|{{{successor|}}}}}
| data35 = {{{embedded|}}}
| data40 = {{#if:{{{commons|}}}{{#invoke:Commons link|hasGalleryOrCategory|qid={{{qid|}}}}}| {{Commons-inline|short=yes|{{{commons|}}}|qid={{{qid|}}}|notrack=1|Related media on Commons}}}}
| below = {{EditOnWikidata}}
}}{{#invoke:Check for unknown parameters|check|ignoreblank=y| unknown = {{main other|}}| preview =Page using Template:Infobox astronomical event with unknown parameter "_VALUE_" | name | image | image_scale | caption | alt | names | event_type | class | type | start_time | discovery | duration | detected_by | constellation | ra | dec | epoch | gal |distance | redshift | source | remnant | SNRtype | host | progenitor | progenitor_type | b-v | notes | peak | mag_v | energy | website | predecessor | successor | commons | embedded | onlysourced}}
{{documentation}}