@sijad For future reference, if you add a title for the spoiler I recommend naming the bbcode parameter explicitely in the definition, e.g. [SPOILER title={TEXT2}]{TEXT}[/SPOILER]
. If you don't name it, it'll be called spoiler
.
The value will be available in the template either as @title
wherever XPath is expected or as {TEXT2}
anywhere else.