Page MenuHomePhabricator

Ivan-r
User

Projects

User does not belong to any projects.

Today

  • No visible events.

Tomorrow

  • No visible events.

Wednesday

  • No visible events.

User Details

User Since
Feb 6 2021, 8:52 PM (275 w, 2 d)
Availability
Available
LDAP User
Unknown
MediaWiki User
Ivan-r [ Global Accounts ]

Recent Activity

Sat, May 16

Ivan-r added a comment to T425439: Mark "-new" as deprecate key and remove it in future.

I see that in another case, there are no extra lines.

Logging in to mcw:pl as ProBot
WARNING: API error writeapidenied: You're not allowed to edit this wiki through the API.
ERROR: Login failed (writeapidenied).
Password for user ProBot on mcw:pl (no characters will be shown):

So it looks like an incorrect implementation of the warning in this particular case, and not normal behavior.

Sat, May 16, 3:44 PM · Pywikibot, Pywikibot-interwiki.py

Fri, May 15

Ivan-r added a comment to T403891: MediaWiki:Wikieditor-toolbar-help-content-signaturetimestamp-syntax cannot be edited as it gets substituted with personal signature.

This can be fixed by changing the default content model to plain text

Fri, May 15, 7:35 PM · I18n, WikiEditor (2010)
Ivan-r added a comment to T426462: Limit pre-save transforms in MediaWiki namespace.

This can be done by changing content model to plain text

Fri, May 15, 7:33 PM · MediaWiki-Parser

Sat, May 9

Ivan-r added a comment to T425439: Mark "-new" as deprecate key and remove it in future.
WARNING: C:\Users\DragonMsi\Documents\pywikibot2\scripts\interwiki.py:2437: ArgumentDeprecationWarning: -new:30 is deprecated since release 11.3.0; use -newpages:30 instead.
  main()

Should main() be printed in such cases?

Sat, May 9, 7:14 PM · Pywikibot, Pywikibot-interwiki.py
Ivan-r added a comment to T425439: Mark "-new" as deprecate key and remove it in future.

@Ivan-r: Are you able to review my patch?

Sat, May 9, 7:04 PM · Pywikibot, Pywikibot-interwiki.py
Ivan-r added a comment to T410104: interwiki.py delete links to ignored langs, instead ignore.

@Xqt you can merge this?

Sat, May 9, 6:51 PM · Pywikibot

Tue, May 5

Ivan-r created T425439: Mark "-new" as deprecate key and remove it in future.
Tue, May 5, 3:50 PM · Pywikibot, Pywikibot-interwiki.py

Mon, May 4

Ivan-r added a comment to T75299: Indicators (protected icon, featured icon, coordinates) are not shown in Minerva.

@stjn: It seems that you believe that you know the thinking of a development team which, as far as I know, you are not part of. Please avoid doing so. Thanks.

Mon, May 4, 7:02 PM · MinervaNeue

Apr 17 2026

Ivan-r created T423748: Tracking category for the pages where have tag TemplateData.
Apr 17 2026, 9:58 PM · VisualEditor, TemplateData

Apr 12 2026

Ivan-r created T423051: protect.py ignore -summary.
Apr 12 2026, 5:59 PM · Pywikibot

Apr 9 2026

Ivan-r created T422850: Heterogeneity of links to editing sections of articles..
Apr 9 2026, 3:36 PM

Mar 27 2026

Ivan-r added a comment to T417244: [Vector 2010] Watchlist navigation overlaps with watchlist title.

Vector 2010 is not a responsive skin so it's not expected to work well at these kind of resolutions without gadgets. Development of legacy Vector is frozen (we are in maintenance only mode).

Mar 27 2026, 2:28 PM · Vector (legacy skin) (Tracking), Moderator-Tools-Team, MediaWiki-Watchlist
Ivan-r added a comment to T421489: The 'Show IP' button for temporary accs has a clickable size twice the normal size.

I first saw it on minecraft.wiki
Screenshot submitted by user ru.wikipedia.org
I believe this problem affects all projects where Temporary Accounts are enabled

Mar 27 2026, 12:32 PM · Temporary accounts, Product Safety and Integrity
Ivan-r created T421489: The 'Show IP' button for temporary accs has a clickable size twice the normal size.
Mar 27 2026, 12:29 PM · Temporary accounts, Product Safety and Integrity

