Widget:Audio: Difference between revisions

    叶子和他的Vtuber们
    No edit summary
    No edit summary
     
    Line 1: Line 1:
    <noinclude>
    This widget allows you to embed HTML5 Audio Media on your wiki page.
    {{#widget:</nowiki>{{PAGENAME}}<nowiki>
    |url=//www.yzwiki.com/w/images/4/43/Test-audio.mp3
    }}
    == Using this widget ==
    To insert this widget, use the following code:
    <nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>
    |url=https://www.soundhelix.com/examples/mp3/SoundHelix-Song-8.mp3
    }}</nowiki>
    </noinclude>
    <includeonly><!--script src="//api.html5media.info/1.2.2/html5media.min.js"></script--><audio src="<!--{$url|validate:url}-->"
    <includeonly><!--script src="//api.html5media.info/1.2.2/html5media.min.js"></script--><audio src="<!--{$url|validate:url}-->"
    controls preload></audio></includeonly>
    controls preload></audio></includeonly>

    Latest revision as of 08:49, 22 December 2022