Jump to content
Wikimedia Meta-Wiki

Toc hide option hack

From Meta, a Wikimedia project coordination wiki
This article is considered of unknown usefulness and may be a candidate for deletion.
If you want to revive discussion regarding the subject, you may try using the talk page or start a discussion at Meta:Babel.

Toc hide option hack is a hack for the TOC (automatic table of contents) scheme to allow an option in preferences for a closed TOC as default. It currently shows as open. I think this should be an option.

Inline with this should be a mouseover option for showing/hiding the TOC, allowing for rollover and click within the open TOC div/layer.

  • sounds good to me. I noticed as well that when you have more than one TOC on a page, only the first one can be hiddden. Others stay open all the time and clicking the "hide" link on the TOC toggles the first one. --Dave
  • That problem could actually be avoided by altering the JavaScript triggered by the link to climb up the DOM tree from the link to the TOC box. If that's considered a good idea, I'll volunteer to implement it. --Jesdisciple 22:23, 14 November 2008 (UTC) [reply ]
  • I simply use <body onload="toggleToc()"> on my template. It hides the TOC automatically. It toggles the TOC even if the page is simply reloaded... But it isn't a big problem.

AltStyle によって変換されたページ (->オリジナル) /