Template:Wikidata fallback link
| This template uses Lua: |
| Due to a server limit of 500 "expensive parser function" calls (e.g. #ifexist:, PAGESIZE:, and PAGESINCATEGORY:), this template will only work properly if the page using it has not already exceeded the limit. When the limit is exceeded, the page using this template or module is categorised in Category:Pages with too many expensive parser function calls. (further information) |
Usage
This template (previously called Template:Wikidata red link) takes a Wikidata entity number as an unnamed parameter and provides a link to the corresponding article on the English Wikipedia, or its Wikidata entity depending on whether the article exists or not.
Article exists
If the corresponding article exists then a direct link to the article is given (piped to the label on Wikidata).
{{Wikidata fallback link|Q2076202}}→ York- Explanation: York (Q2076202) has a site link to York, South Carolina. This link is piped to York.
{{Wikidata fallback link|Q6622102}}→ Sunderland Bridge- Explanation: Sunderland Bridge (Q6622102) has a site link to Sunderland Bridge (village). This link is piped to Sunderland Bridge.
Article does not exist
If the corresponding article does not exist on the English Wikipedia, then a red link is displayed, followed by a link to its item on Wikidata.
{{Wikidata fallback link|Q1897508}}→ Opius danielssoni- Explanation: There is no English Wikipedia article yet for this insect, so a red link is displayed.
{{Wikidata fallback link|Q31692001}}→ Phu Khong- Explanation: There is no English Wikipedia article yet for this mountain, so a red link is displayed.
To suppress the link to Wikidata use |wd=off, e.g.
{{Wikidata fallback link|Q31692001|wd=off}}→ Phu Khong- Explanation: The link to Wikidata is not displayed now.
Label exists but article under that title already exists
If the corresponding article does not exist on the English Wikipedia but there is a different article at the item's label, then to avoid confusion, the label is not linked.
{{Wikidata fallback link|Q2542189}}→ Ali- Explanation: there is no English Wikipedia article for this fictional character "Ali", but the page Ali already exists (cousin of the prophet Muhammad) so no link is provided.
{{Wikidata fallback link|Q18977043}}→ Bult- Explanation: there is no English Wikipedia article for the Dutch street "Bult", but the page Bult already exists (commune in France) so no link is provided.
Article exists but is a redirect to the current page
Per WP:SELFRED, if the corresponding article exists but is a redirect to the current page, the label is not linked when the |r=1 parameter is supplied. If the |r=1 parameter is not supplied, the self-redirect is linked as usual.
Example: See Template:Wikidata fallback link/testcases#Article exists but is a redirect to the current page
No label defined
If there is no English label defined on Wikidata, then just a link to the Wikidata item is displayed. To fix this, please add a label to the Wikidata item.
{{Wikidata fallback link|Q2212427}}→- Explanation: this obscure list of football players does not have an equivalent in the English Wikipedia, and an English label is not defined, so only the Wikidata link can be shown.
{{Wikidata fallback link|Q59208468}}→- Explanation: this Chinese work from the Qing Dynasty on Wikisource has no equivalent in the English Wikipedia, and an English label is not defined, so only the Wikidata link can be shown.
Icon
The OOjs UI pen icon can be used instead of the [Wikidata] link.
{{Wikidata fallback link|Q2076202|wd=icon}}→ Opius danielssoni
See also
- {{interlanguage link}} which provides overlapping functionality
- {{get QID|<Wikipedia page title>}} gives the qid from the sitelink
- {{wikidata entity link}} (Shortcut: {{Q|<qid>}}) shows the Wikidata label and link, and links to the Wikidata page
- {{interwiki extra}} for adding interwiki links from a "fallback" Wikidata item
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.