Widget:Audio: Difference between revisions

From The Satanic Wiki
Jump to navigation Jump to search
(Created page with "{{Widget |description=Allows you to add a HTML5 Media player for audio files. |author=Kghbln |provider=etianen |providerurl=https://github.com/etianen/html5media |status=active |security=checked |addedon=2016/03/30 }} This widget allows you to add [https://github.com/etianen/html5media HTML5 Audio Media] to your wiki page. For video files see the Video page. To insert this widget, use the following code: <nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki> |url=https:/...")
 
No edit summary
Line 29: Line 29:
== Note ==
== Note ==
If you are using this widget you cannot use the [[mediawikiwiki:Extension:TimedMediaHandler|TimedMediaHandler extension]] at the same time.
If you are using this widget you cannot use the [[mediawikiwiki:Extension:TimedMediaHandler|TimedMediaHandler extension]] at the same time.
[[Category:Audio Widget]]
{{Comments}}

Revision as of 23:08, 21 February 2023

Template:Widget This widget allows you to add HTML5 Audio Media to your wiki page. For video files see the Video page.

To insert this widget, use the following code:

{{#widget:Audio
|url=https://www.soundhelix.com/examples/mp3/SoundHelix-Song-8.mp3
}}

Parameters

  • url - URL of the audio file

Sample result

Related tip

The Audio template used together with the Html5mediaAudio widget helps to avoid adding the full URL of a locally uploaded file to the widget's "url" parameter by rather just specifying the name of the uploaded file. → See the Audio template for further information.

Note

If you are using this widget you cannot use the TimedMediaHandler extension at the same time.