This is a design sketch for a new module that shows/hides text depending on the current user level.
The syntax for the module would be:
[[module Private level="wikidot|member|mod|admin" password="secret" button="label"]]
...
[[else]]
This block appears because you lack the necessary privileges.
[[/else]]
[[/module]]
If button="label" is not provided, no button appears and the private content is shown by default (or the 'else' block is shown)
The original thread for this design sketch was wishlist:63 on the community site.
If this uses CSS to show/hide content, then the content is still contained within the HTML source code — so it's not truly hidden.
So if I make a challenge that if you guess the right password, you get to see my special secret, then all one would have to do is view their own HTML source code. That would be cheating!
To counter that, perhaps entering the right password lets you pull the content from the server. That way nothing is stored on your html webpage.