Last modified: 2014-10-15 12:24:37 UTC
"While attempting to undelete a page I deleted earlier as a duplicate, I returned an error, listing the links which were duplicated. However, they were in the form [[Enwiki:Page]] rather than [[En:Page]], resulting in the links being broken." (Reported at http://www.wikidata.org/wiki/Wikidata:Contact_the_development_team#Database_name_vs._language_code initially)
This needs clearification; exactly which page was undeleted?
I suppose whenever we try to put a sitelink into a wikitext message, we are using the global ID as a prefix, which currently doesn't work. I think we should simply define the global IDs as valid interwiki prefixes on wikidata.
(In reply to comment #2) > I think we should simply define the global IDs as valid interwiki prefixes on > wikidata. That doesn't sound like a maintainable method (unless WikidataRepo will create new interwikis if it needs to). Afaik wikiids can be mapped to sites and to interwiki prefixes, but it isn't guaranteed that every wikiid has an interwiki prefix (maybe indirectly, but certainly not directly, e.g. wikt:de). It probably makes sense to simply output external links instead, afaik the wikiids can come up with the url pattern of the site in question, right?
One example is [[d:Q574288]], but it works for basically any item which has a sitelink used on an existing item. See also: https://translatewiki.net/wiki/Thread:Support/MediaWiki:Wikibase-error-sitelink-already-used/en