Last modified: 2010-03-13 09:44:38 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T23981, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 21981 - Auto file name/label feature for <gallery>
Auto file name/label feature for <gallery>
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikisource.org/wiki/File:Ro...
: patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-01-01 06:05 UTC by billinghurst
Modified: 2010-03-13 09:44 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
patch to add parameter showfilename to <gallery> (511 bytes, patch)
2010-01-01 06:12 UTC, Bawolff (Brian Wolff)
Details
adds parser tests for gallery (3.83 KB, patch)
2010-01-08 02:34 UTC, Bawolff (Brian Wolff)
Details

Description billinghurst 2010-01-01 06:05:15 UTC
It would be excellent for the tag &lt;gallery&gt; to have a parameter that automatically applied the names of the individual files within the gallery respectively below each file.  On the example page, if the file names could be applied rather than having to manually set each.  If a file was manually named, then the tag would not do nothing in the field.

Not sure whether it is asking to much for also for these new filenames to also be able to be hotlinked, either by default (preference) or by addition of another option.
Comment 1 Bawolff (Brian Wolff) 2010-01-01 06:12:17 UTC
Created attachment 6913 [details]
patch to add parameter showfilename to <gallery>

This is a patch that somewhat does what the bug is requesting, adds a parameter showfilename to the gallery tag, such that:
<gallery showfilename>
Image:SomeImage.png
</gallery>
Will add the image file name to the gallery (like on category pages). However it will do this in addition to (not instead of) the individual captions for each image.
Comment 2 Priyanka Dhanda 2010-01-07 23:05:38 UTC
Just looked at the patch. I think it looks good. Makes sense that explicit captions are still displayed. I'll check it in. 
-p
Comment 3 Chad H. 2010-01-07 23:16:09 UTC
+need-parsertest, for both variants of behavior.
Comment 4 Bawolff (Brian Wolff) 2010-01-08 02:34:27 UTC
Created attachment 6936 [details]
adds parser tests for gallery

Patch to add parser tests for gallery per Comment 3. 

I was somewhat confused by how the parser tests work, so i'm not really sure if i did that right
Comment 5 Raimond Spekking 2010-03-13 09:44:38 UTC
Patch applied with r63671.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links