Template:ImageWithWikidataQueryLink
[[File:{{{imageName}}}|thumb|left|{{{imageCaption}}}
[{{{wikidataQueryLink}}} View data on Wikidata]
]]
Example Usage
[edit]{{ImageWithWikidataQueryLink|imageName=Berlin population2.svg|imageCaption=Berlin's population, 1880–2012|wikidataQueryLink=https://w.wiki/88jn}}
Description
[edit]This template is the combination of an image from Commons with a caption that includes the Wikidata icon and a wikitext link to a Wikidata query or data output within it. The WikidataQueryLink template is used to add the Wikidata icon and link. The main purpose is to make it easier for readers to see that they can explore data related to what they're looking at on Wikidata. Example usages include linking to Wikidata under images of the population of a region over time, images depicting demographic breakdowns and any other data related images that Wikidata has the data for.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| imageName | imageName | The name of an image on Commons
| Page name | required |
| imageCaption | imageCaption | The caption to put beneath the image
| String | required |
| wikidataQueryLink | wikidataQueryLink | A link to a Wikidata Query Service query or data output (passed to WikidataQueryLink)
| URL | required |
| linkDisplayText | linkDisplayText | The text to display on wiki (passed to WikidataQueryLink)
| String | optional |