More actions
mNo edit summary |
m (use anonymous parameters) |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{ | <includeonly>{{#if:{{{1|}}}| | ||
{{#ifeq: | {{#ifeq: | ||
{{lc:{{#explode:{{{ | {{lc:{{#explode:{{{1}}}|.|-1}}}}|ogg| | ||
<span class="audio-button">[[Media:{{{ | <span class="audio-button">[[Media:{{{1}}}|{{{caption|Play}}}]]</span> | ||
|{{#sub:{{file:{{{ | |{{#sub:{{file:{{{1}}}}}|7}} | ||
}} | }} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
Line 11: | Line 11: | ||
<pre><nowiki> | <pre><nowiki> | ||
{{Audio | {{Audio | ||
| | |filename without the File: prefix (e.g. BlazBlue Central Fiction Jubei Battle Voice VS Celica 001.ogg) | ||
| | |optional caption for non-ogg audio links. The link will display as "Play" by default | ||
}} | }} | ||
{{Audio| | {{Audio|BlazBlue Central Fiction Jubei Battle Voice VS Celica 001.ogg|Caption}} | ||
</nowiki></pre> | </nowiki></pre> | ||
{{Audio| | {{Audio|BlazBlue Central Fiction Jubei Battle Voice VS Celica 001.ogg}} | ||
{{Audio| | {{Audio|BlazBlue Central Fiction Jubei Battle Voice VS Celica 002.ogg}} | ||
{{Audio| | {{Audio|BlazBlue Central Fiction Jubei Battle Voice VS Celica 003.ogg}} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 20:33, 21 March 2020
This template displays a play/pause button for ogg files, and a "Play" link for non-ogg audio files.
Usage
{{Audio |filename without the File: prefix (e.g. BlazBlue Central Fiction Jubei Battle Voice VS Celica 001.ogg) |optional caption for non-ogg audio links. The link will display as "Play" by default }} {{Audio|BlazBlue Central Fiction Jubei Battle Voice VS Celica 001.ogg|Caption}}