Template:Wikidata entity link
This template uses Lua: |
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
- Wikidata:Template:Q
- Wikidata:Template:Property
- Template:Label
- Template:Wikidata property
- Template:Wikidata property link
The above documentation is transcluded from Template:Wikidata entity link/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |