(6 intermediate revisions by the same user not shown) Line 1:
Line 1:
{|p class="wikitable"
==YoutubeIframeParameter==
|-
! Parameter
f: Thank you , dear https://pi .ai + https://Bard .google .com for giving advice howto EmbedYoutubeIntoMediaWiki .
! Description
! Default Value
! Recommended Class
|-
| autoplay
| Whether to automatically play the video when the page loads.
| `0` (no)
| `mw-youtube-player-autoplay`
|-
| controls
| Whether to show the video controls.
| `1` (yes)
| `mw-youtube-player-controls`
|-
| loop
| Whether to play the video repeatedly.
| `0` (no)
| `mw-youtube-player-loop`
|-
| modestbranding
| Whether to hide the YouTube branding.
| `1` (yes)
| `mw-youtube-player-modestbranding`
|-
| playsinline
| Whether to play the video inline, without opening a new window.
| `1` (yes)
| `mw-youtube-player-playsinline`
|-
| rel
| The relationship between the current page and the embedded video.
| `1` (show related videos)
| `mw-youtube-player-rel-1`
|-
| showinfo
| Whether to show the video title and other information.
| `1` (yes)
| `mw-youtube-player-showinfo`
|-
| theme
| The theme of the video player.
| `light`
| `mw-youtube-player-theme-light`
|-
| width
| The width of the video player.
| `560`
|
|-
| height
| The height of the video player.
| `315`
|
|}
{| class="wikitable"
|-
! Parameter
! Description
! Default Value
! Recommended Class
|-
| autoplay
| Whether to automatically play the video when the page loads.
| `0` (no)
| `mw-youtube-player-autoplay`
|-
| controls
| Whether to show the video controls.
| `1` (yes)
| `mw-youtube-player-controls`
|-
| loop
| Whether to play the video repeatedly.
| `0` (no)
| `mw-youtube-player-loop`
|-
| modestbranding
| Whether to hide the YouTube branding.
| `1` (yes)
| `mw-youtube-player-modestbranding`
|-
| playsinline
| Whether to play the video inline, without opening a new window.
| `1` (yes)
| `mw-youtube-player-playsinline`
|-
| rel
| The relationship between the current page and the embedded video.
| `1` (show related videos)
| `mw-youtube-player-rel-1`
|-
| showinfo
| Whether to show the video title and other information.
| `1` (yes)
| `mw-youtube-player-showinfo`
|-
| theme
| The theme of the video player.
| `light`
| `mw-youtube-player-theme-light`
|-
| width
| The width of the video player.
| `560`
|
|-
| height
| The height of the video player.
| `315`
|
|}
{| class="wikitable"
|-
! Parameter
! Description
! Default Value
! Recommended Class
|-
| autoplay
| Whether to automatically play the video when the page loads.
| `0` (no)
| `mw-youtube-player-autoplay`
|-
| controls
| Whether to show the video controls.
| `1` (yes)
| `mw-youtube-player-controls`
|-
| loop
| Whether to play the video repeatedly.
| `0` (no)
| `mw-youtube-player-loop`
|-
| modestbranding
| Whether to hide the YouTube branding.
| `1` (yes)
| `mw-youtube-player-modestbranding`
|-
| playsinline
| Whether to play the video inline, without opening a new window.
| `1` (yes)
| `mw-youtube-player-playsinline`
|-
| rel
| The relationship between the current page and the embedded video.
| `1` (show related videos)
| `mw-youtube-player-rel-1`
|-
| showinfo
| Whether to show the video title and other information.
| `1` (yes)
| `mw-youtube-player-showinfo`
|-
| theme
| The theme of the video player.
| `light`
| `mw-youtube-player-theme-light`
|-
| width
| The width of the video player.
| `560`
|
|-
| height
| The height of the video player.
| `315`
|
|}
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 229:
Line 61:
|}
|}
{| class="wikitable"
==YoutubeIframeScript==
|-
! Parameter
! Description
! Default Value
! Recommended Class
|-
| autoplay
| Whether to automatically play the video when the page loads.
| `0` (no)
| `mw-youtube-player-autoplay`
|-
| controls
| Whether to show the video controls.
| `1` (yes)
| `mw-youtube-player-controls`
|-
| loop
| Whether to play the video repeatedly.
| `0` (no)
| `mw-youtube-player-loop`
|-
| modestbranding
| Whether to hide the YouTube branding.
| `1` (yes)
| `mw-youtube-player-modestbranding`
|-
| playsinline
| Whether to play the video inline, without opening a new window.
| `1` (yes)
| `mw-youtube-player-playsinline`
|-
| rel
| The relationship between the current page and the embedded video.
| `1` (show related videos)
| `mw-youtube-player-rel-1`
|-
| showinfo
| Whether to show the video title and other information.
| `1` (yes)
| `mw-youtube-player-showinfo`
|-
| theme
| The theme of the video player.
| `light`
| `mw-youtube-player-theme-light`
|-
| width
| The width of the video player.
| `560`
|
|-
| height
| The height of the video player.
| `315`
|
|}
[[iframe script for YoutubeVideo]]:f e.g. for https://youtu.be/qgQENQmUVO4?si=1OSxIQ_CuBZyP_4n
[[iframe script for YoutubeVideo]]:f e.g. for https://youtu.be/qgQENQmUVO4?si=1OSxIQ_CuBZyP_4n
from bard.google.com
1
Sure, here is the iframe script for embedding the YouTube video https://youtu.be/qgQENQmUVO4?si=1OSxIQ_CuBZyP_4n in your website:
Sure, here is the iframe script for embedding the YouTube video https://youtu.be/qgQENQmUVO4?si=1OSxIQ_CuBZyP_4n in your website:
HTML
<html>
<iframe width="560" height="315" src="https://www.youtube.com/embed/qgQENQmUVO4?si=1OSxIQ_CuBZyP_4n" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<iframe width="560" height="315" src="https://www.youtube.com/embed/qgQENQmUVO4?si=1OSxIQ_CuBZyP_4n" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
Verwende Code mit Vorsicht. Weitere Informationen
</html>
This code will embed the YouTube video in a 560x315 pixel frame. You can adjust the width and height of the frame to fit your needs. You can also add other parameters to the src attribute to customize the playback experience, such as the autoplay parameter to automatically play the video when the page loads.
This code will embed the YouTube video in a 560x315 pixel frame. You can adjust the width and height of the frame to fit your needs. You can also add other parameters to the src attribute to customize the playback experience, such as the autoplay parameter to automatically play the video when the page loads.
Here is a list of all the parameters you can use with the YouTube iframe embed:
autoplay: Whether to automatically play the video when the page loads.
controls: Whether to show the video controls.
loop: Whether to play the video repeatedly.
modestbranding: Whether to hide the YouTube branding.
playsinline: Whether to play the video inline, without opening a new window.
rel: The relationship between the current page and the embedded video.
YoutubeIframeParameter
f: Thank you, dear https://pi.ai + https://Bard.google.com for giving advice howto EmbedYoutubeIntoMediaWiki.
Parameter
Description
Default Value
Recommended Class
autoplay
Whether to automatically play the video when the page loads.
`0` (no)
`mw-youtube-player-autoplay`
controls
Whether to show the video controls.
`1` (yes)
`mw-youtube-player-controls`
loop
Whether to play the video repeatedly.
`0` (no)
`mw-youtube-player-loop`
modestbranding
Whether to hide the YouTube branding.
`1` (yes)
`mw-youtube-player-modestbranding`
playsinline
Whether to play the video inline, without opening a new window.
`1` (yes)
`mw-youtube-player-playsinline`
rel
The relationship between the current page and the embedded video.
`1` (show related videos)
`mw-youtube-player-rel-1`
showinfo
Whether to show the video title and other information.
`1` (yes)
`mw-youtube-player-showinfo`
theme
The theme of the video player.
`light`
`mw-youtube-player-theme-light`
width
The width of the video player.
`560`
height
The height of the video player.
`315`
YoutubeIframeScript
iframe script for YoutubeVideo :f e.g. for https://youtu.be/qgQENQmUVO4?si=1OSxIQ_CuBZyP_4n
from bard.google.com
Sure, here is the iframe script for embedding the YouTube video https://youtu.be/qgQENQmUVO4?si=1OSxIQ_CuBZyP_4n in your website:
VIDEO
This code will embed the YouTube video in a 560x315 pixel frame. You can adjust the width and height of the frame to fit your needs. You can also add other parameters to the src attribute to customize the playback experience, such as the autoplay parameter to automatically play the video when the page loads.