Template:Wikidata entity link

Documentation icon Template documentation[view] [edit] [history] [purge]

Template:Wikidata entity link is used to get an automatically localized link to a Wikidata item or property.

Usage examples

Standard usage
{{Wikidata entity link|1}}Script error: The function "label" does not exist. (Q1)
{{Wikidata entity link|Q1}}Script error: The function "label" does not exist. (Q1)
{{Wikidata entity link|P681}}Script error: The function "label" does not exist. (P681)
Leading/trailing whitespace
{{Wikidata entity link | 1 }}Script error: The function "label" does not exist. (Q1)
{{Wikidata entity link | Q1 }}Script error: The function "label" does not exist. (Q1)
{{Wikidata entity link | P681 }}Script error: The function "label" does not exist. (P681)
Template shortcut
{{Wde|1}}Script error: The function "label" does not exist. (Q1)
{{Wde|Q1}}Script error: The function "label" does not exist. (Q1)
{{Wde|P681}}Script error: The function "label" does not exist. (P681)

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Wikidata entity link

<templatedata> { "params": { "1": { "label": "iterm or property number", "description": "The letter P is required when linking to properties. The letter Q is optional when linking to items.", "example": "Q42, 42, P23", "type": "line", "suggested": true } } } </templatedata>

See also