https://bugzilla.wikimedia.org/show_bug.cgi?id=70762

            Bug ID: 70762
           Summary: [makeCollapsible.js] Provide an option to let the
                    initial state depend on the number of collapsible
                    elements
           Product: MediaWiki
           Version: 1.24-git
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: Unprioritized
         Component: JavaScript
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
       Web browser: ---
   Mobile Platform: ---

Many wikis have some code in their MediaWiki:Common.js to make elements
collapsible with an additional feature that jquery.makeCollapsible doesn't
have: Whether an element is initially collapsed or not depends on the number of
such elements, if there are many either all or all but the first few are
collapsed, if there are only a few they are initially uncollapsed. Just three
examples:

* [[MediaWiki:Common.js]] (search for autoCollapse)
* [[de:MediaWiki:Common.js]] (search for showDefaultCount)
* http://nethackwiki.com/wiki/MediaWiki:Common.js/showhide.js

It would be nice if jquery.makeCollapsible supported this feature natively. The
number how many elements are "few" should be user-configurable, a hidden user
option prefixed with "userjs-" is probably enough (can be set permanently via
API or just on client side per User:/common.js). I'm not sure whether all
elements should be collapsed or just all but the first few (as implemented in
en.wikipedia), or perhaps even both (of course I have a personal opinion on
that, but as I'm German and like to play nethack I'm a bit biased).

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to