Widget:Dailymotion : Différence entre versions
(→Sample result) |
|||
(3 révisions intermédiaires par le même utilisateur non affichées) | |||
Ligne 2 : | Ligne 2 : | ||
This widget allows you to add [http://www.dailymotion.com/ Daily Motion] video player to your wiki page. | This widget allows you to add [http://www.dailymotion.com/ Daily Motion] video player to your wiki page. | ||
− | It's | + | It's inspired from https://www.mediawikiwidgets.org/Daily_Motion |
To insert this widget, use the following code: | To insert this widget, use the following code: | ||
Ligne 8 : | Ligne 8 : | ||
<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki> | <nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki> | ||
|id=x5c4iy | |id=x5c4iy | ||
− | |||
− | |||
}}</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). |
− | + | </noinclude><includeonly><iframe src="//www.dailymotion.com/embed/video/<!--{$id|escape:'urlpathinfo'}-->" allowfullscreen="" width="480" height="270" frameborder="0"></iframe> | |
− | </noinclude><includeonly>< | + | </includeonly> |
Version actuelle datée du 9 janvier 2018 à 09:41
This widget allows you to add Daily Motion video player to your wiki page.
It's inspired from https://www.mediawikiwidgets.org/Daily_Motion
To insert this widget, use the following code:
{{#widget:Dailymotion |id=x5c4iy }}
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).