Admin Forum:Template Variables inside a Gallery

Is it possible to use templates to put images into a gallery? I've tried using something to the effect of


 * and the article I'm trying to invoke it in contains this


 * So I'm trying to use the template variables in the gallery.  I don't see any reason why it shouldn't work, but it isn't.
 * Nconspicuous TALK 19:57, January 19, 2013 (UTC)

I still can't get it to work, so any thoughts would be appreciated. It seems that the gallery is treating the variable as an empty line rather than the value it is supposed to represent, but I don't know how to get around this.

Nconspicuous TALK 19:48, January 20, 2013 (UTC)

Solved. The code that I needed in the template page was this: