There are two versions.
1st version:
The code below will show the Spoiler title at the top of the spoiler text.
Code:
<div style="margin:10px 0">
<div style="margin-bottom:7px"><span style="padding:3px" class="tcat">
Spoiler</span></div>
<div>
<span style="background-color:#fff;color:#fff;border:1px solid #CCCFDD;cursor:pointer">
<span class="spoiler" onmouseover="this.style.color='#000000';" onmouseout="this.style.color=this.style.backgroundColor='#ffffff'">
{param}
</span>
</span>
</div>
</div>
*Please note this is only an edit of YdieresiS' mod. All credit goes to him.