Mar 26 2026

Ivan-r added a comment to T421384: There is no function to hide previously showed IP addresses of temporary accounts.

If you need this immediately, IPs revealed status are stored in LocalStorage with keys like _EXPIRY_mw-checkuser-temp-{user}. Clearing specific ones/all and turning off auto-reveal will hide IPs again.

Mar 26 2026, 3:19 PM · Product Safety and Integrity, Temporary accounts
Ivan-r created T421384: There is no function to hide previously showed IP addresses of temporary accounts.
Mar 26 2026, 2:15 PM · Product Safety and Integrity, Temporary accounts

Mar 1 2026

Ivan-r added a comment to T417961: Error parsing the list of pages in the category containing files.

@Xqt, Thank you for your help!

Mar 1 2026, 2:17 PM · Pywikibot-pagegenerators, Pywikibot

Feb 28 2026

Ivan-r added a comment to T417961: Error parsing the list of pages in the category containing files.

What do you mean?

For further investigations I need your local repository. Try to upload it here as zip file.

Feb 28 2026, 5:32 PM · Pywikibot-pagegenerators, Pywikibot
Ivan-r added a comment to T417961: Error parsing the list of pages in the category containing files.

Change #1240880 merged by Xqt:

[pywikibot/core@master] pagegenerators: Support namespaces parameter for all category generators

https://gerrit.wikimedia.org/r/1240880

Feb 28 2026, 1:03 PM · Pywikibot-pagegenerators, Pywikibot
Ivan-r added a comment to T417961: Error parsing the list of pages in the category containing files.

(unfortunately) that looks good. Please confirm that the __pycache__ files were deleted previously. I have no further ideas except:

Feb 28 2026, 12:09 PM · Pywikibot-pagegenerators, Pywikibot
Ivan-r added a comment to T417961: Error parsing the list of pages in the category containing files.

@Ivan-r could you please tag the additional information I asked for.

C:\Users\DragonMsi\Documents\pywikibot2>py -m pwb shell
Welcome to the Pywikibot interactive shell!
>>> site = pywikibot.Site('mcw:ru')
>>> type(site)
<class 'pywikibot.site._apisite.APISite'>
>>> site.__class__.__module__
'pywikibot.site._apisite'
>>> from pprint import pprint
>>> pprint(site.__class__.__mro__)
(<class 'pywikibot.site._apisite.APISite'>,
 <class 'pywikibot.site._basesite.BaseSite'>,
 <class 'pywikibot.tools.ComparableMixin'>,
 <class 'abc.ABC'>,
 <class 'pywikibot.site._extensions.EchoMixin'>,
 <class 'pywikibot.site._generators.GeneratorsMixin'>,
 <class 'pywikibot.site._extensions.GeoDataMixin'>,
 <class 'pywikibot.site._extensions.GlobalUsageMixin'>,
 <class 'pywikibot.site._extensions.LinterMixin'>,
 <class 'pywikibot.site._extensions.PageImagesMixin'>,
 <class 'pywikibot.site._extensions.ProofreadPageMixin'>,
 <class 'pywikibot.site._extensions.TextExtractsMixin'>,
 <class 'pywikibot.site._extensions.ThanksMixin'>,
 <class 'pywikibot.site._extensions.UrlShortenerMixin'>,
 <class 'pywikibot.site._extensions.WikibaseClientMixin'>,
 <class 'object'>)
>>> page = pywikibot.FilePage(site, 'File:Example.jpg')
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "C:\Users\DragonMsi\Documents\pywikibot2\pywikibot\page\_filepage.py", line 73, in __init__
    if not sep or extension.lower() not in self.site.file_extensions:
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\DragonMsi\Documents\pywikibot2\pywikibot\site\_basesite.py", line 219, in __getattr__
    raise AttributeError(f'{type(self).__name__} instance has no '
                         f'attribute {name!r}') from None
AttributeError: APISite instance has no attribute 'file_extensions'. Did you mean: 'has_extension'?
>>>
Feb 28 2026, 9:51 AM · Pywikibot-pagegenerators, Pywikibot

Feb 23 2026

