Difference between revisions of "Template:Infobox artwork/wikidata"
Jump to navigation
Jump to search
imported>Mike Peel (trim nosave=1 from the coordinates) |
imported>Mike Peel (fix for oil on canvas check) |
||
| Line 52: | Line 52: | ||
| label5 = Medium | | label5 = Medium | ||
| class5 = category | | class5 = category | ||
| − | | data5 = {{If first display both|{{If two strings replace with third|{{If two strings replace with third|{{If two strings replace with third|{{#invoke:WikidataIB|getPreferredValue|P186|name=medium|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|noicon=true|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced}}}|{{if empty|{{{medium|}}}|{{{material|}}}}}}}|[[Oil paint{{!}} | + | | data5 = {{If first display both|{{If two strings replace with third|{{If two strings replace with third|{{If two strings replace with third|{{#invoke:WikidataIB|getPreferredValue|P186|name=medium|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|noicon=true|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced}}}|{{if empty|{{{medium|}}}|{{{material|}}}}}}}|[[Oil paint{{!}}Oil paint]]|[[Canvas{{!}}Canvas]]|[[Oil painting{{!}}Oil on canvas]]}}|[[Oil paint{{!}}Oil paint]]|Canvas|[[Oil painting{{!}}Oil on canvas]]}}|[[Oil paint{{!}}Oil paint]]|Panel|[[Panel painting{{!}}Oil on panel]]}}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P186}}}} }} |
| label6 = [[Art movement|Movement]] | | label6 = [[Art movement|Movement]] | ||
Revision as of 21:58, 7 September 2018
| 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. |