The gallery tag currently generates an unnumbered list containing the images. In the browser the bullets are hidden by CSS. When you copy a gallery from web page to a word processing you get a unnumbered list with annoying bullets.
Example from https://www.mediawiki.org/w/index.php?title=Help:Images&oldid=4781793#Gallery_syntax
<gallery> File:Example.jpg|Item 1 File:Example.jpg|a link to [[Help:Contents]] File:Example.jpg File:Example.jpg|alt=An example image. It has flowers File:Example.jpg|''italic caption'' Example.jpg|on page "{{PAGENAME}}" File:Using Firefox.pdf|page=72 </gallery>
copied from Mozilla Firefox and pasted to LibreOffice Writer on Microsoft Windows 10 looks like:
The unnumbered list is not necessary for semantic reasons. For HTML4, div/div instead of ul/li should be satisfactorily and has no disadvantages.
For HTML5 the figure element would be the right element:
http://www.w3.org/TR/html5/the-figure-element.html#the-figure-element
<gallery title="Caption"> File:Image1.jpg|First Image File:Image2.jpg|Second Image </gallery>
should turn to
<figure class="gallery"> <figcaption>Caption</figcaption> <figure> <img src="Image1.jpg" /> <figcaption>First Image</figcaption> </figure> <figure> <img src="Image2.jpg" /> <figcaption>Second Image</figcaption> </figure> </figure>
See Also: