Page MenuHomePhabricator

Database name vs. language code when undeleting items
Closed, ResolvedPublic

Description

"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)


Version: master
Severity: normal

Details

Reference
bz44945

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:24 AM
bzimport set Reference to bz44945.
bzimport added a subscriber: Unknown Object (MLST).

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

Lydia_Pintscher removed a subscriber: Unknown Object (MLST).
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).

When I undeleted an Item, which I merged before as duplicate, I got the error:

undeleting-item.png (161×1 px, 21 KB)

Beside the error not looking correct, when I removed the duplicated links in the merged item, and the used 'undo', the links were in the correct way.

Lucie set Security to None.