Template:Ytv: Difference between revisions

From Custom Pinball Index
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<html>
<html>
<iframe width="425" height="349" 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 6: Line 6:


Usage:
Usage:
<nowiki>{{ytv|code|(none,top,middle,bottom,left,right)|caption)}}</nowiki>
<nowiki>{{ytv|code|(right,left,top,middle,bottom)|caption)}}</nowiki>


When you see a YouTube URL like this:
When you see a YouTube URL like this:


<nowiki>http://www.youtube.com/watch?v=</nowiki>'''-tPePpMxJaA'''
<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.

Latest revision as of 16:25, 4 December 2022


This template is used for linking YouTube videos

Usage: {{ytv|code|(right,left,top,middle,bottom)|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.