Template:Infobox astronomical event
| This template uses Lua: |
image (P18) (see uses)
instance of (P31) (see uses)
constellation (P59) (see uses)
site of astronomical discovery (P65) (see uses)
follows (P155) (see uses)
followed by (P156) (see uses)
spectral class (P215) (see uses)
Commons category (P373) (see uses)
catalog code (P528) (see uses)
time of discovery or invention (P575) (see uses)
redshift (P1090) (see uses)
official website (P856) (see uses)
Commons category (P373) (see uses)
duration (P2047) (see uses)
media legend (P2096) (see uses)
distance from Earth (P2583) (see uses)
Usage
[edit]Just add:
{{infobox astronomical event}}
to the top of an article, and data will be automatically included from Wikidata where they are available. These values can be overridden by passing values to the relevant parameters in the article. The full list of parameters is:
{{Infobox astronomical event
|name =
|image =
|image_scale = <!-- e.g. 1.5 -->
|caption =
|alt =
|names =
|event_type =
|class =
|start_time =
|duration =
|detected_by =
|constellation =
|ra =
|dec =
|epoch =
|gal =
|distance =
|redshift =
|source =
|remnant =
|host =
|progenitor =
|progenitor_type =
|b-v =
|notes =
|peak =
|energy =
|website =
|predecessor =
|successor =
|commons =
|embedded =
|onlysourced =
}}
| Parameter | Default | Description |
|---|---|---|
| name | Wikidata label (en) (Or Page name) | Name of the event |
| image | image (P18) | Illustration |
| caption | media legend (P2096) | Picture caption (if necessary). |
| name | catalog code (P528) | Other designations |
| event_type | instance of (P31) | Event type |
| class | spectral class (P215) | Spectral class |
| start_time | time of discovery or invention (P575) | Start time |
| duration | duration (P2047) | Duration |
| detected_by | site of astronomical discovery (P65) | Instrument name |
| constellation | constellation (P59) | Constellation |
| ra | — | RA |
| dec | — | Dec |
| epoch | — | Epoch |
| gal | — | Galactic coordinates |
| redshift | redshift (P1090) | Redshift |
| distance | distance from Earth (P2583) | Distance |
| source | — | Source |
| remnant | — | Remnant |
| host | — | Host |
| progenitor | — | Progenitor |
| progenitor_type | — | Progenitor type |
| b-v | — | B-V colour |
| notes | — | Notable features |
| peak | — | Peak apparent magnitude |
| energy | — | Total energy output |
| website | official website (P856) | The URL of the telescope's website. use {{URL}} |
| predecessor | follows (P155) | Preceded by |
| successor | followed by (P156) | Succeeded by |
| commons | Commons category (P373) | The appropriate page or category name at Wikimedia Commons |
| embedded | — | Provide an embedded infobox into this one |
| onlysourced | yes | Only use Wikidata with a source other than Wikipedia |
TemplateData
[edit]TemplateData for Infobox astronomical event
Infobox describing an astronomical event
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | Name of the astronomical event. Defaults to Wikidata label or page name.
| String | optional |
| Image | image | Image of the event. Defaults to Wikidata property `image` (P18) | File | optional |
| Image scale | image_scale | Image scale
| Number | optional |
| Alternate image | alt | Alternate image | File | optional |
| Caption | caption | Caption for the image. Defaults to Wikidata property `media legend` (P2096)
| String | optional |
| Fields to suppress | suppressfields | A list of fields that will not display from Wikidata. Used in invocation of [[Module:WikidataIB]]; see there for more information. | String | optional |
| Wikidata fields to fetch | fetchwikidata | A list of fields to fetch values from Wikidata. Used in invocation of [[Module:WikidataIB]]; see there for more information. | String | optional |
| Sourced fields only | onlysourced | Whether or not only sourced fields should be fetched from Wikidata. Used in invocation of [[Module:WikidataIB]]; see there for more information.
| Boolean | optional |
| Event type | event_type | Type of the event. Defaults to Wikidata property `instance of` (P31)
| String | optional |
| Spectral class | class type | Spectral class | String | optional |
| Type | type | Alias for class. | Unknown | optional |
| Start time | start_time discovery | Time of the event's discovery. Defaults to Wikidata property `time of discovery or invention` (P575).
| String | optional |
| Discovery | discovery | Alias for `start_time`. | Unknown | optional |
| Duration | duration | Duration of the event. Defaults to Wikidata property `duration` (P2047) | String | optional |
| Detected by | detected_by | The instrument that detected this event. Defaults to Wikidata property `site of astronomical discovery` (P65). | String | optional |
| Constellation | constellation | Constellation. Defaults to Wikidata property `constellation` (P59). | String | optional |
| Right ascension | ra | Right ascension.
| String | optional |
| Declination | dec | Declination.
| String | optional |
| Epoch | epoch | Epoch.
| String | optional |
| Galactic coordinates | gal | Galactic coordinates.
| String | optional |
| Distance | distance | Distance from Earth of this event. Defaults to Wikidata property `distance from Earth` (P2583).
| String | optional |
| Redshift | redshift | Redshift. Defaults to Wikidata property `redshift` (P1090). | String | optional |
| Source | source | Source of the event. | String | optional |
| Remnant | remnant SNRtype | Remnant.
| String | optional |
| SNR type | SNRtype | Alias for `remnant`. | Unknown | optional |
| Host | host | Host.
| String | optional |
| Progenitor | progenitor | Progenitor.
| String | optional |
| Progenitor type | progenitor_type | Type of the progenitor.
| String | optional |
| B-V colour | b-v | B-V colour.
| String | optional |
| Notes | notes | Notable features.
| String | optional |
| Peak | peak mag_v | Peak/apparent magnitude of the event.
| String | optional |
| Mag V | mag_v | Alias of `peak`. | String | optional |
| Energy | energy | Total energy output of the event. | String | optional |
| Names | names | Other names of the event. | String | optional |
| Website | website | URL of the telescope's website. Defaults to Wikidata property `official website` (P856). | URL | optional |
| Predecessor | predecessor | Preceded by. Defaults to Wikidata property `follows` (P155).
| String | optional |
| Successor | successor | Succeeded by. Defaults to Wikidata property `followed by` (P156).
| String | optional |
| Embedded | embedded | Used to provide an embedded infobox. | String | optional |
| Commons | commons | Wikimedia Commons page or category name. Defaults to Wikidata property `Commons category` (P373). | String | optional |
| QID | qid | QID of the linked Wikidata property. | Unknown | optional |