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
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}}
 
{{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}}
 
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Wikidata|Module:WikidataIB}}
Line 54: Line 55:
 
| ''commons''      || {{Wikidata entity link|P373}}  || Commons category
 
| ''commons''      || {{Wikidata entity link|P373}}  || Commons category
 
|}
 
|}
<includeonly><!--
+
 
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. -->
+
<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]]
+
}}</includeonly>
[[mk:Шаблон:Инфокутија Астрономски попис]]
 
[[ru:Шаблон:Астрономический каталог]]
 
[[tr:Şablon:Gökbilimsel araştırma]]
 
</includeonly>
 

Revision as of 23:23, 5 March 2017

  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
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
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