Difference between revisions of "Template:Infobox telescope/sandbox"
Jump to navigation
Jump to search
imported>Frietjes m |
imported>Mike Peel (sync from main version) |
||
| Line 17: | Line 17: | ||
| data3 = {{If first display both|{{#invoke:WikidataIB|getPreferredValue|P138|name=namedafter|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{namedafter|}}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P138}} }} }} | | data3 = {{If first display both|{{#invoke:WikidataIB|getPreferredValue|P138|name=namedafter|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{namedafter|}}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P138}} }} }} | ||
| − | | label4 = | + | | label4 = Part of |
| data4 = {{#if:{{{child|}}}||{{If first display both|{{#invoke:WikidataIB|getPreferredValue|P361|name=observatory|qid={{{qid|}}}|sep="<br />"|sorted=yes|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{observatory|{{{observatory|}}}}}}}}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P361}} }} }}}} | | data4 = {{#if:{{{child|}}}||{{If first display both|{{#invoke:WikidataIB|getPreferredValue|P361|name=observatory|qid={{{qid|}}}|sep="<br />"|sorted=yes|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{observatory|{{{observatory|}}}}}}}}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P361}} }} }}}} | ||
| Line 31: | Line 31: | ||
| label8 = [[List of observatory codes|Observatory code]] | | label8 = [[List of observatory codes|Observatory code]] | ||
| − | | data8 = {{#invoke:WikidataIB |getPreferredValue|P717|name=code|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}| | + | | data8 = {{#invoke:WikidataIB |getPreferredValue|P717|name=code|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|lp="[List of observatory codes#" |linkpostfix={{!}} |postfix="]"|{{{code|}}}}} |
| label9 = Altitude | | label9 = Altitude | ||
Revision as of 18:22, 26 February 2020
| Alternative names | Script error: No such module "Wikidata".Script error: No such module "EditAtWikidata". |
|---|---|
| Location(s) | Template:Wikidata location |
| Coordinates | Lua error in Module:Coordinates at line 611: attempt to index field 'wikibase' (a nil value).Script error: No such module "EditAtWikidata". |
| Wavelength | - |
| Diameter | Script error: No such module "EditAtWikidata". |
| Website | Template:UrlScript error: No such module "EditAtWikidata". |
| Template:Wikidata location map | |
| This is the template sandbox page for Template:Infobox telescope (diff). |
| This template uses Lua: |
- redirect Template:Parameter names example
Usage
Just add:
{{infobox telescope}}
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 telescope
| name =
}}
The full list of parameters is:
Template data
Microformat
Tracking categories
- Category:Pages using infobox telescope with unknown parameters (0)
- Category:Articles with infoboxes completely from Wikidata (0)
- Category:Articles using Infobox telescope using locally defined parameters (0)
See also
| The above documentation is transcluded from Template:Infobox telescope/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |