跳转到内容

模板:ImageWithWikidataQueryLink/doc

来自天灾之下:危险连接资料站
wiki>Andrew McAllister (WMDE)2025年7月10日 (四) 03:17的版本 (Change docs section name)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

Example Usage

{{ImageWithWikidataQueryLink|imageName=Berlin population2.svg|imageCaption=Berlin's population, 1880–2012|wikidataQueryLink=https://w.wiki/88jn}}

Description

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.

模板参数

参数描述类型状态
imageNameimageName

The name of an image on Commons

示例值
Berlin population2.svg
页面名称必需
imageCaptionimageCaption

The caption to put beneath the image

示例值
Berlin's population, 1880–2012
字符串必需
wikidataQueryLinkwikidataQueryLink

A link to a Wikidata Query Service query or data output (passed to WikidataQueryLink)

示例值
https://w.wiki/88jn
URL必需
linkDisplayTextlinkDisplayText

The text to display on wiki (passed to WikidataQueryLink)

默认值
View data on Wikidata
字符串可选