Template:YoutubePopup: Difference between revisions
Jump to navigation
Jump to search
(Second parameter: if 'big', shows bigger thumbnail) |
(Added support for all thumbnails) |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
==Usage Examples== | ==Usage Examples== | ||
<nowiki>{{YoutubePopup|6dwdAF2qr7g}}</nowiki> | <nowiki> | ||
{{YoutubePopup|6dwdAF2qr7g|big}} | |||
{{YoutubePopup|6dwdAF2qr7g|1}} | |||
{{YoutubePopup|6dwdAF2qr7g|2}} | |||
{{YoutubePopup|6dwdAF2qr7g|3}} | |||
</nowiki> | |||
gives | gives | ||
{{YoutubePopup|6dwdAF2qr7g|big}} | {{YoutubePopup|6dwdAF2qr7g|big}} | ||
{{YoutubePopup|6dwdAF2qr7g|1}} | |||
{{YoutubePopup|6dwdAF2qr7g|2}} | |||
{{YoutubePopup|6dwdAF2qr7g|3}} | |||
---- | ---- | ||
</noinclude><includeonly><html><a target='_blank' href="https://www.youtube.com/embed//</html>{{{1}}}<html>"></html>http://img.youtube.com/vi/{{{1}}}/{{#switch: {{{2}}} | </noinclude><includeonly><html><a target='_blank' href="https://www.youtube.com/embed//</html>{{{1}}}<html>"></html>http://img.youtube.com/vi/{{{1}}}/{{#switch: {{{2}}} | ||
| big = 0 | | big = 0 | ||
| 1 = 1 | |||
| 2 = 2 | |||
| 3 = 3 | |||
| #default = default | | #default = default | ||
}}.jpg<html></a></html></includeonly> | }}.jpg<html></a></html></includeonly> |
Revision as of 04:48, 21 September 2011
Usage Examples
{{YoutubePopup|6dwdAF2qr7g|big}} {{YoutubePopup|6dwdAF2qr7g|1}} {{YoutubePopup|6dwdAF2qr7g|2}} {{YoutubePopup|6dwdAF2qr7g|3}}
gives
http://img.youtube.com/vi/6dwdAF2qr7g/0.jpg http://img.youtube.com/vi/6dwdAF2qr7g/1.jpg http://img.youtube.com/vi/6dwdAF2qr7g/2.jpg http://img.youtube.com/vi/6dwdAF2qr7g/3.jpg