Topic on Project:Support desk

Collapsable elements help

2
184.96.214.75 (talkcontribs)

If I have multiple collapsible elements on a page, is it possible to have any other expanded elements collapse when you expand a new one?


Say you have element A, B and C. All three start off collapsed. You click on B and it expands. Then you click A and it expands while collapsing B. Likewise if you then click C, it will expand C and simultaneously collapse A.


I have found the posts regarding "collapse or expand all" buttons, but none that function as I've described.


Thanks in advance


Ciencia Al Poder (talkcontribs)

What you describe is an "accordion" effect. This is not implemented in standard MediaWiki. If you know JavaScript coding you could write a script yourself to do that.

Reply to "Collapsable elements help"