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

From blackwiki
Jump to navigation Jump to search
imported>Huntster
(Re-add param list. Easier to copy this than self-format based on the following list.)
imported>Zyxw
m (note Lua module used, add link to tracking category, add template category)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Wikidata|Module:WikidataIB}}
+
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Wikidata|Module:WikidataIB|Module:String2|Module:Check for unknown parameters}}
 
{{Uses Wikidata|P18|P31|P59|P65|P155|P156|P215|P373|P528|P575|P1090|P856|P373|P2047|P2096|P2583}}
 
{{Uses Wikidata|P18|P31|P59|P65|P155|P156|P215|P373|P528|P575|P1090|P856|P373|P2047|P2096|P2583}}
  
Line 109: Line 109:
 
| ''embedded''    || || Provide an embedded infobox into this one
 
| ''embedded''    || || Provide an embedded infobox into this one
 
|}
 
|}
 +
 +
== Tracking categories ==
 +
* {{clc|Articles using Infobox astronomical event using locally defined parameters}}
 +
* {{clc|Articles with infoboxes completely from Wikidata}}
  
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
Line 114: Line 118:
 
[[Category:Astronomy infobox templates|Astronomical event]]
 
[[Category:Astronomy infobox templates|Astronomical event]]
 
[[Category:Infobox templates using Wikidata]]
 
[[Category:Infobox templates using Wikidata]]
 +
[[Category:Templates that add a tracking category]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 03:17, 10 February 2019

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