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)
 * Well it's good that it works. Maybe you can use Special:Contact to get a feature to disable the add photo button, since you just want the layout features. It isn't very nice to have that button there, if using will screw up your gallery. -- Fandyllic  (talk &middot; contr) 11:22 PM PST 13 Jun 2010
 * Yup, it would be best if that button didn't show up, I'll send out a request about it in a bit. Additionally, I just came across an older forum post about a similar problem here that also uses the #tag solution but with the #tag inside the template. I missed it in my previous searches. Scormus 07:20, June 14, 2010 (UTC)

To remove the button use this: .wikia-gallery-add { display: none !important; } And it will be removed. Max21 17:52, June 14, 2010 (UTC)
 * is there a way to add this other than across all the pages in a site? I could see where some galleries should have this and others not within the scope of an entire wiki, but I only know how to add it globally or per user. Scormus 21:38, June 17, 2010 (UTC)
 * the best I can come up with is to insert into Common.css something like

.page-Test_gallery .wikia-gallery-add { display: none !important; }
 * for every page that needs the tags removed. I could also default to off and add something similar for the pages that need the add image button instead. Personally, I was hoping to find a more granular solution that was accessible from outside the major css files. Scormus 22:32, June 18, 2010 (UTC)