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

From blackwiki
Jump to navigation Jump to search
imported>Mike Peel
(P528)
Line 58: Line 58:
 
| ''name''        || Page name || Name of the event
 
| ''name''        || Page name || Name of the event
 
|-
 
|-
| ''image''        || {{wdp|P18}} || Illustration
+
| ''image''        || {{Wikidata entity link|P18}} || Illustration
 
|-
 
|-
 
| ''caption''      || — || Picture caption (if necessary).
 
| ''caption''      || — || Picture caption (if necessary).
 
|-
 
|-
| ''Event type''  || {{wdp|P31}} || Event type
+
| ''Event type''  || {{Wikidata entity link|P31}} || Event type
 
|-
 
|-
| ''Names''        || {{wdp|P528}} || Other designations
+
| ''Names''        || {{Wikidata entity link|P528}} || Other designations
 
|-
 
|-
| ''Start time''  || {{wdp|P575}} || Start time
+
| ''Start time''  || {{Wikidata entity link|P575}} || Start time
 
|-
 
|-
| ''Detected by''  || {{wdp|P65}} || Instrument name
+
| ''Detected by''  || {{Wikidata entity link|P65}} || Instrument name
 
|-
 
|-
| ''Duration''    || {{wdp|P2047}} || Duration
+
| ''Duration''    || {{Wikidata entity link|P2047}} || Duration
 
|-
 
|-
| ''Constellation''|| {{wdp|P59}} || Constellation
+
| ''Constellation''|| {{Wikidata entity link|P59}} || Constellation
 
|-
 
|-
 
| ''RA''          || — || RA
 
| ''RA''          || — || RA
Line 80: Line 80:
 
| ''Epoch''        || — || Epoch
 
| ''Epoch''        || — || Epoch
 
|-
 
|-
| ''Redshift''    || {{wdp|P1090}} || Redshift
+
| ''Redshift''    || {{Wikidata entity link|P1090}} || Redshift
 
|-
 
|-
 
| ''Distance''    || — || Distance
 
| ''Distance''    || — || Distance
Line 88: Line 88:
 
| ''Energy''      || — || Total energy output
 
| ''Energy''      || — || Total energy output
 
|-
 
|-
| ''website''      || {{wdp|P856}} || The URL of the telescope's website. use {{tl|URL}}
+
| ''website''      || {{Wikidata entity link|P856}} || The URL of the telescope's website. use {{tl|URL}}
 
|-
 
|-
| ''commons''      || {{wdp|P373}} || The appropriate page or category name at Wikimedia Commons
+
| ''commons''      || {{Wikidata entity link|P373}} || The appropriate page or category name at Wikimedia Commons
 
|}
 
|}
  

Revision as of 21:32, 3 November 2016

Template:Uses Wikidata

Usage

Simple

{{infobox astronomical event}}

Data will be automatically included from Wikidata.

Full

{{{name}}}
Script error: No such module "Wikidata".
{{{caption}}}
Other designationsScript error: No such module "Wikidata".
Event type{{{Event_type}}}
Date{{{start_time}}}
Duration{{{duration}}}
Instrument{{{detected_by}}}
Constellation{{{constellation}}}
Right ascension{{{ra}}}
Declination{{{dec}}}
Epoch{{{epoch}}}
Distance{{{distance}}}
Redshift{{{redshift}}}
Peak apparent magnitude{{{peak}}}
Total energy output{{{energy}}}
Website{{{website}}}
16x16px [[Commons:{{{commons}}} |Related media on Wikimedia Commons]]
{{Infobox astronomical event
| name               = {{{name}}}
| image              = {{{image}}}
| caption            = {{{caption}}}
| event_type         = {{{event_type}}}
| start_time         = {{{start_time}}}
| detected_by        = {{{detected_by}}}
| duration           = {{{duration}}}
| redshift           = {{{redshift}}}
| constellation      = {{{constellation}}}
| ra                 = {{{ra}}}
| dec                = {{{dec}}}
| epoch              = {{{epoch}}}
| distance           = {{{distance}}}
| peak               = {{{peak}}}
| energy             = {{{energy}}}
| website            = {{{website}}}
| commons            = <!-- (Page or category name at Commons) -->
}}

Parameters

This template returns values from Wikidata where they are available; these values can be overridden by passing values to the relevant parameters.

Parameter Default Description
name 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 Picture caption (if necessary).
Event type Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P31) Event type
Names Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P528) Other designations
Start time Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P575) Start time
Detected by Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P65) Instrument name
Duration Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P2047) Duration
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
Redshift Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P1090) Redshift
Distance Distance
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}}
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