Widget

Video: Difference between revisions

No edit summary
(update with param and documentation)
Line 1: Line 1:
<iframe id="ytplayer" type="text/html" width="640" height="360"
<iframe id="ytplayer" type="text/html" width="640" height="360"
   src="https://www.youtube.com/embed/M7lc1UVf-VE?autoplay=1&origin=http://example.com"
   src="https://www.youtube.com/embed/<!--{$videoId|default:D46KCQNDMaM7}-->?autoplay=1&origin=https://graphit.ur.de"
   frameborder="0"></iframe>
   frameborder="0"></iframe>
<noinclude>
= Usage =
Embed a YouTube Video using a iframe
* '''videoId:''' The video id of a youtube link (e.g. for: https://www.youtube.com/watch?v=D46KCQNDMaM7 its 'D46KCQNDMaM7')
<pre style="background-color:#F5F5F5">
{{#widget:Video|videoId=D46KCQNDMaM7}}
</pre>
</noinclude>

Revision as of 14:30, 10 November 2025

<iframe id="ytplayer" type="text/html" width="640" height="360"

 src="https://www.youtube.com/embed/?autoplay=1&origin=https://graphit.ur.de"
 frameborder="0"></iframe>


Usage

Embed a YouTube Video using a iframe

{{#widget:Video|videoId=D46KCQNDMaM7}}