Jump to content
Wikipedia The Free Encyclopedia

Template:Wikidata sitelink

From Wikipedia, the free encyclopedia
Template documentation[view] [edit] [history] [purge]
Warning This template is used on approximately 88,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.

Usage

This template uses Lua:

This template gets the specified interlanguage link for the current article from Wikidata. If not found or a Wikidata item for the article does not exist, it will return an empty string. Use the |lang= parameter to specify an ISO 639-1 language code, and optionally, the |project= parameter if you want to get the link for a project other than Wikipedia. Note that the template will only return the page name, it does not automatically create a link.

See also Template:Interwiki extra for automatically adding links to other languages from a Wikidata item.

Examples

TemplateData

This template gets the specified interlanguage link for the current article from Wikidata. If not found or a Wikidata item for the article does not exist, it will return an empty string.

Template parameters[Edit template data ]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
langlang

ISO 639-1 language code specifying the language you want to get the sitelink for.

Example
de
Stringrequired
projectproject

The project to get the sitelink for, if not Wikipedia.

Default
wiki
Example
wikiquote
Stringoptional
The above documentation is transcluded from Template:Wikidata sitelink/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.

AltStyle によって変換されたページ (->オリジナル) /