Search code examples
luamediawikimediawiki-extensionsscribunto

MediaWiki Scribunto extension's "Listen" module not generating expected HTML


I have a MediaWiki installation (1.23) with the Scribunto extension and Module:Listen. I try to invoke this module from an article like so:

{{Listen
 |filename     = Noise.ogg
 |title        = Noise
 |description  = Some noise
}}

This generates the little infobox, but the embedded sound player itself does not appear. I looked at the generated HTML, and the module is just making a second ordinary href to the file:

<div class="haudio">
<div style="padding:2px 0;"><a href="/wiki/File:Noise.ogg" title="File:Noise.ogg">Noise</a></div>
<div style="padding-right:4px;"><a href="/wiki/File:Noise.ogg" title="File:Noise.ogg">File:Noise.ogg</a></div>
<div class="description" style="padding:2px 0 0 0;">Some noise</div></div>

Rather than the second href to the file, I'd expect to see a or similar. Am I missing some template or Lua module?


Solution

  • You need to have TimedMediaHandler installed for the sound player to show up!