Page MenuHomePhabricator

Integrate gadgets into standard preference sections
Open, LowPublic

Description

For the standard user the gadgets are just a collection of extra settings. He doesn't / shouldn't bother if its a MediaWiki core feature or a user script (while user script is only half correct since it's still enabled by admin / sysops though). The user instead needs to ask himself whatthe heck Gadgets are and why they are not logically sorted under the other sections but srted into h2 sections on the page (see Wikipedia).

MediaWiki:Gadgets-definition should be able to let you list gadgets into the standard sections or create new sections for it.

E.g. "Make text fields (e.g. the edit form) use a sans-serif font instead of a monospace font." would be better placed in the "Editing" section. Just my feelings. Example set-up of the Gadgets-definition:

== Editing ==
* wikEd|wikEd.js
* textareasansserif|textareasansserif.css

== Interface ==
* exlinks|exlinks.js
* purgeTab|purgeTab.js

== Misc ==
== library-gadgets ==
* JSL|JSL.js

The checkboxes for wikEd and textareasansserif would be added at the end of the Editing section
Interface would be a new section at the end (but before the standard Misc imo) including the stated two Gadgets.
At the end of the standard Misc section a new h2 would be added with JSL below.
If no "section" was defined in the Gadgets-definition, create "Gadgets" as is handled atm.

Makes sense to me ;)


Version: unspecified
Severity: enhancement

Details

Reference
bz18113

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:34 PM
bzimport set Reference to bz18113.
bzimport added a subscriber: Unknown Object (MLST).

This has long been implemented as far as I know.
H2 headers can be defined with

browsing-gadgets

Which will then use the contents of MediaWiki:Gadget-section-browsing-gadgets, as the header for the particular section.

Doh, I suddenly understand what your intention is. I though you meant the standard sections of the Gadgets list, but you mean the sections of all the preferences, so "User profile, Appearance, Date and time, Editing, Recent changes, Watchlist, Search options, Misc"

Yep. But I see it might cause trouble integrating them and that may not be worth it. But the fact still stands: The user shouldn't be bothered.

"Don't make me think".

Until this is solved, there is a workaround for this on Wikimedia Commons. See:

Thanks. I'm not sure how to use the options on http://en.wikipedia.org/wiki/commons:Template:Gadget-desc
Can you point me to a gadget on http://commons.wikimedia.org/wiki/Special:Gadgets which uses this option?

(In reply to comment #5)

Thanks. I'm not sure how to use the options on
http://en.wikipedia.org/wiki/commons:Template:Gadget-desc
Can you point me to a gadget on
http://commons.wikimedia.org/wiki/Special:Gadgets which uses this option?

The workaround is used (at least) by these options:

  • Use the old-style upload form layout.
  • Use old-style edit tools

which are available on section "Editing" of [[commons:Special:Preferences]]
(http://commons.wikimedia.org/wiki/Special:Preferences#preftab-3)

FYI: The feature was implemented after discussed in this topic:
http://commons.wikimedia.org/w/index.php?title=MediaWiki_talk:Common.js#Easy_configuration

He7d3r renamed this task from Integrate gadget into standard pref sections to Integrate gadgets into standard preference sections.Mar 16 2015, 11:11 AM
He7d3r updated the task description. (Show Details)
He7d3r set Security to None.

Until this is solved, there is a workaround for this on Wikimedia Commons.

That doesn't exist anymore, because JavaScript is not executed on Special:Preferences anymore (T???? / commons:Template talk:Gadget-desc#|page broken?).