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

From blackwiki
Jump to navigation Jump to search
imported>Mike Peel
(+ coordinates)
imported>Zyxw
m (note Lua module used, add link to tracking category, add template category)
 
Line 1: Line 1:
{{documentation subpage}}
+
{{Documentation subpage}}
  
 
{{Generic template demo | name | image | caption | alt_names | type | target | organization | namedafter | code | started | ended | published | observations | wavelength | frequency | band | products | website | commons}}
 
{{Generic template demo | name | image | caption | alt_names | type | target | organization | namedafter | code | started | ended | published | observations | wavelength | frequency | band | products | website | commons}}
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Wikidata|Module:WikidataIB}}
+
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Wikidata|Module:WikidataIB|Module:Check for unknown parameters}}
 
{{Uses Wikidata|P18|P31|P121|P137|P138|P373|P577|P580|P582|P625|P717|P856|P921|P1056|P1227|P2096|P2144|P2808}}
 
{{Uses Wikidata|P18|P31|P121|P137|P138|P373|P577|P580|P582|P625|P717|P856|P921|P1056|P1227|P2096|P2144|P2808}}
  
Line 61: Line 61:
 
| ''embedded''    || || Embed another infobox into this one
 
| ''embedded''    || || Embed another infobox into this one
 
|}
 
|}
 +
 +
== Tracking categories ==
 +
* {{clc|Articles using Infobox astronomical survey using locally defined parameters}}
 +
* {{clc|Articles with infoboxes completely from Wikidata}}
  
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||
Line 66: Line 70:
 
[[Category:Astronomy infobox templates|Astronomical survey]]
 
[[Category:Astronomy infobox templates|Astronomical survey]]
 
[[Category:Infobox templates using Wikidata]]
 
[[Category:Infobox templates using Wikidata]]
 +
[[Category:Templates that add a tracking category]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 12:34, 10 February 2019

  1. redirect Template:Parameter names example

Template:Uses Wikidata

Usage

Just add:

{{infobox astronomical survey}}

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 (if need be), e.g.:

{{infobox astronomical survey
| name = 
}}

The full list of parameters is:

Parameter Default Description
name Wikidata label (en)
(Or Page name)
The name of the survey
image Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P18) Image
caption Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P2096) Image caption
alt_names Wikidata aliases (en) Alternative names / aliases for the survey
coords Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P625) Coordinates for the survey location
type Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P31) Survey type
target Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P921) Target of the survey
organization Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P137) Organisation
namedafter Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P138) Person or organisation the survey was named after
code Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P717) Observatory code
started Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P580) Year started
ended Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P582) Year ended
published Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P577) Year published
observations Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P121) Telescopes/observatories/catalogues used for the survey
wavelength Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P2808) Wavelength of the survey
frequency Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P2144) Frequency of the survey
band Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P1227) Astronomical filter/band used for the survey
products Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P1056) Products of the survey
website Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P856) Website
commons Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P373) Commons category
embedded Embed another infobox into this one

Tracking categories