Widget:Video: Difference between revisions
No edit summary |
No edit summary |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 6: | Line 6: | ||
== Using this widget == | == Using this widget == | ||
<nowiki> | |||
{{#Widget:Video|webm=http://url.to/your.webm|mp4=http://url.to/your.mp4|style=}} | |||
</nowiki> | |||
For example: | |||
<nowiki> | |||
{{#Widget:Video|mp4=https://pzwiki.wdka.nl/mw-mediadesign/images/a/af/Traffic_lights.mp4|style=height:200px;float:right;}} | |||
</nowiki> | |||
== Copy to your site == | == Copy to your site == | ||
To use this widget on your site, just install [http://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as '''{{FULLPAGENAME}}''' article. | To use this widget on your site, just install [http://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as '''{{FULLPAGENAME}}''' article. | ||
</noinclude><includeonly><video controls>No support for the video tag, try using a more recent browser that suports HTML5 video.<!--{if $webm}--><source src="<!--{$webm|validate:url}-->" type="video/webm" /><!--{/if}--><!--{if $mp4}--><source src="<!--{$mp4|validate:url}-->" type="video/mp4" /><!--{/if}--></video></includeonly> | </noinclude><includeonly><video style="<!--{$style}-->" controls>No support for the video tag, try using a more recent browser that suports HTML5 video.<!--{if $webm}--><source src="<!--{$webm|validate:url}-->" type="video/webm" /><!--{/if}--><!--{if $ogg}--><source src="<!--{$ogg|validate:url}-->" type="video/ogg" /><!--{/if}--><!--{if $mp4}--><source src="<!--{$mp4|validate:url}-->" type="video/mp4" /><!--{/if}--></video></includeonly> |
Latest revision as of 16:25, 13 November 2023
This widget allows you to embed HTML5 Media on your wiki page.
Created by taipan Modified by mm
Using this widget
{{#Widget:Video|webm=http://url.to/your.webm|mp4=http://url.to/your.mp4|style=}}
For example:
{{#Widget:Video|mp4=https://pzwiki.wdka.nl/mw-mediadesign/images/a/af/Traffic_lights.mp4|style=height:200px;float:right;}}
Copy to your site
To use this widget on your site, just install MediaWiki Widgets extension and copy full source code of this page to your wiki as Widget:Video article.