User:Austin J. Che/Extensions/ShowHide

From OpenWetWare
Revision as of 21:29, 11 March 2006 by Austin J. Che (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

ShowHide

This is a modified version of the ShowHide extension that adds show all and hide all functionality. The text __SHOWALL__ and __HIDEALL__ inside the showhide tags will be expanded to links in a similar manner like __HIDER__. These links show or hide ALL the sections on the current page. For example:

 <showhide>
 text1 __HIDER__<hide>hide1</hide>
 </showhide>
 <showhide>
 text2 __HIDER__<hide>hide2</hide>
 </showhide>
 <showhide>
 __SHOWALL__ __HIDEALL__
 </showhide>

gives this:

<showhide> text1 __HIDER__<hide>hide1</hide> </showhide> <showhide> text2 __HIDER__<hide>hide2</hide> </showhide> <showhide> __SHOWALL__ __HIDEALL__ </showhide>


Send bugs and comments to Austin Che. Other extensions including sources can be found at User:Austin J. Che/Extensions.