Difference between revisions of "Template:Infobox astronomical event/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
m (note Lua module used, add link to tracking category, add template category)
imported>Vanisaac
m (→‎Tracking categories: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
Line 114: Line 114:
 
* {{clc|Articles with infoboxes completely from Wikidata}}
 
* {{clc|Articles with infoboxes completely from Wikidata}}
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
+
<includeonly>{{Sandbox other||
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
[[Category:Astronomy infobox templates|Astronomical event]]
 
[[Category:Astronomy infobox templates|Astronomical event]]

Latest revision as of 18:04, 25 April 2020

Template:Uses Wikidata

Usage

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_size      = 
|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        = 
}}
Parameter Default Description
name Wikidata label (en)
(Or Page name)
Name of the event
image Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P18) Illustration
caption Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P2096) Picture caption (if necessary).
name Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P528) Other designations
event_type Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P31) Event type
class Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P215) Spectral class
start_time Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P575) Start time
duration Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P2047) Duration
detected_by Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P65) Instrument name
constellation Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P59) Constellation
ra RA
dec Dec
epoch Epoch
gal Galactic coordinates
redshift Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P1090) Redshift
distance Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P2583) Distance
source Source
remnant Remnant
host Host
projenitor Projenitor
projenitor_type Projenitor type
b-v B-V colour
notes Notable features
peak Peak apparent magnitude
energy Total energy output
website Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P856) The URL of the telescope's website. use {{URL}}
predecessor Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P155) Preceded by
successor Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P156) Succeeded by
commons Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P373) The appropriate page or category name at Wikimedia Commons
embedded Provide an embedded infobox into this one

Tracking categories