Page MenuHomePhabricator

Skin specific gadgets
Closed, ResolvedPublic

Description

Many gadgets today work or are intended to work only in some specific skins. It can be because the gadget "fixs" some issue in a specific skin, or because it is legacy gadget working only in some specific skins. (As you can see in [[:en:Special:Preferences#mw-prefsection-gadgets]] by searching "monobook" or "vector" there are already many scripts that work only in some skins).

Currently it is possible to mention specific rights needed for the user in gadgets-defintion in the format of:
gadget[rights=...]

I would like to request the same for skin - to declare for a gadget that works only in one or more skins.

This can be achieved easily by adding a small if in Gadget::isAllowed + another case in Gadget::newFromDefinition.


Version: unspecified
Severity: enhancement

Details

Reference
bz31414

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 21 2014, 11:49 PM
bzimport set Reference to bz31414.
bzimport added a subscriber: Unknown Object (MLST).

There's one difficulty: if a user has changed skin pref in Special:Preferences, then proceed to gadget prefs without saving skin pref first, gadgets for the new skin cannot be shown...

I didn't think about that, but with no special handling, it would behave the same as quickbar option in skin selection:
When selecting cologneblue or standard skin, only after saving the new skin, a new option for selecting the position of the quick bar is displayed.