Widget:Video: Difference between revisions

The Terran Knowledge Bank
Jump to: navigation, search
No edit summary
No edit summary
Line 10: Line 10:
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}}'''.
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><video src="<!--{$url|validate:url}-->" poster="<!--{$poster|validate:url}-->" width="<!--{$width|default:640|validate:int|escape:'html'}-->" height="<!--{$height|default:320|validate:int|escape:'html'}-->"
</noinclude><includeonly><video src="<!--{$url|validate:url}-->" poster="<!--{$poster|validate:url}-->" width="<!--{$width|default:640|validate:int|escape:'html'}-->" height="<!--{$height|default:320|validate:int|escape:'html'}-->"
controls preload="none"></video></includeonly>
controls preload="none">{{#if: {{{$subs_en|}}} | <track label="English" kind="subtitles" srclang="en" src="<!--{$url|validate:url}-->"/> }}</video></includeonly>

Revision as of 20:38, 16 October 2023

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

Created by taipan

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:Video.