🔎 The upcoming fifth studio album by Boards of Canada

New merchandise available at Bleep.com 😲

 Actions

Widget

Difference between revisions of "Daily Motion"

m
(Daily Motion widget update)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
This widget allows you to add [http://www.dailymotion.com/ Daily Motion] video player to your wiki page.
+
<noinclude>[[Category:Video Widget]]
 +
This widget lets you add [https://www.dailymotion.com/ Daily Motion] video player to your wiki page.
 +
 
 +
It's created by [https://yugipedia.com/wiki/User:Dinoguy1000 Dinoguy1000].
  
 
To insert this widget, use the following code:
 
To insert this widget, use the following code:
  
  <nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>|id=x5c4iy|width=420|height=336}}</nowiki>
+
  <nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>
 +
|id=x5c4iy
 +
|width=420
 +
|height=336
 +
}}</nowiki>
  
 
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).
 
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).
  
<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>
+
{{Copy to your site}}
 +
== Sample result ==
 +
{{#widget:{{PAGENAME}}|id=x5c4iy}}
 +
</noinclude><includeonly><iframe src="https://www.dailymotion.com/embed/video/<!--{$id|escape:'urlpathinfo'}-->" width="<!--{$width|escape:'html'|default:'640'}-->" height="<!--{$height|escape:'html'|default:'360'}-->" frameborder="0" allowfullscreen ></iframe></includeonly>
 +
 
  
 
<noinclude>
 
<noinclude>
 
[[Category:Widgets]]
 
[[Category:Widgets]]
 
</noinclude>
 
</noinclude>

Latest revision as of 17:13, 22 February 2025

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

It's created by Dinoguy1000.

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