User:Austin J. Che/Extensions/ShowHide: Difference between revisions
No edit summary |
m (User:Austin/Extensions/ShowHide moved to User:Austin J. Che/Extensions/ShowHide: Automatically moved page while renaming the user "Austin" to "Austin J. Che") |
(No difference)
|
Revision as of 15:49, 14 May 2007
This extension is deprecated. Do not use. Look at OpenWetWare:Toggle for a much cleaner solution that does not require an extension at all.
Old documentation
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>
In addition, this version of show/hide has been modified so that it works correctly when being included from within a template (probably a MediaWiki bug of not being able to recursively call the parser inside an extension within a template): http://bugzilla.wikimedia.org/show_bug.cgi?id=3896
Send bugs and comments to Austin Che. Other extensions including sources can be found at User:Austin J. Che/Extensions.