Template:Ytv: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<html> | <html> | ||
<iframe width="425" height="349" align="{{{2|right}}}" src="https://www.youtube.com/embed/{{{1|-tPePpMxJaA}}}" title="{{{3|YouTube video player}}}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> | <iframe width="425" height="349" align="</html>{{{2|right}}}<html>" src="https://www.youtube.com/embed/</html>{{{1|-tPePpMxJaA}}}<html>" title="</html>{{{3|YouTube video player}}}<html>" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> | ||
</html><noinclude> | </html><noinclude> | ||
---- | ---- | ||
Line 10: | Line 10: | ||
When you see a YouTube URL like this: | When you see a YouTube URL like this: | ||
<nowiki> | <nowiki>https://www.youtube.com/watch?v=</nowiki>'''-tPePpMxJaA''' | ||
The bold part is the "code" (parameter one), the second (optional) parameter is how to align the video. | The bold part is the "code" (parameter one), the second (optional) parameter is how to align the video. |
Revision as of 16:23, 4 December 2022
This template is used for linking YouTube videos
Usage: {{ytv|code|(none,top,middle,bottom,left,right)|caption)}}
When you see a YouTube URL like this:
https://www.youtube.com/watch?v=-tPePpMxJaA
The bold part is the "code" (parameter one), the second (optional) parameter is how to align the video.