Page MenuHomePhabricator

Make DynamicPageList (aka Intersection) optionally output <gallery>
Closed, ResolvedPublic

Description

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


Version: unspecified
Severity: enhancement

Attached:

Details

Reference
bz21669

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:54 PM
bzimport set Reference to bz21669.
bzimport added a subscriber: Unknown Object (MLST).

brian.mcneil wrote:

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.

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}} )

Marking this FIXED as of r60800.