Ivan-r added a comment to T417961: Error parsing the list of pages in the category containing files.

Can't the problem be on the site side?

No, this is clearly an issue in the code, the site provides the extensions as expected. I suspect this is a problem with the family file (cannot find it anywhere in the task), possibly referencing the wrong APISite / old installation. Or some pycache corruption, but I have never seen a case of it.

Feb 23 2026, 12:56 PM · Pywikibot-pagegenerators, Pywikibot

Feb 22 2026

Ivan-r added a comment to T417961: Error parsing the list of pages in the category containing files.

I did a completely clean installation of the latest stable version, copying only family and user-config file. Here is the result:

C:\Users\DragonMsi\Documents\pywikibot>cd %userprofile%/Documents/pywikibot2
Feb 22 2026, 6:42 AM · Pywikibot-pagegenerators, Pywikibot
Ivan-r added a comment to T417961: Error parsing the list of pages in the category containing files.

Could you run py -m pwb version -nouser and tag the result here please.

Feb 22 2026, 6:39 AM · Pywikibot-pagegenerators, Pywikibot
Ivan-r added a comment to T417961: Error parsing the list of pages in the category containing files.
Feb 22 2026, 6:30 AM · Pywikibot-pagegenerators, Pywikibot

Feb 20 2026

Ivan-r added a comment to T417961: Error parsing the list of pages in the category containing files.

Okay, I updated the bot, now the error is different:

>>> site.file_extensions
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "C:\Users\DragonMsi\Documents\pywikibot\pywikibot\site\_basesite.py", line 218, in __getattr__
Feb 20 2026, 9:36 AM · Pywikibot-pagegenerators, Pywikibot
Ivan-r added a comment to T417961: Error parsing the list of pages in the category containing files.

