Template:Wikidata fallback link/testcases
| This is the template test cases page for the sandbox of Template:Wikidata fallback link. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
Article exists
[edit source]If the corresponding article exists then a direct link to the article is given (piped to the label on Wikidata).
[[Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).]]
{{Wikidata fallback link/sandbox}}
[[Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).]]
Article does not exist
[edit source]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.
[[Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).]]
{{Wikidata fallback link/sandbox}}
[[Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).]]
Label exists but article under that title aleady exists
[edit source]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.
[[Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).]]
{{Wikidata fallback link/sandbox}}
[[Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).]]
Article exists but is a redirect to the current page
[edit source]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.
[[Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).]]
{{Wikidata fallback link/sandbox}}
[[Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).]]
No label defined
[edit source]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.
[[Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).]]
{{Wikidata fallback link/sandbox}}
[[Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).]]
Link off
[edit source][[Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).]]
{{Wikidata fallback link/sandbox}}
[[Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).]]
Icon link
[edit source][[Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).]]
{{Wikidata fallback link/sandbox}}
[[Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).]]