Widget:YouTube: Difference between revisions
→Using this widget: Finished listing parameters |
m Use {{PAGENAME}} |
||
Line 6: | Line 6: | ||
== Using this widget == | == Using this widget == | ||
To insert this widget, use the following syntax: | To insert this widget, use the following syntax: | ||
<code><nowiki>{{#widget: | <code><nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>|id = example}}</nowiki></code> | ||
Replace <code>example</code> with the ID of the video found in the URL. You can also add the following optional parameters (separated using <code>|</code> symbols within the brackets): | Replace <code>example</code> with the ID of the video found in the URL. You can also add the following optional parameters (separated using <code>|</code> symbols within the brackets): |
Revision as of 05:56, 22 January 2023
This widget allows you to add a YouTube video player to your wiki page.
Original version created by Yaron Koren and extended by Karsten Hoffmeyer.
Using this widget
To insert this widget, use the following syntax:
{{#widget:YouTube|id = example}}
Replace example
with the ID of the video found in the URL. You can also add the following optional parameters (separated using |
symbols within the brackets):
width = W
(replaceW
with the desired width in pixels)aspect = W/H
(replaceW/H
with a fractional aspect ratio)float
(places the video along the right side of the page, also changes the default width)start = S
(replaceS
with the start time in seconds)playlist = example
(replaceexample
with the playlist ID found in the URL)