Last modified: 2010-01-07 19:45:06 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 T23669, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 21669 - Make DynamicPageList (aka Intersection) optionally output <gallery>
Make DynamicPageList (aka Intersection) optionally output <gallery>
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
DynamicPageList (Other open bugs)
unspecified
All All
: Normal enhancement with 3 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-11-28 05:59 UTC by Bawolff (Brian Wolff)
Modified: 2010-01-07 19:45 UTC (History)
3 users (show)

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


Attachments
patch to add mode=gallery support to DPL (3.78 KB, patch)
2009-11-28 05:59 UTC, Bawolff (Brian Wolff)
Details

Description Bawolff (Brian Wolff) 2009-11-28 05:59:08 UTC
Created attachment 6830 [details]
patch to add mode=gallery support to DPL

This is a patch to the DynamicPageList extension (aka the intersection extension, as in the version used on wikimedia) to add an option to output the list of pages as an image gallery (the functionality was suggested on irc).

It add the following parameters to <DynamicPageList> (which only have effect when mode=gallery):
    * imagewidth
    * imageheight
    * imagesperrow
    * gallerycaption
    * galleryshowfilesize
    * galleryshowfilename

In addition, it also adds gallery as a valid output mode, and changes the interpertation addfirstcategorydate parameter when mode=gallery.

I have done some testing of this on my private mediawiki install, and it all seems to work.

Please bear in mind i am new to the world of php and mediawiki extensions, and would appreciate comments, critisisms, etc.

Cheers,
Bawolff
Comment 1 Brian McNeil 2009-11-28 10:15:52 UTC
This patch is a follow-on to a WikiVoices discussion. The general idea is to make this available to Commons (possibly Wikipedia) so that galleries of featured pictures are near-automatically maintained.
Comment 2 Bawolff (Brian Wolff) 2009-12-29 09:31:06 UTC
See also Bug 21963, which has a patch that integrates the patch on this bug, but changes the gallerycaption parameter to expand certain variables (stuff like {{CURRENTYEAR}} )
Comment 3 Chad H. 2010-01-07 19:45:06 UTC
Marking this FIXED as of r60800.

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


Navigation
Links