Open main menu

User talk:Matěj Suchánek

About this board

Namespace left out when adding missing label

Tacsipacsi (talkcontribs)

Hi! In this edit, your bot added Hungarian label “MediaWiki”, while the connected page is hu:Wikipédia:MediaWiki. Labels of non-mainspace items should contain the namespace as well, so please use the full page name in this task. Thanks in advance!

Matěj Suchánek (talkcontribs)

Thanks for your report. My bot is supposed to never strip the prefix, so this must be a bug in the framework, probably related to recent overhaul to sitelinks handling. I will investigate it.

Matěj Suchánek (talkcontribs)

Turned out to be my mistake. I'm working on a fix.

Reply to "Namespace left out when adding missing label"
Eurohunter (talkcontribs)

Hello. How to stop bot from copying wrong labels from article names? These articles are under wrong title on some Wikipedia versions and need to be moved in the future by people who operates in these languages.

Matěj Suchánek (talkcontribs)

If it's just this single item, I can blacklist it (already done). You can also insert correct labels if you know them (and somebody will have to do it because the bot will ignore the item).

Eurohunter (talkcontribs)

Thanks. If I will get more I will let you know. I already tried to adjust names and fixed some languages. As native Czech speaker could you help with Czech version and Slovak maybe? "GfK Entertainment charts" schould be translated to Czech as in Polish "listy GfK Entertainment". Lead should be also updated to "GfK Entertainment charts are the official music charts in Germany and are gathered and published by GfK Entertainment (formerly Media Control and Media Control GfK International) v zastoupení Bundesverband der phonographischen Wirtschaft (Národní asociací fonografického průmyslu).". Second part of Czech version was okey so I connected it here to part English version.

Matěj Suchánek (talkcontribs)

"listy GfK Entertainment" could be "seznamy GfK Entertainment" or maybe "žebříčky GfK Entertainment". But I don't feel much competent to decide, sorry.

Reply to "Q64305519"
Cheeeeesus (talkcontribs)

Hi Matej

I saw that you once removed the fact that the Democratic Republic of the Congo is "part of" (P361) Africa (Q15), without replacing it with another entity. Therefore, at this moment, DRC is without a "part of" (P361) property. Many other African countries are part of an African region, for example Namibia (Q1030) is part of Southern Africa (Q27394).

I would be glad to add the properties myself, but I'm currently not able to, since these pages are semi-protected.

Could you provide me with guidance on how to do these changes myself? Or are you willing to perform the changes? It would be great if every country worldwide has a "part of" property that shows to which region / continent it belongs.

Best regards


Matěj Suchánek (talkcontribs)

I understand. If I remember correctly now, I was actually removing it because of duplication with continent (P30). If you want to change a semi-protected item, you need to have done at least 50 edits. Your edit requests would be more visible if you used {{Edit request}} but I have already solved them.

Cheeeeesus (talkcontribs)

Thanks a lot Matěj. Yes, there is some duplication because of P30, but the other countries have it as well. I'm gonna use the correct template the next time, apparently I used the one from Wikipedia.

EncycloPetey (talkcontribs)
Matěj Suchánek (talkcontribs)

Right, thanks for notifying me. Something went wrong. It was supposed to remove links to pages that don't exist anymore but some them did. I restored links to all pages that exist.

Draceane (talkcontribs)

Ahoj, mohl bys mi skrýt prosím IP zde: ? Díky.

Matěj Suchánek (talkcontribs)
Draceane (talkcontribs)

Já vím, ale takhle je to pro mě asi jednodušší. :-P

Rar (talkcontribs)

Hi, maybe you can help mi as pywikibot expert. I use my bot to add uk: pages to wikidata. But now I have to merge few hundred formerly created pages with other items. I try as follows:

page = pywikibot.Page(ensite, 'Alexander County')
item = pywikibot.ItemPage.fromPage(page)
Out[5]: ItemPage(Q226341)
uk_page = pywikibot.Page(uksite, u'Александер (округ)')
uk_item = pywikibot.ItemPage.fromPage(uk_page)
Out[10]: ItemPage(Q12077603)

WARNING: API error failed-modify: Attempted modification of the Item failed.
Traceback (most recent call last):
APIError: failed-modify: Attempted modification of the Item failed. 
[extradata:[u'Conflicting descriptions for language fr']; 
 messages:[{u'html': {u'*': u'Attempted modification of the Item failed.'}, 
            u'name': u'wikibase-api-failed-modify', u'parameters': []}]; 
    help:See for API usage. 
    Subscribe to the mediawiki-api-announce mailing 
    list at <> 
    for notice of API deprecations and breaking changes.]

So, the reason was 'Conflicting descriptions for language fr'. But I merged these Items later manually without any problems. What is wrong in my code?

Matěj Suchánek (talkcontribs)

Hi. You have bumped into a known inconvenience. There is an API module that allows merging items. Both Pywikibot and the merge tool use it. There are also several checks that prevent merging items that probably shouldn't be merged and this is one of them: the items have different descriptions in the same language. This check can be bypassed using ignoreconflicts= parameter, which you can use with uk_item.mergeInto(item, ignore_conflicts=['description']). However, if there is a conflict, this will just move the non-conflicting content and leave the rest, without creating a redirect. So the code needs to be:

uk_item.mergeInto(item, ignore_conflicts=['description'])
if not uk_item.isRedirectPage():
    uk_item.editEntity(data={}, clear=True, summary='Clear item to create redirect')

See also phab:T127213 and phab:T172406.

Reply to "Error merging items"

Bad edits in March 2019 adding commons links

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

Thanks, I must have missed that. I'm not going to conduct this kind of import again soon. If I remember correctly, I used script

Reply to "Bad edits in March 2019 adding commons links"
Conny (talkcontribs)

Dear Matěj Suchánek :) , is it possible to change items like Q31148030 to statment is a Q1362233 instead of Q3947? Regards, Conny (talk) 15:40, 11 May 2019 (UTC).

Matěj Suchánek (talkcontribs)

What exactly is the key sign of the subject being instance of the other class?

Reply to "podstávkový dům"
Xaris333 (talkcontribs)

Hello. See the template in w:el:Μάνος Κατράκης. It was supposed to show (1933-1935) and not (1933, 1935). It was working before. Have I done something wrong?

Matěj Suchánek (talkcontribs)

showqualifier=time was made for this.

Xaris333 (talkcontribs)

Thanks! I forgot that.

Jheald (talkcontribs)

I'm having some trouble with Quick Statements for statements with value 'somevalue' with qualifiers and/or sources, eg:

Q63313954 P123 somevalue P1932 "R. Bentley" S248 Q53556514 S5199 "000018044" S813 +2019-03-06T00:00:00Z/11

Is there something I am missing here?

Matěj Suchánek (talkcontribs)
Jheald (talkcontribs)

I'd forgotten about that thread. Yes, the difference was that this time it was me trying to add the qualifiers, rather than Rdmpage, so now I've got a bit more of a stake in trying to make it work!

Jheald (talkcontribs)

Thread opened on Magnus's talk page

Reply to "QuickStatements -- somevalue"
Return to the user page of "Matěj Suchánek".