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

From blackwiki
Jump to navigation Jump to search
imported>Mike Peel
(document embedded parameter)
imported>Vanisaac
m (→‎Tracking categories: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(3 intermediate revisions by 3 users not shown)
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 8: Line 8:
 
<pre>{{infobox astronomical event}}</pre>
 
<pre>{{infobox astronomical event}}</pre>
 
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:
 
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:
 +
 +
<pre style="overflow:auto">
 +
{{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        =
 +
}}
 +
</pre>
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 64: Line 101:
 
| ''website''      || {{Wikidata entity link|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}}
 
|-
 
|-
| ''predecessor''  || {{Wikidata entity link|P155}} || Preceeded by
+
| ''predecessor''  || {{Wikidata entity link|P155}} || Preceded by
 
|-
 
|-
 
| ''successor''    || {{Wikidata entity link|P156}} || Succeeded by
 
| ''successor''    || {{Wikidata entity link|P156}} || Succeeded by
Line 73: Line 110:
 
|}
 
|}
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
+
== Tracking categories ==
 +
* {{clc|Articles using Infobox astronomical event using locally defined parameters}}
 +
* {{clc|Articles with infoboxes completely from Wikidata}}
 +
 
 +
<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]]
 
[[Category:Infobox templates using Wikidata]]
 
[[Category:Infobox templates using Wikidata]]
 +
[[Category:Templates that add a tracking category]]
 
}}</includeonly>
 
}}</includeonly>

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