Show / Hide Contents

From TNG_Wiki
Revision as of 13:36, 3 November 2018 by KenRoy (talk | contribs)
Jump to navigation Jump to search

The Show Contents button Button-show-contents.png and Hide Contents button Button-hide-contents.png on the TNG WikiEditor toolbar work as a pair to add the necessary wiki syntax to show and hide contents.

The Show Contents button Button-show-contents.png is used before the text you want to hide and it generates:

<div class='mw-collapsible mw-collapsible-content' id='mw-customcollapsible-sb1'>
<span class='mw-customtoggle-sb1 mw-customtoggle-sbdiv' style='text-decoration:underline;float:right;'>&#91;Show Content&#93;</span></div>\n
<div class='mw-collapsible mw-collapsible-content mw-collapsed' id='mw-customcollapsible-sbdiv'>

and adds a [Show Contents] button that allows you to toggle the display.

The Hide Contents button Button-hide-contents.png is used after the text you want to initially hide and it generates:

<div class='mw-customtoggle-sb1 mw-customtoggle-sbdiv' style='text-decoration:underline;float:right;'>&#91;Hide Content&#93;</div></div>

and adds a [Hide Contents] button that allows you to toggle the display.


Related Links

Toggle Display