Very strange because file_extension property was introduced with Pywikibot 8.4 already. Could you please try the following code snippet (exprecting you have a minecraft_family file:

py -m pwb shell
>>> site = pywikibot.Site('minecraft:ru')
>>> site.file_extensions

The following is expected then:

['flac', 'gif', 'ico', 'jpeg', 'jpg', 'mkv', 'mov', 'mp3', 'mp4', 'odm', 'oga', 'ogg', 'pdf', 'png', 'svg', 'wav', 'webm', 'webp']
>>> site = pywikibot.Site('mcw:ru')
>>> site.file_extensions
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "C:\Users\DragonMsi\Documents\pywikibot\pywikibot\site\_basesite.py", line 218, in __getattr__
    raise AttributeError(f'{type(self).__name__} instance has no '
                         f'attribute {name!r}') from None
AttributeError: APISite instance has no attribute 'file_extensions'. Did you mean: 'has_extension'?
Feb 20 2026, 9:27 AM · Pywikibot-pagegenerators, Pywikibot
Ivan-r created T417961: Error parsing the list of pages in the category containing files.
Feb 20 2026, 6:00 AM · Pywikibot-pagegenerators, Pywikibot

Feb 15 2026

Ivan-r added a comment to T417142: weblinkchecker requests links with outdated encoding.

I could be wrong, but based on the code it seems the bot is by default configured to work in the interests of only de.wikipedia

No, the script can be used for all sites.

Feb 15 2026, 6:53 PM · Pywikibot-weblinkchecker.py, Pywikibot

Feb 11 2026

Ivan-r changed the subtype of T417129: The script is trying to make an incorrect redirect for the namespace Module from "Task" to "Bug Report".
Feb 11 2026, 8:57 AM · Pywikibot-redirect.py, Pywikibot
Ivan-r created T417142: weblinkchecker requests links with outdated encoding.
Feb 11 2026, 8:56 AM · Pywikibot-weblinkchecker.py, Pywikibot
Ivan-r created T417129: The script is trying to make an incorrect redirect for the namespace Module.
Feb 11 2026, 6:58 AM · Pywikibot-redirect.py, Pywikibot

Feb 10 2026

Ivan-r created T417044: Add redirection processing with a template.
Feb 10 2026, 4:49 PM · Pywikibot-interwiki.py, Pywikibot

Feb 3 2026

Ivan-r added a comment to T416086: PyWikiBot in -auto mode does not create graphs if the links contain pages of disambig or pages in different namespaces..

I would also like to add that if you specify interwiki_graph_url in user-config.py, the bot adds the corresponding entries to autonomous_problems.dat, as if the files were made, but for a hundred such entries, only one corresponds to the actually created file.

Feb 3 2026, 7:27 PM · Pywikibot-interwiki.py, Pywikibot
Ivan-r added a comment to T416086: PyWikiBot in -auto mode does not create graphs if the links contain pages of disambig or pages in different namespaces..

So. I'm done setting up the namespaces. Now the bot does not fall when processing links between valid namespaces.
https://ru.minecraft.wiki/w/Справка:PyWikiBot#mcw_family.py

Feb 3 2026, 7:07 PM · Pywikibot-interwiki.py, Pywikibot

Feb 2 2026

Ivan-r added a comment to T416086: PyWikiBot in -auto mode does not create graphs if the links contain pages of disambig or pages in different namespaces..

I'm having trouble getting this feature to work. In manual mode, the bot complains about inappropriate namespace names instead number. There are too many problems there. When I finish solving problems on the host side, I will monitor how the bot processes it and possibly create a separate issue if the problem is entirely on the bot's side.

Feb 2 2026, 6:27 PM · Pywikibot-interwiki.py, Pywikibot
Ivan-r added a comment to T416086: PyWikiBot in -auto mode does not create graphs if the links contain pages of disambig or pages in different namespaces..
Feb 2 2026, 3:05 PM · Pywikibot-interwiki.py, Pywikibot
Ivan-r added a comment to T416086: PyWikiBot in -auto mode does not create graphs if the links contain pages of disambig or pages in different namespaces..

It works as documented in https://doc.wikimedia.org/pywikibot/master/scripts_ref/scripts.html#module-scripts.interwiki:
-autonomous, -auto:
Run automatically, do not ask any questions. If a question to an operator is needed, write the name of the page to autonomous_problems.dat and continue on the next page.

This does not explain why, if there is a conflict between pages in the same namespace and/or non-disambiguation pages, the script draws the graph.

I know that the interwiki script is a bit out of scope, since Wikimedia uses a Wikibase for that purpose. For testing, it would be great to know the site (or family) you are working on.

I work on minecraft.wiki
Draft of family.py placed here: https://ru.minecraft.wiki/w/Участник:Ivan-r/Черновик3

Feb 2 2026, 10:56 AM · Pywikibot-interwiki.py, Pywikibot
Ivan-r added a comment to T415891: interwiki_graph is not working due to an encoding error.

Manually applied the suggested changes, it seems to be working.

Feb 2 2026, 12:10 AM · Pywikibot

Feb 1 2026

Ivan-r updated subscribers of T416086: PyWikiBot in -auto mode does not create graphs if the links contain pages of disambig or pages in different namespaces..

@Xqt Why isn't this a bug? I don't see this behavior being expected. In addition, as I already pointed out, in automatic mode, the bot still makes graphs, but only in a combination of not very frequent situations.

Feb 1 2026, 2:57 PM · Pywikibot-interwiki.py, Pywikibot
Ivan-r created T416086: PyWikiBot in -auto mode does not create graphs if the links contain pages of disambig or pages in different namespaces..
Feb 1 2026, 10:36 AM · Pywikibot-interwiki.py, Pywikibot

Jan 31 2026

Ivan-r updated the task description for T416012: Processing of anchor links and redirects interwiki.
Jan 31 2026, 6:05 PM · Pywikibot, Pywikibot-interwiki.py

Jan 30 2026

Ivan-r created T416012: Processing of anchor links and redirects interwiki.
Jan 30 2026, 2:47 PM · Pywikibot, Pywikibot-interwiki.py

Jan 29 2026

Ivan-r added a comment to T415891: interwiki_graph is not working due to an encoding error.

I changed the pydot core file so that the default encoding is utf-8. After that, everything worked. So need to teach PWB to specify this encoding when transmitting data to this module.

Jan 29 2026, 2:05 PM · Pywikibot
Ivan-r updated the task description for T415891: interwiki_graph is not working due to an encoding error.
Jan 29 2026, 1:37 PM · Pywikibot
Ivan-r updated the task description for T415891: interwiki_graph is not working due to an encoding error.
Jan 29 2026, 1:36 PM · Pywikibot
Ivan-r created T415891: interwiki_graph is not working due to an encoding error.
Jan 29 2026, 1:35 PM · Pywikibot

Dec 31 2025

Ivan-r added a comment to T410104: interwiki.py delete links to ignored langs, instead ignore.

Thanks for pointing that out! I've updated the patch to fix this. The bot now skips interwiki links to neverlink languages during processing, so they're preserved instead of being deleted. The fix is in the check_page() method - it simply continues to the next link when it encounters a neverlink language, preventing it from being processed or removed.

Could you take a look at the updated patch?

@Dumbledore, was the question for me?

Dec 31 2025, 8:36 AM · Pywikibot

Nov 17 2025

Ivan-r added a comment to T410104: interwiki.py delete links to ignored langs, instead ignore.

@Xqt No, this key is for specifying specific pages. And in general, to remove all interwiki links to a specific language used the replace.py.

Nov 17 2025, 8:31 AM · Pywikibot

Nov 14 2025

Ivan-r created T410104: interwiki.py delete links to ignored langs, instead ignore.
Nov 14 2025, 3:57 AM · Pywikibot

Sep 6 2025

Ivan-r renamed T403891: MediaWiki:Wikieditor-toolbar-help-content-signaturetimestamp-syntax cannot be edited as it gets substituted with personal signature from Cursed system message to Non-editable system message.
Sep 6 2025, 4:32 PM · I18n, WikiEditor (2010)
Ivan-r added a comment to T403891: MediaWiki:Wikieditor-toolbar-help-content-signaturetimestamp-syntax cannot be edited as it gets substituted with personal signature.

@Aklapper added

Sep 6 2025, 4:31 PM · I18n, WikiEditor (2010)
Ivan-r updated the task description for T403891: MediaWiki:Wikieditor-toolbar-help-content-signaturetimestamp-syntax cannot be edited as it gets substituted with personal signature.
Sep 6 2025, 4:30 PM · I18n, WikiEditor (2010)
Ivan-r added a comment to T403891: MediaWiki:Wikieditor-toolbar-help-content-signaturetimestamp-syntax cannot be edited as it gets substituted with personal signature.

Also, as I can see, there is no equivalent of Discussiontools in this extension, and the signature cannot be changed in any way. For example, to replace these two silly hyphens with a single large dash.

Sep 6 2025, 3:46 PM · I18n, WikiEditor (2010)
Ivan-r created T403891: MediaWiki:Wikieditor-toolbar-help-content-signaturetimestamp-syntax cannot be edited as it gets substituted with personal signature.
Sep 6 2025, 3:43 PM · I18n, WikiEditor (2010)

Feb 10 2023

Ivan-r added a comment to T329348: wpuselivepreview are generate unlimited header link in link.

@Aklapper, MediaWiki — 1.38.2; CollapsibleVector — 0.1.11 (238abab)

Feb 10 2023, 11:58 PM · MediaWiki-extensions-CollapsibleVector
Ivan-r created T329348: wpuselivepreview are generate unlimited header link in link.
Feb 10 2023, 7:42 AM · MediaWiki-extensions-CollapsibleVector

Feb 16 2021

Ivan-r added a comment to T274042: Create desktop.css/js for specific non-mobile styles and scripts.

We are trying to move away from the concept of desktop vs mobile styles since users use desktop to view mobile and mobile users use desktop and to think in terms of skin e.g. Minerva.css or Vector.css (particularly because Minerva works for both mobile and desktop).

Longer-term, we plan to remove Mobile.js/css from MobileFrontend and load Common.js/css. We recommend using TemplateStyles making use of media queries to ship styles rather than shipping desktop and mobile stylesheets.

Feb 16 2021, 2:46 AM · MediaWiki-Core-Skin-Architecture

Feb 6 2021

Ivan-r updated the task description for T274042: Create desktop.css/js for specific non-mobile styles and scripts.
Feb 6 2021, 9:26 PM · MediaWiki-Core-Skin-Architecture
Ivan-r created T274042: Create desktop.css/js for specific non-mobile styles and scripts.
Feb 6 2021, 9:25 PM · MediaWiki-Core-Skin-Architecture