Thread:Darthwikia25/@comment-28606847-20161105210032/@comment-34101888-20161108021017

I use this for playing background music in user profiles. Use the YouTubeInMP3 HTTP API for converting the video to a MP3 file, and then, using a HTML5 audio element, play the MP3 file.

This is the JavaScript code for using the HTML5 audio element (must be included in MediaWiki:Common.js or MediaWiki:Wikia.js).

Then, create template, for example, with the name YouTube-music, and put the following code: 

After that, using the template is easy:

ElNobDeTfm (talk) 02:10, November 8, 2016 (UTC)