Here are some simple examples:
This will display the default text “Click to display ▼” when the text is hidden, and “Click to hide ▲” when it's visible.
Same as above, but with “Click here” whenever the text is hidden or visible.
As you can see, you may specify the texts that should be displayed, and DokuWiki formatting may be use.