User:Coffi/Under/Experimental Templates/Template:BackgroundMusic/doc
Jump to navigation
Jump to search
User Template: BackgroundMusic[edit | edit source]
This user template adds autoplaying background music via an HTML5 `<audio>` element.
Usage[edit | edit source]
{{User:Coffi/Under/Experimental_Templates/Template:BackgroundMusic|https://example.com/music.mp3}}
- Parameter 1: URL to a direct audio file (MP3 preferred).
Features[edit | edit source]
- Autoplays and loops.
- Includes basic controls.
- Best for personal/local MediaWiki installations.
Example[edit | edit source]
{{User:Coffi/Under/Experimental_Templates/Template:BackgroundMusic|https://example.com/song.mp3}}
Compatibility[edit | edit source]
- Most modern browsers support this.
- Autoplay may be blocked unless user interaction occurs.