[ Disclaimer, Create new user --- Wiki markup help, Install P99 ]
Difference between revisions of "Template:Youtube"
From Project 1999 Wiki
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
− | This template allows you to embed a Youtube video in a page. | + | This template allows you to embed a Youtube video in a page. Note that the URL must be an "embed" URL (ie. it should start with the Youtube URL, followed by "/embed/", then the video ID). |
=== Example === | === Example === | ||
− | <code><nowiki>{{youtube| https:// | + | <code><nowiki>{{youtube | https://www.youtube.com/embed/CBttHicGbek}}</nowiki></code> |
− | + | ||
{{youtube| https://youtu.be/CBttHicGbek}} | {{youtube| https://youtu.be/CBttHicGbek}} | ||
</noinclude><includeonly><div class="youtube-placeholder" data-url="{{{1}}}">Loading Video ...</div></includeonly> | </noinclude><includeonly><div class="youtube-placeholder" data-url="{{{1}}}">Loading Video ...</div></includeonly> |
Revision as of 17:11, 22 October 2019
This template allows you to embed a Youtube video in a page. Note that the URL must be an "embed" URL (ie. it should start with the Youtube URL, followed by "/embed/", then the video ID).
Example
{{youtube | https://www.youtube.com/embed/CBttHicGbek}}
Loading Video ...