Template:Wikidata entity link
Appearance
(Redirected from Template:Wikidata entity)
This template is used on approximately 46,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
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}}
→ Template:Wikidata entity link (Q17280715){{Wikidata entity link|1}}
→ Universe (Q1){{Wikidata entity link|Q1}}
→ Universe (Q1){{Wikidata entity link|P681}}
→ cell component (P681)
- Leading/trailing white space
{{Wikidata entity link | 1 }}
→ Universe (Q1){{Wikidata entity link | Q1 }}
→ Universe (Q1){{Wikidata entity link | P681 }}
→ cell component (P681)
- Lower case
{{Wikidata entity link | q1 }}
→ Universe (Q1){{Wikidata entity link | p681 }}
→ cell component (P681)
- Template shortcuts
{{q|1}}
→ Universe (Q1){{wde|Q1}}
→ Universe (Q1){{wdq|P681}}
→ cell component (P681)
TemplateData
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Wikidata entity link in articles based on its TemplateData.
TemplateData for Wikidata entity link
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
item or property number | 1 | The letter P is required when linking to properties. The letter Q is optional when linking to items.
| Line | suggested |
See also
- d:Template:Q
- d:Template:Property
- {{Get QID|<Wikipedia page title>}}
- {{Label}}
- {{LinkedLabel}}
- {{Wikidata fallback link}}
- {{Wikidata property}}
- {{Wikidata property link}}
- {{Authority control}}
- {{QID}}