« Widget:YouTube/doc Voir l’historique

(fixed link)
 
m (→‎Widget Source : mbox icon)
Ligne 1 : Ligne 1 :
#REDIRECT [[Abbreviations and acronyms]]
{{doc subpage}}
<!-- ADD DOCUMENTATION BELOW THIS LINE -->
This widget allows you to add a [http://developers.google.com/youtube/player_parameters 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:
 
<nowiki>{{</nowiki>[[Widget:YouTube|'''#Widget:YouTube''']]|id=QFv7AFRmmTs|width=500<nowiki>}}</nowiki>
 
=== Parameters ===
The following parameters are supported by this widget.
 
{{Para|id}} video id (from the URL)
 
{{Para|playlist}} playlist name (starts with PL) - first clip is played (if this parameter is defined, the '''id''' parameter is ignored)
 
{{Para|height}} and {{Para|width}} define view dimensions<br>
:420x350 is default<br />the maximum size for the Waze wiki pages is {{para|width|720}}
 
 
{{#widget:YouTube|id=QFv7AFRmmTs|width=500}}
 
=== Widget Source ===
For more information on this widget, see the [http://www.mediawikiwidgets.org/YouTube widget description page on MediaWikiWidgets.org].
 
{{Mbox|type=move|text='''Copy to your site'''<br>
To use this widget on your site, just install the [http://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and the copy [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki, as an article called '''{{FULLPAGENAME}}'''.}}
 
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
 
<!-- ADD INTERWIKIS BELOW THIS LINE -->
 
</includeonly>

Version du 5 mai 2015 à 05:16

This is a documentation subpage for Widget:YouTube.
It contains usage information, categories and other content that is not part of the original widget page.

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/doc.