The content form requires the ]] to be followed immediately by one or
more : source lines and a [[/gallery]] close tag (Wikidot regex
\[\[gallery(\s[^\]]*?)?\]\](?:((?:\n: [^\n]+)+)\n\[\[/gallery\]\])?).
Anything else falls back to the standalone content-less form, which shows
the current page's image attachments after data resolution
(content: { type: "auto", files: null }); the following text then
parses normally.
Honored opening-tag attributes are size (small / medium / thumbnail /
square / original, fallback thumbnail), viewer ("no"/"false"
disable the lightbox) and order (auto-collection sort order, with
Wikidot's deprecated aliases normalized).
Deliberate differences from the Wikidot parser: the opening tag must
fit on one line and attribute names are lowercased with unquoted values
accepted (both shared with wdpr's other block rules), and flickr:
sources get no special treatment — they resolve like any other
filename (wdpr does not call the Flickr API).
Block rule for the Wikidot
[[gallery]]image gallery.The content form requires the
]]to be followed immediately by one or more: sourcelines and a[[/gallery]]close tag (Wikidot regex\[\[gallery(\s[^\]]*?)?\]\](?:((?:\n: [^\n]+)+)\n\[\[/gallery\]\])?). Anything else falls back to the standalone content-less form, which shows the current page's image attachments after data resolution (content: { type: "auto", files: null }); the following text then parses normally.Honored opening-tag attributes are
size(small / medium / thumbnail / square / original, fallback thumbnail),viewer("no"/"false"disable the lightbox) andorder(auto-collection sort order, with Wikidot's deprecated aliases normalized).Deliberate differences from the Wikidot parser: the opening tag must fit on one line and attribute names are lowercased with unquoted values accepted (both shared with wdpr's other block rules), and
flickr:sources get no special treatment — they resolve like any other filename (wdpr does not call the Flickr API).