Forum:Template inside gallery tag?

Is there a way to put a template inside the gallery tag? I can't seen to do it as the template is ignored when inside the tag. I have a sample up at. I would rather not go the route of using a different template to create the gallery since the tag does everything that I'd need and more. Scormus 16:32, June 13, 2010 (UTC)


 * I'm not sure why you want to use a gallery. You should just use a table. If you use templates in the gallery, even if it worked, the upload feature of the gallery won't work and that's the main reason to use one. -- Fandyllic  (talk &middot; contr) 11:49 AM PST 13 Jun 2010
 * What you need is something like this:

{{#tag:gallery }}
 * {{your template
 * optional parameter=value
 * some don't like templates, tables and stuff inside them, so you have to use  instead. {{User:Ose/Sig}} 19:05, June 13, 2010 (UTC)
 * Thanks, this works great. For anybody that has a similar problem, the #tag is documented in Help:Magic words.  In my specific case, I'd rather not hand code tables since the gallery already has the features I need.  In the template context where the images are being pulled from data pages, uploading directly to the gallery doesn't makes sense anyway.  So, I'm willing to give it up for the convenience of using other people's code and for the ability for future users to easily reformat the galleries using a standard that they will be familiar with. Scormus 02:54, June 14, 2010 (UTC)