Last modified: 2012-04-16 17:34:42 UTC
Created attachment 10146 [details] patch I have created a patch which adds an optional parameter |link= to the <gallery> tag. Here are a couple of examples. <gallery> File:20120106_001.jpg|link=[[DisplayLine]] </gallery> <gallery> File:20120106_001.jpg|my caption|alt=my alt text|link=http://bugzilla.wikimedia.org </gallery> this would cause the link on the thumbnails rendered by the gallery tag to link to a custom page/url instead of the actual media/image. The patch is fairly small, only touches two files. I would personally have commited these files to trunk, however i don't have core commit access, and i figured submitting it as a patch would carry less overhead.
Thanks for the patch, Kim! I made you a member of the group that can edit Bugzilla bugs, so if you have any future patches to core (between now and the Git migration) you can add the "patch" and "need-review" keywords to signal that your patch awaits inspection.
Would probably be better if this patch is implemented sooner rather than later, as it is sensitive to code change.
Added patch for code review. https://gerrit.wikimedia.org/r/#change,4609
Merged in https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=commit;h=c9ebb1698c43c1df2da963958e6d1574383bf253