Page MenuHomePhabricator

Gadgets with names containing non-ASCII characters are not displayed
Closed, InvalidPublic

Description

A gadget is not shown in Preferences. Currently, it is th elast butone on the definition list. Maybe, the reason is a non-ASCII character in its name.

See:
http://ksh.wikipedia.org/wiki/MediaWiki:Gadget-Einleidung-%C3%A4ndere
http://ksh.wikipedia.org/wiki/MediaWiki:Gadget-Einleidung-%C3%A4ndere.js
http://ksh.wikipedia.org/w/index.php?title=MediaWiki:Gadgets-definition&action=edit

If you want to do quick on-site testing, feel free to ask http://ksh.wikipedia.org/wiki/User:Purodha for temporary adminship.


Version: unspecified
Severity: critical
URL: http://ksh.wikipedia.org/w/index.php?title=MediaWiki:Gadgets-definition

Details

Reference
bz18637

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:35 PM
bzimport set Reference to bz18637.

happy.melon.wiki wrote:

Checked on test.wiki; the issue is the non-ASCII character in the *name*; using the character in the script file is ok, it seems. And adding a non-ASCII character to the name of another script that had strictly ASCII scriptfile, also made it disappear. Retitling for clarity.

Gadget IDs have to follow the rules for XML IDs, so they are restricted to alphanumeric ASCII characters and can't start with a number. This is by design, and also documented on the extension's description page http://www.mediawiki.org/wiki/Extension:Gadgets.

It would in theory be possible to use the same encoding MediaWiki uses for section IDs to get around that limitation. It would need some fiddeling. If you feel a real need for this, reopen as a feature request.

Closing as invalid, since this is expected behavior.