Template:Player: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{| style="border-collapse: separate; border-width: 1px; border-style: solid; float:{{#if: {{{pos|}}} | [[{{{pos|}}}]] | right }}; background:#fafafa;" |- | <big>{{#if: {{{titl...") |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{| style="border-collapse: separate; border-width: 1px; border-style: solid; float:{{#if: {{{pos|}}} | [[{{{pos|}}}]] | right }}; background:#fafafa;" | {| style="border-collapse: separate; border-width: 1px; border-style: solid; float:{{#if: {{{pos|}}} | [[{{{pos|}}}]] | right }}; background:#fafafa;" | ||
|- | |- | ||
| <big>{{#if: {{{title|}}} | | | <big>{{#if: {{{title|}}} | {{{title|}}} | }}</big> | ||
|- | |- | ||
| | | {{#tag:html5media|{{{filename|}}}|{{#if: {{{height|}}} {{!}} height="{{{height|}}}" {{!}} }}|{{#if: {{{width|}}} {{!}} width="{{{width|}}}" {{!}} }} }} | ||
<!--<html5media {{#if: {{{height|}}} | height="{{{height|}}}" | }} {{#if: {{{width|}}} | width="{{{width|}}}" | }}>{{{filename|}}}</html5media>--> | |||
|- | |- | ||
| {{#if: {{{description|}}} | | | {{#if: {{{description|}}} | {{{description|}}} | }} | ||
|} | |} | ||
<noinclude> | <noinclude> | ||
===Usage=== | ===Usage=== |
Latest revision as of 03:08, 13 September 2019
<html5media></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) }}