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

From blackwiki
Jump to navigation Jump to search
imported>Mike Peel
(Adding example of override)
imported>Zyxw
m (note Lua module used, add link to tracking category, add template category)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{documentation subpage}}
+
{{Documentation subpage}}
{{Generic template demo | name | image | caption | alt_names | type | target | organization | namedafter | started | ended | published | observations | wavelength | frequency | band | products | website | commons}}
+
 
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Wikidata|Module:WikidataIB}}
+
{{Generic template demo | name | image | caption | alt_names | type | target | organization | namedafter | code | started | ended | published | observations | wavelength | frequency | band | products | website | commons}}
{{Uses Wikidata|P18|P31|P121|P137|P138|P373|P577|P580|P582|P856|P921|P1056|P1227|P2096|P2144|P2808}}
+
{{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}}
  
 
== Usage ==
 
== Usage ==
Line 25: Line 26:
 
|-
 
|-
 
| ''alt_names''    || Wikidata aliases (en) || Alternative names / aliases for the survey
 
| ''alt_names''    || Wikidata aliases (en) || Alternative names / aliases for the survey
 +
|-
 +
| ''coords''      || {{Wikidata entity link|P625}} || Coordinates for the survey location
 
|-
 
|-
 
| ''type''        || {{Wikidata entity link|P31}}  || Survey type
 
| ''type''        || {{Wikidata entity link|P31}}  || Survey type
Line 33: Line 36:
 
|-
 
|-
 
| ''namedafter''  || {{Wikidata entity link|P138}}  || Person or organisation the survey was named after
 
| ''namedafter''  || {{Wikidata entity link|P138}}  || Person or organisation the survey was named after
 +
|-
 +
| ''code''        || {{Wikidata entity link|P717}} || Observatory code
 
|-
 
|-
 
| ''started''      || {{Wikidata entity link|P580}}  || Year started
 
| ''started''      || {{Wikidata entity link|P580}}  || Year started
Line 53: Line 58:
 
|-
 
|-
 
| ''commons''      || {{Wikidata entity link|P373}}  || Commons category
 
| ''commons''      || {{Wikidata entity link|P373}}  || Commons category
 +
|-
 +
| ''embedded''    || || Embed another infobox into this one
 
|}
 
|}
<includeonly><!--
+
 
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. -->
+
== Tracking categories ==
 +
* {{clc|Articles using Infobox astronomical survey using locally defined parameters}}
 +
* {{clc|Articles with infoboxes completely from Wikidata}}
 +
 
 +
<includeonly>{{sandbox other||
 +
<!-- Categories below this line; interwikis at Wikidata -->
 
[[Category:Astronomy infobox templates|Astronomical survey]]
 
[[Category:Astronomy infobox templates|Astronomical survey]]
 
+
[[Category:Infobox templates using Wikidata]]
[[ms:Templat:Kotak info kaji selidik astronomi]]
+
[[Category:Templates that add a tracking category]]
[[mk:Шаблон:Инфокутија Астрономски попис]]
+
}}</includeonly>
[[ru:Шаблон:Астрономический каталог]]
 
[[tr:Şablon:Gökbilimsel araştırma]]
 
</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