Widget:Daily Motion : Différence entre versions
De Guitare Jazz Manouche Wiki
(Page créée avec « <noinclude>Category:Video Widget This widget allows you to add [http://www.dailymotion.com/ Daily Motion] video player to your wiki page. It's created by [[mediawikiwiki... ») |
|||
(Une révision intermédiaire par le même utilisateur non affichée) | |||
Ligne 1 : | Ligne 1 : | ||
− | <noinclude> | + | <noinclude> |
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. | ||
Ligne 6 : | Ligne 6 : | ||
To insert this widget, use the following code: | To insert this widget, use the following code: | ||
− | <nowiki>{{#widget: | + | <nowiki>{{#widget:Daily_Motion |
|id=x5c4iy | |id=x5c4iy | ||
|width=420 | |width=420 | ||
Ligne 17 : | Ligne 17 : | ||
== Sample result == | == Sample result == | ||
{{#widget:{{PAGENAME}}|id=x5c4iy}} | {{#widget:{{PAGENAME}}|id=x5c4iy}} | ||
− | </noinclude><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> |
Version actuelle en date du 6 mars 2019 à 09:50
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).
Sample result