Template:Ytv: Difference between revisions

From Custom Pinball Index
Jump to navigation Jump to search
(Created page with "<html> <object width="425" height="349" hspace="5" vspace="20" align="</html>{{{2|none}}}<html>"><center><font size="-2"></html>{{{3|}}}<html></font></center><param name="movie" value="http://www.youtube.com/v/</html>{{{1|-tPePpMxJaA}}}<html>&hl=en&fs=1&color1=0xff0000&color2=0xff0000&border=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/</html>{{{1|-tPePpMxJaA}}}<html>&hl=en&fs=1&color1=0x0000aa&color2=0xf5faff&border=...")
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<html>
<html>
<object width="425" height="349" hspace="5" vspace="20" align="</html>{{{2|none}}}<html>"><center><font size="-2"></html>{{{3|}}}<html></font></center><param name="movie" value="http://www.youtube.com/v/</html>{{{1|-tPePpMxJaA}}}<html>&hl=en&fs=1&color1=0xff0000&color2=0xff0000&border=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/</html>{{{1|-tPePpMxJaA}}}<html>&hl=en&fs=1&color1=0x0000aa&color2=0xf5faff&border=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="349"></embed></object>
<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 17: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.