Last modified: 2014-09-02 05:58:09 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T23897, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 21897 - Gadget user configuration
Gadget user configuration
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Gadgets (Other open bugs)
unspecified
All All
: Normal enhancement with 2 votes (vote)
: ---
Assigned To: Salvatore Ingala
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-12-19 20:01 UTC by DavidL
Modified: 2014-09-02 05:58 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description DavidL 2009-12-19 20:01:28 UTC
Currently, MediaWiki gadgets enable to extends the user interface.

There is no mean to let each user configure some gadget options.

It would be possible to make gadget user configuration by loading a user script file (for example, User:xxxx/gadget-config.js) before the first gadget script.
Comment 1 Krinkle 2010-07-06 19:09:55 UTC
I get your point. 

Variables set in User:Xxxx/vector.js are loaded after the gadget so they don't affect.
A way around this, for now, would be put the gadget in an addOnloadHook.

This way the gadget is postponed, thus loading after the user-script.
Comment 2 Rd232 2011-11-23 22:16:55 UTC
(In reply to comment #1)
> I get your point. 
> 
> Variables set in User:Xxxx/vector.js are loaded after the gadget so they don't
> affect.
> A way around this, for now, would be put the gadget in an addOnloadHook.
> 
> This way the gadget is postponed, thus loading after the user-script.

It's worth noting that Twinkle does this very effectively; per-user options are stored in the user's /twinkleoptions.js, and configured via a script preference panel accessible via Wikipedia:Twinkle/Preferences.
Comment 3 This, that and the other (TTO) 2012-09-04 10:29:27 UTC
Just for the benefit of people searching for bugs on this topic:

See [[mw:User:Salvatore_Ingala/Notes]] for some work Salvatore has been doing on this. 

According to https://www.mediawiki.org/w/index.php?title=Roadmap&oldid=577532#Support_2 , the dev team is aware of this work and plans to look at it at some point.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links