Koha Test Wiki MW Canasta on Koha Portainer
Test major Koha Wiki changes or bug fixes here without fear of breaking the production wiki.
For the current Koha Wiki, visit https://wiki.koha-community.org .Template:Wikidata entity link/doc
Jump to navigation
Jump to search
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
- Standard usage
{{Wikidata entity link}}
→ [[d:Special:EntityPage/Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value).|Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value).)]]{{Wikidata entity link|1}}
→ Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (Q1){{Wikidata entity link|Q1}}
→ Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (Q1){{Wikidata entity link|P681}}
→ Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P681)
- Leading/trailing white space
{{Wikidata entity link | 1 }}
→ Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (Q1){{Wikidata entity link | Q1 }}
→ Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (Q1){{Wikidata entity link | P681 }}
→ Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P681)
- Lower case
{{Wikidata entity link | q1 }}
→ Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (q1){{Wikidata entity link | p681 }}
→ Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (p681)
- Template shortcuts
{{q|1}}
→ Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (Q1){{wde|Q1}}
→ Template:Wde{{wdq|P681}}
→ Template:Wdq
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
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
- Wikidata:Template:Q
- Wikidata:Template:Property
- Template:Label
- Template:Wikidata property
- Template:Wikidata property link
- {{QID}}