@wdprlib/render
    Preparing search index...

    Module elements/gallery

    Renderer for Wikidot [[gallery]] elements.

    Emits a rationalized, theme-compatible markup: the Wikidot class names gallery-box / gallery-item <size> / with-lb are kept, but the legacy table wrapper is replaced with a plain <figure> per item.

    <div class="gallery-box">
    <figure class="gallery-item thumbnail">
    <a href="/local--files/page/a.jpg" class="with-lb"><img src="..." alt=""/></a>
    </figure>
    </div>
    • with-lb marks lightbox targets (see initGallery in @wdprlib/runtime): anchors whose href is the image itself, i.e. items without an explicit link and without a * new-window prefix.
    • data-viewer="false" on the box disables the lightbox (viewer="no").
    • Items whose source is a dangerous URL are skipped; a dangerous link is ignored (the item then links to its own image).

    Functions

    renderGallery

    References

    sortGalleryFiles → sortGalleryFiles