Extension:ShowMe

The ShowMe extension allows inserting a dropdown into pages, that will show different elements on the page depending on which option is selected.

This extension was created for the WikiWorks.

Usage
Use the tag. It has an optional  parameter, which can set the name and id of the element. Each line between the tags should contain an option. It must consist of the text to be shown, followed by a pipe, followed by the class name of an element (or elements) on the page which should be shown when this option is selected. While one option is selected, the elements corresponding to all other options become hidden. To avoid flashing of elements that are supposed to be hidden, you can optionally add  to every option other than the first.

Example
Text for Option 1|opt-1 And another option|opt-2 Some text shown when clicking the first option. Here goes the text shown for the second option.