Last modified: 2014-05-29 20:19:40 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.
see also bug 4198
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].)
(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.
(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.
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).