Page MenuHomePhabricator

Add thumbnail / width option to Special:FilePath (like thumb.php?w=SIZE and [[File:Img|SIZEpx]])
Closed, ResolvedPublic

Description

When building plugins that use material from commons (such as from WordPress) it would be ideal not to

  • Not have to hardcode thumbpath to upload.wikimedia which breaks in case of redirects
  • Not have to make an API-call to get the current path

Reason for getting path is mostly because a file could become a redirect and a normal thumb will brake, while Special:FilePath and API calls stay functional because they resolve redirects.

Syntax:

/wiki/Special:FilePath/Image.jpg/200

/w/index.php?title=Special:FilePath&file=Image.jpg&width=200


Version: 1.18.x
Severity: enhancement

Details

Reference
bz26735

Event Timeline

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