Difference between revisions of "Template:Infobox telescope/sandbox"
Jump to navigation
Jump to search
imported>Mike Peel (sync from main version) |
imported>Mike Peel (testing new location code) |
||
| Line 22: | Line 22: | ||
| label5 = Location(s) | | label5 = Location(s) | ||
| class5 = label | | class5 = label | ||
| − | | data5 = {{Wikidata location|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|location={{{location|}}}|qid={{{qid|}}}}} | + | | data5 = {{#invoke:Wikidata Infobox|ifThenShow | <!-- |
| + | -->{{#ifeq:{{#invoke:WikidataIB | getValue | rank=best | P131 | name=adminunit | qid={{#invoke:WikidataIB |getQid |qid={{{qid|}}} }} | spf={{{spf|}}} | fwd={{{fwd|ALL}}} | osd={{{osd|no}}} | maxvals=1}}|{{#invoke:WikidataIB | getValue | rank=best | P131 | name=adminunit | qid={{#invoke:WikidataIB |getQid |qid={{{qid|}}} }} | spf={{{spf|}}} | fwd={{{fwd|ALL}}} | osd={{{osd|no}}}}}|<!-- | ||
| + | -->{{#ifeq:{{#invoke:WikidataIB | getValue | rank=best | P276 | name=adminunit | qid={{#invoke:WikidataIB |getQid |qid={{{qid|}}} }} | spf={{{spf|}}} | fwd={{{fwd|ALL}}} | osd={{{osd|no}}} | maxvals=1}}|{{#invoke:WikidataIB | getValue | rank=best | P276 | name=adminunit | qid={{#invoke:WikidataIB |getQid |qid={{{qid|}}} }} | spf={{{spf|}}} | fwd={{{fwd|ALL}}} | osd={{{osd|no}}}}}|<!-- | ||
| + | -->{{#invoke:Wikidata Infobox|ifThenShow|{{#invoke:WikidataIB | location | {{#invoke:WikidataIB |getQid |qid={{{qid|}}} }}}}|{{Wikidata location | qid={{#invoke:WikidataIB |getQid |qid={{{qid|}}} }}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|location={{{location|}}} }}}} |<!-- | ||
| + | -->{{Wikidata location | qid={{#invoke:WikidataIB |getQid |qid={{{qid|}}} }}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|location={{{location|}}} }} }} | <!-- | ||
| + | -->{{Wikidata location | qid={{#invoke:WikidataIB |getQid |qid={{{qid|}}} }}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|location={{{location|}}} }} }}<!-- | ||
| + | --> }} | ||
| label6 = Coordinates | | label6 = Coordinates | ||
Revision as of 18:23, 26 February 2020
| Alternative names | Script error: No such module "Wikidata".Script error: No such module "EditAtWikidata". |
|---|---|
| Location(s) | Lua error in Module:WikidataIB at line 1528: attempt to index field 'wikibase' (a nil value). |
| 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 | |
16x16px [[Commons:Category:Script error: No such module "Wikidata". |Related media on Wikimedia Commons]] | |
| 50px | This is the template sandbox page for Template:Infobox telescope (diff). |
| 30px | 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. |