Page MenuHomePhabricator

sitelinks ui: accept a link instead of a value from the dropdown box
Open, LowPublic

Description

Author: Gerard.meijssen

Description:
entering a full url when specifying a site link, instead of picking the page title from a suggestion list will save a lot of hassle ..

At the moment I use http://www.wikidata.org/wiki/Q9458#sitelinks and remove http://www.wikidata.org/wiki/ to get the specific value I need.
Thanks,

Gerard

Details

Reference
bz47983

Related Objects

Event Timeline

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

So instead of picking a siteid and article name combination you could simply specificy a link such as 'http://en.wikipedia.org/wiki/Apple' and wikidata would convert that into 'enwiki' and 'Apple'?

Gerard.meijssen wrote:

yes :)
Gerard

Nice idea for an enhancement, I like such features. It would be fairly easy to do with a single regular expression. Basically assuming every site link follows the enwiki URL schema (which it does, but ...).

The right way to do it would be to iterate all of [[w:d:Special:Interwiki]]. We do have mw.config.get( 'wbSiteDetails' ) and could try to iterate it and use it to parse what the user entered. Can we rely on this and use it?

I've had a discussion about this with the designers. Let's talk before we move forward with this please.

Lydia_Pintscher removed a subscriber: Unknown Object (MLST).
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).
Lydia_Pintscher renamed this task from accept a link instead of a value from the dropdown box to sitelinks ui: accept a link instead of a value from the dropdown box.Dec 27 2014, 7:56 PM
Lydia_Pintscher set Security to None.
Lydia_Pintscher removed a subscriber: Wikidata-bugs.