Difference between revisions of "Template:Infobox astronomical event"
Jump to navigation
Jump to search
imported>Mike Peel (Default has changed at Module:WikidataIB from onlysourced=no to onlysourced=yes; returning to the previous behaviour here.) |
imported>Mike Peel (Remove headers) |
||
| Line 11: | Line 11: | ||
| data4 = {{#invoke:WikidataIB|getValue|P215|name=spectral_class|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{class|{{{type|}}} }}} }} | | data4 = {{#invoke:WikidataIB|getValue|P215|name=spectral_class|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{class|{{{type|}}} }}} }} | ||
| − | |||
| label6 = Date | | label6 = Date | ||
| data6 = {{#invoke:WikidataIB|getValue|P575|name=start_time|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{start_time|{{{discovery|}}}}}}}} | | data6 = {{#invoke:WikidataIB|getValue|P575|name=start_time|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{start_time|{{{discovery|}}}}}}}} | ||
| Line 19: | Line 18: | ||
| data8 = {{#invoke:WikidataIB|getValue|P65|name=detected_by|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{detected_by|}}}}} | | data8 = {{#invoke:WikidataIB|getValue|P65|name=detected_by|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{detected_by|}}}}} | ||
| − | |||
| label10 = [[Constellation]] | | label10 = [[Constellation]] | ||
| data10 = {{#invoke:WikidataIB|getValue|P59|name=constellation|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{constellation|}}}}} | | data10 = {{#invoke:WikidataIB|getValue|P59|name=constellation|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{constellation|}}}}} | ||
| Line 41: | Line 39: | ||
| data19 = {{{host|}}} | | data19 = {{{host|}}} | ||
| − | |||
| label21 = Progenitor | | label21 = Progenitor | ||
| data21 = {{{progenitor|}}} | | data21 = {{{progenitor|}}} | ||
| Line 51: | Line 48: | ||
| data24 = {{{notes|}}} | | data24 = {{{notes|}}} | ||
| − | |||
| label26 = Peak [[apparent magnitude]] | | label26 = Peak [[apparent magnitude]] | ||
| data26 = {{{peak|{{{mag_v|}}}}}} | | data26 = {{{peak|{{{mag_v|}}}}}} | ||
| Line 57: | Line 53: | ||
| data27 = {{{energy|}}} | | data27 = {{{energy|}}} | ||
| − | |||
| label29 = Website | | label29 = Website | ||
| data29 = {{{website|{{#if:{{#property:P856}}|{{Url|1={{#invoke:Wikidata|getValue|P856|FETCH_WIKIDATA}} }} }} }}} | | data29 = {{{website|{{#if:{{#property:P856}}|{{Url|1={{#invoke:Wikidata|getValue|P856|FETCH_WIKIDATA}} }} }} }}} | ||
Revision as of 00:42, 31 August 2017
| Script error: No such module "Wikidata". Script error: No such module "Wikidata". | |
| Other designations | Script error: No such module "Wikidata". |
|---|---|
| Website | Template:Url |
[[Category:Infobox templates|Template:Remove first word]]
| This template uses Lua: |
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 =
}}
Tracking categories
- Category:Articles using Infobox astronomical event using locally defined parameters (0)
- Category:Articles with infoboxes completely from Wikidata (0)
| The above documentation is transcluded from Template:Infobox astronomical event/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |