Widget:YouTube

De CNB
Ir a la navegación Ir a la búsqueda
Busca en cnbGuatemala con Google

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

Using this widget

For information on how to use this widget, see the widget description page on MediaWikiWidgets.org.

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

It was created by Yaron Koren and extended by Karsten Hoffmeyer.

To insert this widget, use the following code:

{{#widget:YouTube|id=DWef69ItVrU}}

Parameters

id - video ID (from the URL)

start - timestamp of starting point within the video in seconds

playlist - playlist name (starts with PL) - first clip is played (id and start are ignored)

height and width define view dimensions, 420x350 is default

Single clip

Syntax

{{#widget:YouTube|id=Ukytqe9pwDM}}

Single clip starting at 300 seconds

Syntax

{{#widget:YouTube|id=Ukytqe9pwDM|start=300}}

Playlist

Syntax

{{#widget:YouTube|playlist=PL6FD8256CD24CFF1F}}

Playlist with different dimensions

Syntax

{{#widget:YouTube|playlist=PL6FD8256CD24CFF1F|height=360|width=630}}

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.