Widget:Html5media — различия между версиями

Материал из ДАОССКИЕ ПРАКТИКИ ВАН ЛИПИНА. ШКОЛА ВИКТОРА СЯО

Перейти к: навигация, поиск
(Новая страница: «{{Widget |author=Taipan |addedon=4/30/2010 }} This widget allows you to add [https://github.com/etianen/html5media HTML5 Media] to your wiki page. To insert this…»)
 
 
Строка 1: Строка 1:
{{Widget
+
<noinclude>__NOTOC__
|author=Taipan
+
This widget allows you to embed '''[https://github.com/etianen/html5media HTML5 Media]''' on your wiki page.
|addedon=4/30/2010
+
}}
+
This widget allows you to add [https://github.com/etianen/html5media HTML5 Media] to your wiki page.
+
  
To insert this widget, use the following code:
+
Created by [http://www.mediawikiwidgets.org/User:Taipan taipan]
  
<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>
+
== Using this widget ==
|url=http://pornel.net/Performance.ogg
+
For information on how to use this widget, see [http://www.mediawikiwidgets.org/Html5media widget description page on MediaWikiWidgets.org].
|width=640
+
|height=360
+
}}</nowiki>
+
  
== Parameters ==
+
== Copy to your site ==
* '''url''' - URL of the video
+
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.
* '''width''', '''height''' - dimensions (optional, 425x355 default)
+
</noinclude><includeonly><script src="http://api.html5media.info/1.1.4/html5media.min.js"></script><video src="<!--{$url|validate:url}-->" width="<!--{$width|default:425|validate:int|escape:'html'}-->" height="<!--{$height|default:355|validate:int|escape:'html'}-->"
 
+
controls preload></video></includeonly>
== HTML4media script ==
+
For information on the html5media script used by this widget, see [http://etianen.github.com/html5media/ The html5media project page]
+
 
+
== Sample result ==
+
{{#widget:Html5media
+
|url=http://pornel.net/Performance.ogg
+
|width=640
+
|height=360
+
}}
+
{{Comments}}
+

Текущая версия на 14:44, 17 декабря 2012

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 full source code of this page to your wiki as Widget:Html5media article.