Specs/HTML/2.7.0/Extensions/Gallery

Changes since Specs/HTML/2.5.0/Extensions/Gallery

 * Parsoid no longer provides the raw extension body text in  and raw gallerycaption in   for clients to edit in a raw-text editor.

The basic structure is as follows.

This gallery:

Renders as:

and  modes add some additional structure around

Attributes to support (on the extension tag):
 * showfilename
 * caption
 * mode
 * widths
 * heights
 * perrow

Renders as:

A more involved example:

Renders as:

A showfilename example:

Renders as:

Editing support
All the extension attributes, except, need to be edited via data-mw.

Previously, Parsoid provided the raw extension body text in  and raw gallerycaption in   for clients to edit in a raw-text editor. However, these are no longer generated (though some instances may still be in cache) and are ignored when serializing to wikitext. HTML editing of the gallery body and caption are now both supported and expected.