Last modified: 2013-07-25 12:41:08 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 8480 - Support multi-page DjVu files and other image handler parameters in image galleries
Support multi-page DjVu files and other image handler parameters in image gal...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Low enhancement with 4 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: Wikisource
  Show dependency treegraph
 
Reported: 2007-01-04 03:15 UTC by bayo.fr
Modified: 2013-07-25 12:41 UTC (History)
8 users (show)

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


Attachments

Description bayo.fr 2007-01-04 03:15:43 UTC
We can display a page of a DJVU file with the syntaxe

[[Image:Katia.djvu|page=10|thumb]]

but impossible to use it on a gallery

Maybe it can became usefull to allow it on the gallery

<gallery>
Image:Katia.djvu|page=1|Cover
Image:Katia.djvu|page=2|Introduction
Image:Katia.djvu|page=3|The author explain...
Image:Katia.djvu|page=4|Engraving of...
</gallery>
Comment 1 Rob Church 2007-01-04 13:20:58 UTC
I'm concerned that the syntax proposed would break existing gallery uses, and
would be more inclined to put the "page=" bit at the end.
Comment 2 billinghurst 2010-01-01 05:50:59 UTC
It would be good to have an easy means to display pages of a djvu in a gallery in some ready format.  It becomes a right nuisance to find the right page by either means.
Comment 3 billinghurst 2010-01-26 04:08:00 UTC
(In reply to comment #1)
> I'm concerned that the syntax proposed would break existing gallery uses, and
> would be more inclined to put the "page=" bit at the end.

Instead of "page=" could look to utilise the alternate syntax "/page" ? 
eg. File:Long filename.djvu/7, which is utilised elsewhere. like in [[:mw:Extension:Proofread Page]]
Comment 4 Quim Gil 2013-04-13 17:15:58 UTC
This enhancement request refers to djvu files but actually it needs to be applied in the parser. Moving to the right component with the hope that it will receive more feedback.
Comment 5 Gerrit Notification Bot 2013-04-25 15:11:20 UTC
Related URL: https://gerrit.wikimedia.org/r/60858 (Gerrit Change Ib831d89ed8676deb2f44238ff9a23ce58ad4d2df)
Comment 6 Bawolff (Brian Wolff) 2013-04-25 15:13:21 UTC
(In reply to comment #5)
> Related URL: https://gerrit.wikimedia.org/r/60858 (Gerrit Change
> Ib831d89ed8676deb2f44238ff9a23ce58ad4d2df)

See, this is what happens when people are naggy on irc ;)
Comment 7 Sumana Harihareswara 2013-07-05 15:40:41 UTC
It seems like there are no particular objections to merging this patchset?
Comment 8 billinghurst 2013-07-06 00:36:31 UTC
I think that it would be fantastic.

Can I note that it is not evident to a numbskull like myself what was actually decided to be done in the code.  I think that it may be an implementation of "page= " and it seems that it may also have some time handler information too, but once it goes live, I am not sure how one might handle the second.
Comment 9 Bawolff (Brian Wolff) 2013-07-06 00:48:21 UTC
Basically gallery tags now reuses some of the code that handles parameters of thumbnails

So you can do

<gallery>
Mydoc.pdf|page=5|caption here
MyTiff.tif|lossy|caption
</gallery>

Or basically any other image type specific parameter (so you could disable the full screen button on ogv or set a language on svg once the svg lang support is fixed.)
Comment 10 dacuetu 2013-07-25 12:41:08 UTC
I have tried it on ca.wikisource.org and it works great :)

For instance for the first file of the gallery, page 6 is being displayed:
https://ca.wikisource.org/wiki/Plantilla:Novetats-galeria

Good job, Bawolff!

Cheers,
Micru

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


Navigation
Links