Extension:SoundManager2Button

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
MediaWiki extensions manual
SoundManager2Button
Release status: unmaintained
File:SoundManager2Button.png
Implementation Tag
Description Embeds a SoundManager 2 .mp3 player into a wiki page
Author(s) kroocsiogsitalk
Latest version 0.4.2 (includes SoundManager 2.97a-20170601 files) (2018-04-25)
MediaWiki 1.17+
License GNU General Public License 3.0
Download
‎<sm2>
Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Translate the SoundManager2Button extension if it is available at translatewiki.net

The SoundManager2Button extension allows to embed a SoundManager2 MP3 play button to play a local MP3 file.

Usage

<sm2>Fa_la_la.mp3</sm2>

Note: "File:Fa_la_la.mp3" must exist locally.

Installation

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/SoundManager2Button</tvar>|Download]] and move the extracted <tvar name=name>SoundManager2Button</tvar> folder to your <tvar name=ext>extensions/</tvar> directory.</translate>
    <translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/SoundManager2Button
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    require_once "$IP/extensions/SoundManager2Button/SoundManager2Button.php";
    $wgFileExtensions[] = 'mp3';
    
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>

License

This extension is licensed GPL-3.0-or-later however requires files released under BSD-3-Clause.