This template is within the scope of WikiProject Wikidata, a collaborative effort to improve Wikipedia's integration with
Wikidata. If you would like to participate, please visit the
project page.WikidataWikipedia:WikiProject WikidataTemplate:WikiProject WikidataWikidata articles
This template did generate
interwiki links as shown above until 7 September 2017 it was changed to generate external links using {{
#invoke:Wikibase|wdurl}}. I have updated the template so it displays interwiki links again, while also retaining the other functionality that was added to use the template without a parameter (as shown in the template's updated documentation). --
Zyxw (
talk)
03:18, 19 January 2019 (UTC)reply
What exactly is the benefit of using interwiki links over external links or vice versa? Aren't external links easier to search for? It looks like this was using
mw.wikibase.getEntityUrl (via {{
#invoke:Wikibase|wdurl}} as mentioned before). Also this template is named "Wikidata entity link" but it does not link to the entity but to its data description (You can learn about the difference at
Linked Data interface and
Wikidata identifiers). We should probably link to either the real entity link (via
https://www.wikidata.org/entity/ ; notice this cannot be reached via interwiki links) or use the entity data link
d:Special:EntityData/, e.g.,
https://www.wikidata.org/entity/P31 or
d:Special:EntityData/P31. Notice prefixes like "Property:" and "Lexeme:" are not necessary in these cases. It should also be noted that the current template does not handle all entity types, e.g., {{
Wikidata entity link|L3}} fails to properly link to
d:Special:EntityData/L3 (I am not sure this matters yet as lexeme entities do not have labels for such links anyway but it should be something to think about).
17.226.15.91 (
talk)
01:18, 21 June 2019 (UTC)reply
Wikilink to the French article?
When I know the QID, can I link to the French article via WD, automatically?
I was thinking it would be nice if a second parameter could be added to this template, allowing users to choose label text for the link. For example, {{Wikidata entity link|1=Q42|2=Information about Douglas Adams on Wikidata <small>(Q42)</small>}} would yield something like this:
Information about Douglas Adams on Wikidata (Q42). Thoughts?
Edward-Woodrow (
talk)
00:40, 22 May 2023 (UTC)reply