User:StevenJ81/sandbox

From Wikidata
Jump to navigation Jump to search

Wikidata linking

[edit]

(Copied from Wikidata:Project chat at 13:26, 29 July 2015 (UTC) for reference.)

Hello! Could this be technically possible with some script or bot? The problem in short: we (Latvian Wikipedia) have quite much templates, categories and other non-article stuff, that isn't connected to Wikidata. As adding one by one is too slow and too boring, I was thinking of some kind of automatisation. Could I write such file:

"title in Latvian Wikipedia" (some kind of separator) "title in English Wikipedia"
"title in Latvian Wikipedia" (some kind of separator) "title in English Wikipedia"
...
"title in Latvian Wikipedia" (some kind of separator) "title in English Wikipedia"

And give to some bot or some script and it does the job (linking to Wikidata). OK, if needed I can make sure, that title in English Wikipedia really exists and is not a redirect and also title in Latvian Wikipedia isn't already connected to Wikidata. Or... We (lvwiki) put iw link in pages itself (in the old pre-Wikidata style: [[en:title]]) and some bot does the job. Yes, for me/us it would be faster (I think with AWB it could be done automatically). --Edgars2007 11:03, 28 July 2015 (UTC)

In Ladino Wikipedia, I have many templates like this, and some are really obvious matches (Babel templates, for example). I'd love some help with this. StevenJ81 12:28, 28 July 2015 (UTC)
To both, this is pretty routine. You should each make a (separate) request at WD:Bot requests. --Izno 16:21, 28 July 2015 (UTC)
Izno, Thank you. But there's no format over there. Do I just say, I have a bunch of entries of such-and-such a type; please connect them for me? StevenJ81 20:37, 28 July 2015 (UTC)
Yup! You might want to start a subpage to capture the links you want to make. You may also want to state other requests you might have at the bot request page. --Izno 05:49, 29 July 2015 (UTC)
Edgars2007, StevenJ81, Izno: You may use this tool. The syntax is (e.g.):
en-title TAB Slvwiki TAB lv-title
...

Note it only adds sitelinks to existing items. It does neither create any new item nor merge any existing item. So you should create items for all en pages, and merge existing lv item to en items (probably via "Item merging" function).--GZWDer 06:55, 29 July 2015 (UTC)

GZWDer: Thank you! Will try to play with the wikidata-todo tool :) --Edgars2007 09:04, 29 July 2015 (UTC)
Thanks to all. I'm going to try to make a request on the bot request page first. I have a ton of such links, but a lot of them meet a pattern. So if I can polish them off with a brief description over there first, I'd like to go that way. I'm sure I'll have to go back and to others by means of the tool, and that's ok, too. I appreciate the help from everyone. StevenJ81 (talk) 13:26, 29 July 2015 (UTC)