Collapse and expand wiki page content: Difference between revisions
| Line 10: | Line 10: | ||
You can also change the word [Expand] used for the text: | You can also change the word [Expand] used for the text: | ||
<div class="mw-collapsible mw-collapsed" data-expandtext="Show more" data-collapsetext="Show less">Additional information | <div class="mw-collapsible mw-collapsed" data-expandtext="Show more" data-collapsetext="Show less">Additional information | ||
<div class="mw-collapsible-content">This content is hidden until the user clicks the '' | <div class="mw-collapsible-content">This content is hidden until the user clicks the ''Show more'' text above. | ||
<syntaxhighlight lang="html><div class="mw-collapsible mw-collapsed" data-expandtext="Show more" data-collapsetext="Show less"> | <syntaxhighlight lang="html><div class="mw-collapsible mw-collapsed" data-expandtext="Show more" data-collapsetext="Show less"> | ||
Additional information | Additional information | ||