Template:Wikidata entity link
From TechInfoDepot
(Redirected from Template:Q)
"Template:q" redirects here. For the equivalent of the HTML
<q> tag, see Template:Quote inline.| This template is used on many pages, and changes to it will be widely noticed. Please test any changes in the template's /sandbox or /testcases subpages, or in a user subpage, and consider discussing changes at the talk page before implementing them. |
| 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 package.lua at line 80: module 'Module:Wd/i18n' not found.|Lua error in package.lua at line 80: module 'Module:Wd/i18n' not found. (Lua error in package.lua at line 80: module 'Module:Wd/i18n' not found.)]]{{Wikidata entity link|1}}→ Lua error in package.lua at line 80: module 'Module:Wd/i18n' not found. (Q1){{Wikidata entity link|Q1}}→ Lua error in package.lua at line 80: module 'Module:Wd/i18n' not found. (Q1){{Wikidata entity link|P681}}→ Lua error in package.lua at line 80: module 'Module:Wd/i18n' not found. (P681)
- Leading/trailing white space
{{Wikidata entity link | 1 }}→ Lua error in package.lua at line 80: module 'Module:Wd/i18n' not found. (Q1){{Wikidata entity link | Q1 }}→ Lua error in package.lua at line 80: module 'Module:Wd/i18n' not found. (Q1){{Wikidata entity link | P681 }}→ Lua error in package.lua at line 80: module 'Module:Wd/i18n' not found. (P681)
- Lower case
{{Wikidata entity link | q1 }}→ Lua error in package.lua at line 80: module 'Module:Wd/i18n' not found. (Q1){{Wikidata entity link | p681 }}→ Lua error in package.lua at line 80: module 'Module:Wd/i18n' not found. (P681)
- Template shortcuts
{{q|1}}→ Lua error in package.lua at line 80: module 'Module:Wd/i18n' not found. (Q1){{wde|Q1}}→ Template:Wde{{wdq|P681}}→ Template:Wdq
TemplateData
This is the TemplateData for this template, which is used by TemplateWizard, the VisualEditor and still other tools.
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}}
| 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. |