Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 00:42, 20 February 2025 by Prd (talk | contribs) (Created page with "{{Documentation subpage}} <!-- Template categories go at the bottom of this page. --> {{Template shortcut|Q|wde|WDE|wdq|WDQ}} {{Lua|Module:Wd}} '''{{NAMESPACE}}:{{BASEPAGENAME}}''' is used to get an automatically localized link to a Wikidata item or property. == Usage examples == ; Standard usage : <code><nowiki>{{</nowiki>{{BASEPAGENAME}}}}</code> → {{{{BASEPAGENAME}} }} : <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|1}}</code> → {{{{BASEPAGENAME}}|1}} : <code><nowik...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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/Script error: No such module "wd".|Script error: No such module "wd". (Script error: No such module "wd".)]]
{{Wikidata entity link|1}}Script error: No such module "wd". (Q1)
{{Wikidata entity link|Q1}}Script error: No such module "wd". (Q1)
{{Wikidata entity link|P681}}Script error: No such module "wd". (P681)
Leading/trailing white space
{{Wikidata entity link | 1 }}Script error: No such module "wd". (Q1)
{{Wikidata entity link | Q1 }}Script error: No such module "wd". (Q1)
{{Wikidata entity link | P681 }}Script error: No such module "wd". (P681)
Lower case
{{Wikidata entity link | q1 }}Script error: No such module "wd". (Q1)
{{Wikidata entity link | p681 }}Script error: No such module "wd". (P681)
Template shortcuts
{{q|1}}Script error: No such module "wd". (Q1)
{{wde|Q1}}Template:Wde
{{wdq|P681}}Template:Wdq

TemplateData

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.

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