Difference between revisions of "Template:Infobox artwork/wikidata"
Jump to navigation
Jump to search
imported>Mike Peel (switching to requiring referenced info) |
imported>Nikkimaria (try to fix image) |
||
| Line 15: | Line 15: | ||
}} | }} | ||
| − | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB |getPreferredValue |P18 |name=image |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |onlysourced |noicon=yes|{{{image|}}}}}|size={{{image_size|}}}|sizedefault=frameless|upright={{#if:{{{image_upright|}}}|{{{image_upright}}}|1.36}}|alt={{{alt|}}}}} | + | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB |getPreferredValue |P18 |name=image |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |onlysourced=no |noicon=yes|{{{image|}}}}}|size={{{image_size|}}}|sizedefault=frameless|upright={{#if:{{{image_upright|}}}|{{{image_upright}}}|1.36}}|alt={{{alt|}}}}} |
| caption = {{{caption|{{#if:{{#invoke:WikidataIB|checkBlacklist|name=caption|suppressfields={{{suppressfields|}}}}}|{{#invoke:Wikidata|getImageLegend|FETCH_WIKIDATA}}}}}}} | | caption = {{{caption|{{#if:{{#invoke:WikidataIB|checkBlacklist|name=caption|suppressfields={{{suppressfields|}}}}}|{{#invoke:Wikidata|getImageLegend|FETCH_WIKIDATA}}}}}}} | ||
Revision as of 23:42, 7 December 2017
| Script error: No such module "Wikidata". | |
|---|---|
| Script error: No such module "Wikidata". | |
| Year | Template:Wikidata |
| Medium | Script error: No such module "If empty". |
| Dimensions | × × × |
| Location | Template:Wikidata location |
| Coordinates | Lua error in Module:Coordinates at line 611: attempt to index field 'wikibase' (a nil value). |
| Identifiers | Template:Wikidata ID |
| Website | Template:Url |
| This template uses Lua: |
Usage
Template:Parameter names example Just add:
{{Infobox artwork/wikidata}}
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 artwork/wikidata
| name =
}}
If you want to not show some properties, you can do so by giving the parameter name to the suppressfields parameter like this:
{{Infobox artwork/wikidata
| suppressfields = subject; movement
}}
Many parameters need references in Wikidata before they will be displayed here.
Parameters
| The above documentation is transcluded from Template:Infobox artwork/wikidata/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. |