<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AWikidata_fallback_link%2Fdoc</id>
	<title>Template:Wikidata fallback link/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AWikidata_fallback_link%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Template:Wikidata_fallback_link/doc&amp;action=history"/>
	<updated>2026-11-01T00:33:02Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://elite.mistflux.co.uk/w/index.php?title=Template:Wikidata_fallback_link/doc&amp;diff=126047&amp;oldid=prev</id>
		<title>Wikipedia&gt;Habst: add self-redirect doc</title>
		<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Template:Wikidata_fallback_link/doc&amp;diff=126047&amp;oldid=prev"/>
		<updated>2025-07-23T00:08:40Z</updated>

		<summary type="html">&lt;p&gt;add self-redirect doc&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{template shortcut|wdrl}}&lt;br /&gt;
{{Lua|Module:Wd}}&lt;br /&gt;
{{expensive}}&lt;br /&gt;
&amp;lt;!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --&amp;gt;&lt;br /&gt;
== Usage ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
===Article exists===&lt;br /&gt;
If the corresponding article exists then a direct link to the article is given (piped to the label on Wikidata).&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Wikidata fallback link|Q2076202}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{Wikidata fallback link|Q2076202}}&lt;br /&gt;
*:Explanation: {{Q|Q2076202}} has a site link to [[York, South Carolina]]. This link is piped to York.&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Wikidata fallback link|Q6622102}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{Wikidata fallback link|Q6622102}}&lt;br /&gt;
*:Explanation: {{Q|Q6622102}} has a site link to [[Sunderland Bridge (village)]]. This link is piped to Sunderland Bridge.&lt;br /&gt;
&lt;br /&gt;
===Article does not exist===&lt;br /&gt;
If the corresponding article does not exist on the English Wikipedia, then a [[Wikipedia:red link|red link]] is displayed, followed by a link to its item on Wikidata.&lt;br /&gt;
{{#ifexist:{{#invoke:wd|title|Q1897508}}||&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Wikidata fallback link|Q1897508}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{Wikidata fallback link|Q1897508}}&lt;br /&gt;
*:Explanation: There is no English Wikipedia article yet for this insect, so a red link is displayed.&lt;br /&gt;
}}{{#ifexist:{{#invoke:wd|title|Q31692001}}||&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Wikidata fallback link|Q31692001}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{Wikidata fallback link|Q31692001}}&lt;br /&gt;
*:Explanation: There is no English Wikipedia article yet for this mountain, so a red link is displayed.&lt;br /&gt;
}}&lt;br /&gt;
To suppress the link to Wikidata use {{para|wd|off}}, e.g.&lt;br /&gt;
{{#ifexist:{{#invoke:wd|title|Q31692001}}||&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Wikidata fallback link|Q31692001|wd=off}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{Wikidata fallback link|Q31692001|wd=off}}&lt;br /&gt;
*:Explanation: The link to Wikidata is not displayed now.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Label exists but article under that title already exists===&lt;br /&gt;
If the corresponding article does not exist on the English Wikipedia but there is a different article at the item&amp;#039;s label, then to avoid confusion, the label is not linked.&lt;br /&gt;
{{#ifexist:{{#invoke:wd|title|Q2542189}}||&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Wikidata fallback link|Q2542189}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{Wikidata fallback link|Q2542189}}&lt;br /&gt;
*:Explanation: there is no English Wikipedia article for this fictional character &amp;quot;Ali&amp;quot;, but the page [[Ali]] already exists (cousin of the prophet Muhammad) so no link is provided.&lt;br /&gt;
}}{{#ifexist:{{#invoke:wd|title|Q18977043}}||&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Wikidata fallback link|Q18977043}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{Wikidata fallback link|Q18977043}}&lt;br /&gt;
*:Explanation: there is no English Wikipedia article for the Dutch street &amp;quot;Bult&amp;quot;, but the page [[Bult]] already exists (commune in France) so no link is provided.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Article exists but is a redirect to the current page===&lt;br /&gt;
Per [[WP:SELFRED]], if the corresponding article exists but is a redirect to the current page, the label is not linked when the {{para|r|1}} parameter is supplied. If the {{para|r|1}} parameter is not supplied, the self-redirect is linked as usual.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Example: See [[Template:Wikidata fallback link/testcases#Article exists but is a redirect to the current page]]&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
===No label defined===&lt;br /&gt;
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.&lt;br /&gt;
{{#if:{{#invoke:wd|label|Q2212427}}||&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Wikidata fallback link|Q2212427}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{Wikidata fallback link|Q2212427}}&lt;br /&gt;
*: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.&lt;br /&gt;
}}{{#if:{{#invoke:wd|label|Q59208468}}||&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Wikidata fallback link|Q59208468}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{Wikidata fallback link|Q59208468}}&lt;br /&gt;
*: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.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Icon===&lt;br /&gt;
The OOjs UI pen icon can be used instead of the [Wikidata] link.&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Wikidata fallback link|Q2076202|wd=icon}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{Wikidata fallback link|Q1897508|wd=icon}}&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*{{tlp|interlanguage link}} which provides overlapping functionality&lt;br /&gt;
*{{tlp|get QID|&amp;lt;Wikipedia page title&amp;gt;}} gives the qid from the sitelink&lt;br /&gt;
*{{tlp|wikidata entity link}} (Shortcut: {{tlp|Q|&amp;lt;qid&amp;gt;}}) shows the Wikidata label and link, and links to the Wikidata page&lt;br /&gt;
*{{tlp|interwiki extra}} for adding &amp;lt;em&amp;gt;interwiki&amp;lt;/em&amp;gt; links from a &amp;quot;fallback&amp;quot; Wikidata item&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Wikidata templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Habst</name></author>
	</entry>
</feed>