Widget:Audio: Difference between revisions

From The Satanic Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Widget
<noinclude>__NOTOC__
|description=Allows you to add a HTML5 Media player for audio files.
This widget allows you to embed '''[https://github.com/etianen/html5media HTML5 Audio Media]''' on your wiki page.
|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:
Created by [https://www.wikihoster.net Karsten Hoffmeyer].


<nowiki>{{#widget:Audio
== Using this widget ==
|url=https://www.soundhelix.com/examples/mp3/SoundHelix-Song-8.mp3
For information on how to use this widget, see [https://www.mediawikiwidgets.org/Audio widget description page on MediaWikiWidgets.org].
}}</nowiki>


== Parameters ==
== Copy to your site ==
* '''url''' - URL of the audio file
To use this widget on your site, just install [https://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy the [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as page '''{{FULLPAGENAME}}'''.
 
</noinclude><includeonly><script src="//api.html5media.info/1.2.2/html5media.min.js"></script><audio src="<!--{$url|escape:html|validate:url}-->"
== Sample result ==
controls metadata></audio></includeonly>
{{#widget:Audio
|url=https://www.soundhelix.com/examples/mp3/SoundHelix-Song-8.mp3
}}
 
[[Category:Audio Widget]]
{{Comments}}

Latest revision as of 23:29, 21 February 2023

This widget allows you to embed HTML5 Audio Media on your wiki page.

Created by Karsten Hoffmeyer.

Using this widget

For information on how to use this widget, see widget description page on MediaWikiWidgets.org.

Copy to your site

To use this widget on your site, just install MediaWiki Widgets extension and copy the full source code of this page to your wiki as page Widget:Audio.