I have another flavor for that: <a href="http://es.pokemon.wikia.com/wiki/MediaWiki:Common.js/Clases/PlantillaPlegable.js">http://es.pokemon.wikia.com/wiki/MediaWiki:Common.js/Clases/PlantillaPlegable.js</a><br><br>A unique class for all stuff. Only need to call it with PlantillaPlegable(Element), or PlantillaPlegable(Element, true) to be auto-collapsed when called. Because is only used for the wiki I run, the code functions are in spanish, and only works with tables, but the collapsed tables remember their width so when collapsed don&#39;t reduce their width, and allows the &quot;collapse&quot; button to be manually placed and styled inside the table first row if needed.<br>
<br>Maybe could be an improvement of the code.<br><br>-Jesús<br>-Ciencia Al Poder<br><br><br><div class="gmail_quote">2009/6/15 George Pribul (Kirkburn) <span dir="ltr">&lt;<a href="mailto:kirkburn@googlemail.com">kirkburn@googlemail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">If I am reading correctly, this is an update for the JS shown on <a href="http://www.wikia.com/wiki/Help:Dynamic_navigation" target="_blank">http://www.wikia.com/wiki/Help:Dynamic_navigation</a> ?<br>
<br>If it supports all the original functionality and is as good as you make it sound, it sounds like it could be a great recommendation for our users. :)<br>

<br clear="all">-------------------------------------<br>George Pribul (Kirkburn)<br>Associate Product Manager,<br>Wikia Inc.<br>
<br><br><div class="gmail_quote">2009/6/15 Daniel Friesen <span dir="ltr">&lt;<a href="mailto:lists@danielfriesen.name" target="_blank">lists@danielfriesen.name</a>&gt;</span><div><div></div><div class="h5"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


Just thought I&#39;d let everyone know I rewrote the ShowHide (Wikipedia&#39;s<br>
collapsible tables and NavFrame code) to make use of jQuery which Wikia<br>
is now using.<br>
<br>
The resulting code is around 100 lines shorter than the WP code<br>
(basically half the size), supports the &quot;collapsed&quot; class in BOTH<br>
collapsible tables and NavFrame (The code being circulated around Wikia<br>
doesn&#39;t seam to support individual pre-collapsed NavFrames), works with<br>
whatever elements you want it to (NavFrame can work on things other than<br>
just divs), and loads quickly unlike the original WP code (jQuery&#39;s<br>
ready event is more reliable than MediaWiki&#39;s built in addOnloadHook<br>
which sometimes can actually end up being called considerably late in<br>
comparison; I tested using MW&#39;s onload and jQuery&#39;s onload on separate<br>
types of show/hide and jQuery fired considerably earlier than the MW<br>
code which fired quite late after the page was already loaded).<br>
<br>
The code is available on the dev wiki and can be easily included into<br>
any wiki using the short snippet: |importScriptPage(&#39;ShowHide/code.js&#39;,<br>
&#39;dev&#39;);|<br>
<a href="http://dev.wikia.com/wiki/ShowHide" target="_blank">http://dev.wikia.com/wiki/ShowHide</a><br>
<br>
--<br>
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [<a href="http://daniel.friesen.name" target="_blank">http://daniel.friesen.name</a>]<br>
<br>
_______________________________________________<br>
Wikia Community Mailing List.<br>
<br>
For information and subscriptions see<br>
<a href="http://lists.wikia.com/mailman/listinfo/wikia-l" target="_blank">http://lists.wikia.com/mailman/listinfo/wikia-l</a><br>
<br>
Need staff help? Try <a href="http://www.wikia.com/wiki/Special:Contact" target="_blank">http://www.wikia.com/wiki/Special:Contact</a><br>
</blockquote></div></div></div><br>
<br>_______________________________________________<br>
Wikia Community Mailing List.<br>
<br>
For information and subscriptions see<br>
<a href="http://lists.wikia.com/mailman/listinfo/wikia-l" target="_blank">http://lists.wikia.com/mailman/listinfo/wikia-l</a><br>
<br>
Need staff help? Try <a href="http://www.wikia.com/wiki/Special:Contact" target="_blank">http://www.wikia.com/wiki/Special:Contact</a><br></blockquote></div><br>