Template:Player: Difference between revisions

From TalossaWiki
Jump to navigation Jump to search
(Bug fixed)
(No it wasn't)
Line 5: Line 5:
| <html5media {{#if: {{{height|}}} | height="{{{height|}}}" | }} {{#if: {{{width|}}} | width="{{{width|}}}">{{{filename|}}}</html5media>
| <html5media {{#if: {{{height|}}} | height="{{{height|}}}" | }} {{#if: {{{width|}}} | width="{{{width|}}}">{{{filename|}}}</html5media>
|-
|-
| {{#if: {{{description|}}} | [[{{{description|}}}]] | }}
| {{#if: {{{description|}}} | [[{{{description|}}}]] | }} {{{filename|}}}
|}
|}



Revision as of 02:52, 13 September 2019

width=""></html5media>


Usage

This template inserts a HTML5 player and is based on the Html5mediator extension. For older browsers, it falls back on Flash.

You can use it to embed MP3, OGG and MP4 files.



{{Player
| filename    = File:X (if hosted on the Wiki), or the URL of an external file, or the URL of a YouTube page
| title       = A title for the template box (not required)
| description = A caption for your file (not required)
| height      = Height (not required, ignored if audio)
| width       = Width (not required, ignored if audio)
| pos         = Left or right (not required, defaults to right)
}}