Template:Wikidata icon/doc
Jump to navigation
Jump to search
| This is a documentation subpage for Template:Wikidata icon. It may contain usage information, categories and other content that is not part of the original template page. |
This template shows the Wikidata logo but links to a specific wikidata item.
Usage
[edit source]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 source]| Code | Description | Rendered result |
|---|---|---|
{{Wikidata icon|1=Q1}} |
Clicking the icon will take you to the Wikidata item for Q1 | |
{{Wikidata icon|1={{get QID|Universe}}}} |
{{get QID|Universe}} will return the Wikidata item for "Universe" (which is Q1) |
|
{{Wikidata icon|1={{get QID|Douglas Adams}}}} |
{{get QID|Universe}} will return the Wikidata item for "Douglas Adams" (which is Q42) |
|
{{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. |