Last modified: 2014-05-29 20:19:40 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 T16788, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 14788 - Support linking to the image description page of a specific "page" of an image, using wiki internal link syntax
Support linking to the image description page of a specific "page" of an imag...
Status: NEW
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: C. Scott Ananian
:
Depends on:
Blocks: Wikisource
  Show dependency treegraph
 
Reported: 2008-07-11 01:40 UTC by Hesperian
Modified: 2014-05-29 20:19 UTC (History)
8 users (show)

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


Attachments

Description Hesperian 2008-07-11 01:40:12 UTC
I can display a page of a DjVu file with syntax

[[Image:Coloured Figures of English Fungi or Mushrooms.djvu|page=9|thumb]]

but if I want to create a link to that page, the obvious syntax,

[[:Image:Coloured Figures of English Fungi or Mushrooms.djvu|page=9|this]]

does not work.
Comment 1 John Mark Vandenberg 2011-09-25 02:09:39 UTC
see also bug 4198
Comment 2 Bawolff (Brian Wolff) 2012-03-05 21:19:19 UTC
Changing component as this also applies to pdfs and any other paged media format.


For actually solving this, i'm not sure what the best choice of syntax here would be (note, I'm saying this without actually looking at the code, so this doesn't reflect how difficult any of these choices might be). [[:Image:Coloured Figures of English Fungi or Mushrooms.djvu|page=9|this]] seems a little odd, because as it stands we do not allow parameters for internal links in any case other than an image embed link. I'm not sure if we should start now. OTOH, I'm not sure what else there is - [[:Image:Coloured Figures of English Fungi or Mushrooms.djvu/9]] seems rather ugly (and then would we expect [[Image:Coloured Figures of English Fungi or Mushrooms.djvu/9]] to embed page 9. Would this have future compatability issues with some other use for image subpages [seems unlikely].)
Comment 3 Andre 2013-03-30 12:26:56 UTC
(In reply to comment #2)
> Changing component as this also applies to pdfs and any other paged media
> format.
> 
> 
> For actually solving this, i'm not sure what the best choice of syntax here
> would be (note, I'm saying this without actually looking at the code, so this
> doesn't reflect how difficult any of these choices might be).
> [[:Image:Coloured
> Figures of English Fungi or Mushrooms.djvu|page=9|this]] seems a little odd,
> because as it stands we do not allow parameters for internal links in any
> case
> other than an image embed link. I'm not sure if we should start now. OTOH,
> I'm
> not sure what else there is - [[:Image:Coloured Figures of English Fungi or
> Mushrooms.djvu/9]] seems rather ugly (and then would we expect
> [[Image:Coloured
> Figures of English Fungi or Mushrooms.djvu/9]] to embed page 9. Would this
> have
> future compatability issues with some other use for image subpages [seems
> unlikely].)


Can't we just use [[:File:filename.extension|linkname]]? In my mediawiki installation this works fine. The only problem is when you go to file page, it says there is no page linking that file, what is not true.
Comment 4 Bawolff (Brian Wolff) 2013-03-30 16:44:48 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Changing component as this also applies to pdfs and any other paged media
> > format.
> > 
> > 
> > For actually solving this, i'm not sure what the best choice of syntax here
> > would be (note, I'm saying this without actually looking at the code, so this
> > doesn't reflect how difficult any of these choices might be).
> > [[:Image:Coloured
> > Figures of English Fungi or Mushrooms.djvu|page=9|this]] seems a little odd,
> > because as it stands we do not allow parameters for internal links in any
> > case
> > other than an image embed link. I'm not sure if we should start now. OTOH,
> > I'm
> > not sure what else there is - [[:Image:Coloured Figures of English Fungi or
> > Mushrooms.djvu/9]] seems rather ugly (and then would we expect
> > [[Image:Coloured
> > Figures of English Fungi or Mushrooms.djvu/9]] to embed page 9. Would this
> > have
> > future compatability issues with some other use for image subpages [seems
> > unlikely].)
> 
> 
> Can't we just use [[:File:filename.extension|linkname]]? In my mediawiki
> installation this works fine. The only problem is when you go to file page,
> it
> says there is no page linking that file, what is not true.

It would be listed at special:whatlinkshere. Only file embeddings are listed on thr filepage. However I think you miss the point. The original poster wants to link to a specific page of a file, not the file in general.
Comment 5 C. Scott Ananian 2014-05-29 20:19:31 UTC
For reference, the desired *output* url is something like:

https://en.wikipedia.org/w/index.php?title=File%3AColoured_Figures_of_English_Fungi_or_Mushrooms.djvu&page=9

(Note the 'page' option on the URL).  It would also makes sense that any ordinary embed like:
[[Image:Coloured Figures of English Fungi or Mushrooms.djvu|page=9|thumb]]
have the proper 'page' option in the default link.

This probably also applies to the 'lang' option and SVGs (see bug 61649, bug 58663).

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


Navigation
Links