Difference between revisions of "Daily Motion"
From LRDE
(3 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki> |
<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki> |
||
|id=x5c4iy |
|id=x5c4iy |
||
− | |width= |
+ | |width=480 |
− | |height= |
+ | |height=270 |
}}</nowiki> |
}}</nowiki> |
||
− | Width and hight are optional, |
+ | Width and hight are optional, 480x270 is a default, "id" is a first part of the file name in page URL (before first underscore, see example above). |
== Sample result == |
== Sample result == |
||
{{#widget:{{PAGENAME}}|id=x5c4iy}} |
{{#widget:{{PAGENAME}}|id=x5c4iy}} |
||
− | </noinclude><includeonly><object><param name="movie" value=" |
+ | </noinclude><includeonly><object width="<!--{$width|default:480|escape:'html'}-->" height="<!--{$height|default:270|escape:'html'}-->"><param name="movie" value="https://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="https://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:480|escape:'html'}-->" height="<!--{$height|default:270|escape:'html'}-->" allowFullScreen="true" allowScriptAccess="always"></embed></object></includeonly> |
Latest revision as of 15:28, 7 April 2014
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=480 |height=270 }}
Width and hight are optional, 480x270 is a default, "id" is a first part of the file name in page URL (before first underscore, see example above).
Sample result