Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-12984

Allow zooming in original images from transcluded WikiDocs

XMLWordPrintable

      Currently, the transclusion process - that transforms WikiDocs into HTML code for MB documentation pages - drops wiki links on images. It makes sense for small images. But for larger images, or files, it would be more useful to allow the reader to click on images to be able to zoom in. There used to be only one large image for the database schema, which was additionally linked manually. Now there are more large images for it.

      1. Example of straightforward syntax to include an image in a WikiDoc page, as it automatically links to the corresponding special Image: page by default in MediaWiki (but the link is intentionally dropped by MusicBrainz Server):
        The image Image:WikiDocs_System_v1.png that appears in the page /WikiDocs (wiki page|transcluded doc).
      2. Example of complicated syntax to include an image in a WikiDoc page, which has the benefit to support SVG and to show the image in full page on first click in MediaWiki but requires manual updating when the image changes and doesn't allow to easily access the special page for the image either (the link is not even handled by MusicBrainz Server):
        The image File:entity_network_details.svg that appears in the section "Schema" of the page /MusicBrainz_Database/Schema (wiki page|transcluded doc).
        Edit: Complicated syntax was in revision #75903 and has now been dropped in revision #76251.

      To support the best of both:

      • straightforward syntax
      • link to show the zoomable original image in a popover with a legend linking to the special page and maybe mentioning the date of the latest revision.
        Edit: This would be reimplementing MediaWiki’s MultiMedia Viewer extension
      • link to show the original image that can be zoomed in

      It seems possible to query Media files through MediaWiki Rest API to gather all the needed information.

            yvanzo yvanzo
            yvanzo yvanzo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2023-03-20