Différences entre les versions de « Widget:Dailymotion »

De dieudo.fr
Aller à la navigation Aller à la recherche
 
Ligne 1 : Ligne 1 :
<noinclude>
<iframe src="//www.dailymotion.com/embed/video/<!--{$id|escape:'urlpathinfo'}-->" allowfullscreen="" width="480" height="270" frameborder="0"></iframe>
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|Sergey Chernyshev]] as a replacement for [[mediawikiwiki:Extension:VideoFlash|VideoFlash extension]].
 
To insert this widget, use the following code:
 
<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>
|id=x5c4iy
|width=640
|height=360
}}</nowiki>
 
Width and hight are optional, 640x360 is a default, "id" is a first part of the file name in page URL (before first underscore, see example above).
 
</noinclude><includeonly><iframe src="//www.dailymotion.com/embed/video/<!--{$id|escape:'urlpathinfo'}-->" allowfullscreen="" width="480" height="270" frameborder="0"></iframe></includeonly>

Version actuelle datée du 7 janvier 2018 à 12:25

<iframe src="//www.dailymotion.com/embed/video/" allowfullscreen="" width="480" height="270" frameborder="0"></iframe>