• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.213
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Wikidata entity link

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
(Redirected from Template:Wikidata entity)
Template documentation[view] [edit] [history] [purge]
Shortcuts
  • {{Q}}
  • {{wde}}
  • {{WDE}}
  • {{wdq}}
  • {{WDQ}}
This template uses Lua:
  • Module:Wd

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}} → Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (Q1)
{{wdq|P681}} → Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P681)

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Wikidata entity link

No description.

Template parameters

ParameterDescriptionTypeStatus
item or property number1

The letter P is required when linking to properties. The letter Q is optional when linking to items.

Example
Q42, 42, P23
Linesuggested

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.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Wikidata_entity_link&oldid=39352"
Categories:
  • Pages with script errors
  • Lua-based templates
  • Templates using TemplateData
  • Wikidata templates
Last edited on 22 February 2022, at 12:47

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 22 February 2022, at 12:47.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop