Widget: YouTube

Aus eLib.at
Version vom 22. Oktober 2022, 12:28 Uhr von Gego (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „{{Widget |description=Allows you to add YouTube videos. |author=Yaron Koren |provider=YouTube |providerurl=https://code.google.com/apis/youtube/player_parameters.html |status=active |security=unknown |addedon=May 16, 2008 }} This widget allows you to add a [http://www.youtube.com/ YouTube] video player to your wiki page. It was created by Yaron Koren and extended by Karsten Hoffmeyer. To insert this widget, use the f…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche

Vorlage:Widget 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

Sample results

Single clip

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

Single clip starting at 300 seconds

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

Playlist

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

Playlist with different dimensions

Syntax
{{#widget:YouTube|playlist=PL6FD8256CD24CFF1F|height=525|width=630}}
Result

Vorlage:Comments