« Widget:YouTube Voir l’historique

(Fixed double redirect)
(Updated documentation)
Ligne 1 : Ligne 1 :
#REDIRECT [[24-hour_format]]
<noinclude>{{doc}}
</noinclude><includeonly><iframe width="<!--{$width|escape:'html'|default:'425'}-->" height="<!--{$height|escape:'html'|default:355}-->" src="https://www.youtube.com/embed/<!--{if isset($playlist)}-->?listType=playlist&list=<!--{$playlist|escape:'urlpathinfo'}--><!--{else}--><!--{$id|escape:'urlpathinfo'}--><!--{/if}-->" frameborder="0" allowfullscreen></iframe></includeonly>

Version du 5 mai 2015 à 03:58

Documentation[view] [edit] [history] [purge]

This widget allows you to add a YouTube video player to your wiki page.


Using this widget

To embed a youtube video like the one you see below, use the following widget code on the page:

{{#Widget:YouTube|id=QFv7AFRmmTs|width=500}}

Parameters

The following parameters are supported by this widget.

|id= video id (from the URL)

|playlist= playlist name (starts with PL) - first clip is played (if this parameter is defined, the id parameter is ignored)

|height= and |width= define view dimensions

420x350 is default
the maximum size for the Waze wiki pages is |width=720


Widget Source

For more information on this widget, see the widget description page on MediaWikiWidgets.org.

Copy to your site
To use this widget on your site, just install the MediaWiki Widgets extension and the copy full source code of this page to your wiki, as an article called Widget:YouTube.
The above documentation is transcluded from Widget:YouTube/doc.
Please add categories to the /doc subpage.
Subpages of this page.