Page MenuHomePhabricator

Change gadgets' names for Russian Wikipedia
Open, Needs TriagePublic

Description

Hello, I want to ask to create a script that would replace the names of gadgets in the database in Russian Wikipedia, this is necessary for user settings which can disappear when simple renaming.

Related Objects

StatusSubtypeAssignedTask
OpenNone
OpenNone

Event Timeline

@Krinkle is this something that's planned to be handled via the UI for Gadgets 2 (or 3)? It would be pretty easy to write a maintenance script for it but maybe nicer if there is a way to do it without involving developers with shell access.

(Also I wonder if we need gadget redirects? People might load gadgets in weird manual ways and in that case maybe we want to keep the old URL working.)

@Tgr Not currently no. Both Gadgets and Gadgets 2.0 have internal gadget names and display labels. Gadgets should typically not have their definition name changed, but instead one can change the display label through the interface message.

E.g. when registering a gadget as * foo [ResourceLoader] | foo.js, its internal ID will be foo, as used in the preference key and module name. But for display purposes on Special:Preferences we use the contents of MediaWiki:Gadget-foo and that label can be changed many times without needing a script or anything.

@Krinkle I must disagree with you, sometimes we need to do refactor the code. And move all names to new scheme.
For example: https://ru.wikipedia.org/wiki/MediaWiki:Gadgets-definition. We have the chaos accumulated over 10 years here and we need to do something with it.