Board Thread:Support Requests - Getting Technical/@comment-1295676-20150824023315/@comment-24473195-20150825173754

This seems to be a roundabout way to go about doing this. One of the simplest ways of achieving this without any css or hacks is simply to use the navigation tag as originally suggested:

{{formatstuff| {{{gallery}}}} }}

Then create that template to do whatever else you need. The nice thing about the navigation tag is that it hides automatically when there is no text, and it is perfect for handling such cases.