This is a documentation subpage for Template:Wikidata entity link. It contains 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
edit- Standard usage
{{Wikidata entity link}}
→ (no entity){{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)
See also
edit- Wikidata:Template:Q
- Wikidata:Template:Property
- {{Label}}
- {{Wikidata property link}}
- {{Wikidata link}}