collapsible section

Jump to: navigation, search

Hi! I was wondering if there was a way to add a collapsible section to a wiki page. I have a few exercises posted and it would be beneficial to have the solution hidden at first so they can attempt to solve the problem on their own. Thanks.

18:14, 10 January 2011

Hi Cameron,

Thanks for your question; we just enabled "collapsible tables", which should give you the functionality that you are seeking. Below is code for a simple table that might work for you. Note the header is always shown but the body is collapsed by default:

{|class="collapsible collapsed wikitable"
|-
! Solution to Problem 1
|-
| Answer would go here 
|}

This code generates the following table:

Please let me know if this works for you or if I can answer any other questions.

Cheers,

20:19, 10 January 2011