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 will give links to items and properties. With that in mind, is there a better name for it? — Martin (MSGJ · talk) 10:49, 18 September 2015 (UTC)[reply]
Ham II, This does seem like it would be useful at times. I noticed that Spanish Wikipedia seems to have such a template, es:Plantilla:Q obra. I don't know if the Lua syntax could simply be carried over. Rigadoun (talk) 23:43, 27 February 2018 (UTC)[reply]
I believe Template:LinkedLabel ought to provide this functionality in a more convenient way, which would also match the Wikidata equivalent, but it seems to produce an edit link, for some reason. Pinging its creator D1gggg for further commentary. --Waldirtalk 12:23, 5 June 2018 (UTC)[reply]
It uses Module:Wikibase function wdurl. Indeed it should better generate interwiki links! --Marsupium (talk) 11:10, 18 May 2018 (UTC)[reply]
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]
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]