[ Disclaimer, Create new user --- Wiki markup help, Install P99 ]
Difference between revisions of "Template:Youtube"
From Project 1999 Wiki
Line 2: | Line 2: | ||
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). | 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 #1: Basic === |
<code><nowiki>{{youtube | https://www.youtube.com/embed/CBttHicGbek}}</nowiki></code> | <code><nowiki>{{youtube | https://www.youtube.com/embed/CBttHicGbek}}</nowiki></code> | ||
{{youtube| https://www.youtube.com/embed/CBttHicGbek}} | {{youtube| https://www.youtube.com/embed/CBttHicGbek}} | ||
+ | |||
+ | === Example #2: Specific Dimensions === | ||
+ | |||
+ | <code><nowiki>{{youtube | ||
+ | | height=400 | ||
+ | | url= https://www.youtube.com/embed/CBttHicGbek | ||
+ | | width=400 | ||
+ | }}</nowiki></code> | ||
+ | {{youtube | ||
+ | | height=400 | ||
+ | | url= https://www.youtube.com/embed/CBttHicGbek | ||
+ | | width=400 | ||
+ | }} | ||
</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 00:40, 23 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 #1: Basic
{{youtube | https://www.youtube.com/embed/CBttHicGbek}}
Loading Video ...
Example #2: Specific Dimensions
{{youtube
| height=400
| url= https://www.youtube.com/embed/CBttHicGbek
| width=400
}}
Loading Video ...