Template:Hover gif/doc

provides a way for gifs to be displayed but not playing until the user hovers over the image. It uses code from Mediawiki:Common.js and styles from Mediawiki:Common.css. In mobile view, the hover functionality is ignored and gifs play as normal.

Parameters
There are several unnamed parameters:
 * 1) File name (no extension)
 * 2) Size (defaults to  )
 * 3) Float; can be left, right, center, or inline. inline aligns left rather than fully floating and allows for multiple hover gifs to go on the same line in a gallery. (defaults to  )
 * 4) Description

Known issue
Sometimes the static thumbnail fails to load, resulting in a blank space with the gif icon overlaid on it. The template otherwise works as normal, and a simple page refresh can fix the issue.

Example


When it's left-floating, text placed below the gif will be to the right of it



These are inline and don't fully float



When it's right-floating, text placed below the gif will be to the left of it