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 <[email protected]> wrote: > On 2013-11-27, at 22:07, Bartosz Dziewoński <[email protected]> wrote: > > > On Wed, 27 Nov 2013 18:12:53 +0100, Erick Guan <[email protected]> > 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&oldid=37990024- > 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 > [email protected] > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > -- Regards, Erick Guan/管啸 (fantasticfears) _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
