This is a wiki for a reason. Anyone can contribute. If you see something that is inaccurate or can be improved, don't ask that it be fixed--just improve it.
[ Disclaimer, Create new user --- Wiki markup help, Install P99 ]

Difference between revisions of "Template:Youtube"

From Project 1999 Wiki
Jump to: navigation, search
Line 19: Line 19:
 
  | width=400
 
  | width=400
 
}}
 
}}
</noinclude><includeonly><div class="youtube-placeholder" data-url="{{{1}}}">Loading Video ...</div></includeonly>
+
</noinclude><includeonly><div class="youtube-placeholder" {{#if: {{{height}}}| data-height="{{{height}}}"}} {{#if: {{{width}}}| data-width="{{{width}}}"}} data-url="{{{url|{{{1}}}}}}">Loading Video ...</div></includeonly>

Revision as of 00:41, 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 ...