User:Austin J. Che/Extensions/ShowHide: Difference between revisions
From OpenWetWare
Jump to navigationJump to search
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
'''This extension is | '''This extension is no longer installed on this wiki.''' Look at [[OpenWetWare:Toggle]] for a much cleaner solution that does not require an extension at all. | ||
To move to use toggle instead of showhide (for the most common case), replace | |||
<pre> | |||
<showhide> | |||
text1 __HIDER__<hide>text to be hidden</hide> | |||
</showhide> | |||
</pre> | |||
with | |||
<pre> | |||
text1 {{hide|1=text to be hidden}} | |||
</pre> | |||
==Old documentation== | ==Old documentation== | ||
Line 15: | Line 26: | ||
</showhide> | </showhide> | ||
</pre> | </pre> | ||
---- | ---- | ||
Send bugs and comments to [[Austin Che]]. Other extensions including sources can be found at [[../]]. | Send bugs and comments to [[Austin Che]]. Other extensions including sources can be found at [[../]]. |
Latest revision as of 09:50, 29 September 2007
This extension is no longer installed on this wiki. Look at OpenWetWare:Toggle for a much cleaner solution that does not require an extension at all.
To move to use toggle instead of showhide (for the most common case), replace
<showhide> text1 __HIDER__<hide>text to be hidden</hide> </showhide>
with
text1 {{hide|1=text to be hidden}}
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>
Send bugs and comments to Austin Che. Other extensions including sources can be found at User:Austin J. Che/Extensions.