Last modified: 2013-07-12 23:53:25 UTC
I couldn't find a way to set a gadget to be enabled for users with right1 OR right2. I want to enable Twinkle for both rollbackers and patrollers. If I use rights=patrol,rollback The gadget will be enabled only for users who have both rights simultaneously. I even tried defining the gadget twice: * Twinkle[ResourceLoader|rights=rollback|dependencies=mediawiki.util,jquery.ui.dialog,jquery.tipsy]|morebits.js|morebits.css|Twinkle.js * Twinkle[ResourceLoader|rights=patrol|dependencies=mediawiki.util,jquery.ui.dialog,jquery.tipsy]|morebits.js|morebits.css|Twinkle.js But only the last definition will be effective. (In the example above, only users with patrol right will see twinkle in their preferences) It would be helpful if it was possible to define rights using some Boolean operators instead of comma-separated list.
You could create an empty Twinkle2 gadget which depends on Twikle, but what you want should be possible to do.