Jump to content

Template:Wikidata icon/doc

From Wikipedia, the free encyclopedia

This template shows the Wikidata logo but links to a specific wikidata item.

Usage

[edit]

This template allows for a subtle, visually non-disruptive, link to specific Wikidata item, without: re-displaying the title and without displaying the Wikidata number. It also allows for the words to be a redlink as per normal Wikipedia standards. This template is unlike Template:Wikidata entity link or Template:Interlanguage link, both of which are used instead of the title of the subject.

{{Wikidata icon|1=Qxxxx|icon_size=SIZEpx}}
Argument Description Comment Usage example
1=Qxxxx The Wikidata item number the image should link to (Number including the "Q") mandatory Q42
icon_size=SIZEpx The size of the image this template will display (Size of the image in pixel) optional
(default is 16px)
100px

Examples

[edit]
Code Description Rendered result
{{Wikidata icon|1=Q1}} Clicking the icon will take you to the Wikidata item for Q1 Q1 on Wikidata
{{Wikidata icon|1={{get QID|Universe}}}} {{get QID|Universe}} will return the Wikidata item for "Universe" (which is Q1) Q1 on Wikidata
{{Wikidata icon|1={{get QID|Douglas Adams}}}} {{get QID|Universe}} will return the Wikidata item for "Douglas Adams" (which is Q42) Q42 on Wikidata
{{Wikidata icon|1=Q42|icon_size=100px}} An icon with a link to the Wikidata item Q42 will be displayed and it will have a size of 100 pixel. Q42 on Wikidata