Template:Wikidata entity link/doc
Appearance
This is a documentation subpage for Template:Wikidata entity link. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
Template:Wikidata entity link is used to get an automatically localized link to a Wikidata item or property.
Usage examples
[change source]- Standard usage
{{Wikidata entity link|1}}
→ Universe (Q1){{Wikidata entity link|Q1}}
→ Universe (Q1){{Wikidata entity link|P681}}
→ cell component (P681)
- Leading/trailing whitespace
{{Wikidata entity link | 1 }}
→ Universe (Q1){{Wikidata entity link | Q1 }}
→ Universe (Q1){{Wikidata entity link | P681 }}
→ cell component (P681)
- Template shortcut
{{Wde|1}}
→ Universe (Q1){{Wde|Q1}}
→ Universe (Q1){{Wde|P681}}
→ cell component (P681)
TemplateData
[change source]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 | |
---|---|---|---|---|
iterm 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
[change source]- Wikidata:Template:Q
- Wikidata:Template:Property
- Template:Label
- Template:Wikidata property
- Template:Wikidata property link