Last modified: 2013-10-02 19:01:49 UTC
Since MediaWiki allows images that are clearly separated, out, we should see if we can use figure and figcaption. These tags are intended for "some flow content, optionally with a caption, that is self-contained and is typically referenced as a single unit from the main flow of the document." This would particularly make sense for thumb and frame where a caption is already shown. However, figure can also be used without figcaption, which should simplify implementation. The main concern is backwards-compatibility with browsers that don't know about these tags. They're new to HTML5 (which is now always on), but I think jQuery's createSafeFragment takes care of making them available to older versions of IE. So it's only an issue for old IE without JS (per bug 23932).
Docs on MDN for these elements: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figure https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figcaption Core and mobile styles would have to be updated, and likely also some JS tools. Alternatively, <figure> and <figcaption> could be thrown in around the existing <div>s and <span>s without changing the styles, assuming there's no default styles that override stuff.