Since MediaWiki 1.23/wmf3 has been deployed to all Wikimedia sites, the old script in zhwiki didn't work any more.
The zhwiki's collapsible behavior makes the whole header bar clickable and shows a helpful text indicating the collapse state. Thus, the Navbox and many templates can be easily expand by click the hotspot(header bar) instead of finding the "show/hide" link to click. What do you think of making this behavior as default?
And now, because we want to make use of upstream jQuery.makecollapsible but not break the local collapsible behavior, I think the best way to fix this is adding some configs for jQuery.makecollapsible.
Last, I'd like to see Extension:Scribunto's global module.. Therefore we can unify some common templates globally for unified user experience.
On Wed, 27 Nov 2013 18:12:53 +0100, Erick Guan fantasticfears@gmail.com wrote:
The zhwiki's collapsible behavior makes the whole header bar clickable and shows a helpful text indicating the collapse state. Thus, the Navbox and many templates can be easily expand by click the hotspot(header bar) instead of finding the "show/hide" link to click. What do you think of making this behavior as default? And now, because we want to make use of upstream jQuery.makecollapsible but not break the local collapsible behavior, I think the best way to fix this is adding some configs for jQuery.makecollapsible.
Can't you do that already? I made a simple mockup right now: https://pl.wikipedia.org/w/index.php?title=Wikipedysta:Matma_Rex/brudnopis&a... - try clicking on the header. I think this could be easily applied to navboxes.
On 2013-11-27, at 22:07, Bartosz Dziewoński matma.rex@gmail.com wrote:
On Wed, 27 Nov 2013 18:12:53 +0100, Erick Guan fantasticfears@gmail.com wrote:
The zhwiki's collapsible behavior makes the whole header bar clickable and shows a helpful text indicating the collapse state. Thus, the Navbox and many templates can be easily expand by click the hotspot(header bar) instead of finding the "show/hide" link to click. What do you think of making this behavior as default? And now, because we want to make use of upstream jQuery.makecollapsible but not break the local collapsible behavior, I think the best way to fix this is adding some configs for jQuery.makecollapsible.
Can't you do that already? I made a simple mockup right now: https://pl.wikipedia.org/w/index.php?title=Wikipedysta:Matma_Rex/brudnopis&a... - try clicking on the header. I think this could be easily applied to navboxes.
-- Matma Rex
Be careful in this case to not cause a user experience regression. It isn't obvious that the header can be clicked to expand (or collapse) the content.
Making the header clickable as a whole is imho a nice option, and it's great that makeCollapsible supports this already (by using the header itself as a custom toggle). However, depending on how your custom toggle is styled, there should imho be a separate toggle or other kind of user interface component to indicate collapsibility.
-- Krinkle
Navbox https://zh.wikipedia.org/wiki/Template:Navbox is a table. And the code search the first row's child for 'mw-collapsible-toogle'. Thus we need to customize the local Navbox module. The good news is that is easy. Thanks for your help.
https://zh.wikipedia.org/wiki/Template:HideH zhwiki is familiar with this kind of indicator which shows a "show/hide" text with a arrow. The HideH template itself works with HideF for hiding some content in it.
On Thu, Nov 28, 2013 at 3:47 PM, Krinkle krinklemail@gmail.com wrote:
On 2013-11-27, at 22:07, Bartosz Dziewoński matma.rex@gmail.com wrote:
On Wed, 27 Nov 2013 18:12:53 +0100, Erick Guan fantasticfears@gmail.com
wrote:
The zhwiki's collapsible behavior makes the whole header bar clickable
and
shows a helpful text indicating the collapse state. Thus, the Navbox and many templates can be easily expand by click the hotspot(header bar) instead of finding the "show/hide" link to click. What do you think of making this behavior as default? And now, because we want to make use of upstream jQuery.makecollapsible
but
not break the local collapsible behavior, I think the best way to fix
this
is adding some configs for jQuery.makecollapsible.
Can't you do that already? I made a simple mockup right now:
https://pl.wikipedia.org/w/index.php?title=Wikipedysta:Matma_Rex/brudnopis&a... try clicking on the header. I think this could be easily applied to navboxes.
-- Matma Rex
Be careful in this case to not cause a user experience regression. It isn't obvious that the header can be clicked to expand (or collapse) the content.
Making the header clickable as a whole is imho a nice option, and it's great that makeCollapsible supports this already (by using the header itself as a custom toggle). However, depending on how your custom toggle is styled, there should imho be a separate toggle or other kind of user interface component to indicate collapsibility.
-- Krinkle
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org