Topic on User talk:Matěj Suchánek

Jump to navigation Jump to search

Adding missing labels in en/pt/etc?

7
Mike Peel (talkcontribs)
Matěj Suchánek (talkcontribs)

Apparently not. The bot queries recent changes and tries to match on the edit summary the following way:

AND rc_source IN ('mw.edit', 'mw.new')
AND (rc_source = 'mw.new'
 OR comment_text LIKE '%wbsetsitelink-add%'
 OR comment_text LIKE '%wbeditentity-update%dded%[[%:%]]%'
 OR comment_text LIKE '%wblinktitles-connect%'
)

Basically, it catches all wbsetsitelink and (rare) wblinktitles calls. When wbeditentity is used, I try to find "Added/added ... [[some:interwiki link]]. Perhaps I should extend it to Add/add(ed) ... sitelink?

Mike Peel (talkcontribs)

Ah, I see. I've been using targetpage.editEntity(data, summary=u'Add '+prefix+'wp sitelink') - I'll change that now to targetpage.editEntity(data, summary=u'Added [['+prefix+':'+page.title()+']]') .

Mike Peel (talkcontribs)
Mike Peel (talkcontribs)
Mike Peel (talkcontribs)
Matěj Suchánek (talkcontribs)

The last one is returned from the query, so this should work. The previous two are not, as you have already found out. But since you originally used "add", it might be natural to have the bot match on the imperative as well.