Difference between revisions of "Widget:Daily Motion"

From Guitare Jazz Manouche Wiki
Jump to: navigation, search
(Created page with "<noinclude> This widget allows you to add [http://www.dailymotion.com/ Daily Motion] video player to your wiki page. It's created by [[mediawikiwiki:User:Sergey Chernyshev|Serge...")
 
 
Line 17: Line 17:
 
== Sample result ==
 
== Sample result ==
 
{{#widget:{{PAGENAME}}|id=x5c4iy}}
 
{{#widget:{{PAGENAME}}|id=x5c4iy}}
</noinclude><includeonly><object width="<!--{$width|default:420|escape:'html'}-->" height="<!--{$height|default:336|escape:'html'}-->"><param name="movie" value="http://www.dailymotion.com/swf/<!--{$id|escape:'urlpathinfo'}-->&v3=1&colors=background:DDDDDD;glow:FFFFFF;foreground:333333;special:FFC300;&related=0"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.dailymotion.com/swf/<!--{$id|escape:'urlpathinfo'}-->&v3=1&colors=background:DDDDDD;glow:FFFFFF;foreground:333333;special:FFC300;&related=0" type="application/x-shockwave-flash" width="<!--{$width|default:420|escape:'html'}-->" height="<!--{$height|default:336|escape:'html'}-->" allowFullScreen="true" allowScriptAccess="always"></embed></object></includeonly>
+
</noinclude><includeonly><iframe frameborder="0" width="<!--{$width|default:480|escape:'html'}-->" height="<!--{$height|default:270|escape:'html'}-->" src="https://www.dailymotion.com/embed/video/<!--{$id|escape:'urlpathinfo'}-->" allowfullscreen allow="autoplay"></iframe></includeonly>

Latest revision as of 10:00, 6 March 2019

This widget allows you to add Daily Motion video player to your wiki page.

It's created by Sergey Chernyshev as a replacement for VideoFlash extension.

To insert this widget, use the following code:

{{#widget:Daily_Motion
|id=x5c4iy
|width=420
|height=336
}}

Width and hight are optional, 420x336 is a default, "id" is a first part of the file name in page URL (before first underscore, see example above).

Template:Copy to your site

Sample result