Template:Wikidata fallback link/doc

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).
 * Explanation: has a site link to York, South Carolina. This link is piped to York.
 * Explanation: has a site link to Sunderland Bridge (village). This link is piped to Sunderland Bridge.
 * Explanation: has a site link to Sunderland Bridge (village). This link is piped to Sunderland Bridge.
 * Explanation: 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.

To suppress the link to Wikidata use off, e.g.

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.

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.

Icon
The OOjs UI pen icon can be used instead of the [Wikidata] link.