Template:YouTube: Difference between revisions
From Bodhicitta
No edit summary |
(VSCode edit) |
||
| (8 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#widget:YouTubeEmbed | <includeonly>{{#widget:YouTubeEmbed | ||
|id={{#if: {{{ id | }}} | {{{ id | }}} | {{{ 1 | }}} }} | |id={{#if: {{{ id | }}} | {{{ id | }}} | {{{ 1 | }}} }} | ||
|thumb={{#if:{{{ thumb | }}} | |||
|{{filepath:{{PAGENAME:{{{ thumb | }}} }}|600}} | |||
|https://img.youtube.com/vi/{{{ id | }}}/hqdefault.jpg | |||
}} | |||
|containerClasses={{{ containerClasses | }}} | |containerClasses={{{ containerClasses | }}} | ||
|caption={{#if:{{{ captionLink | }}} | |caption={{#if:{{{ caption | }}} | ||
|{{#if:{{{ captionLink | }}} | |||
|<span class="blue-text underlined">{{{ caption | }}}</span><a href="/index.php/{{{ captionLink | }}}" class="overlay-link"></a> | |||
|{{#ask:[[Category:Multimedia]][[StreamingService::YouTube]][[VideoStreamID::{{{ id | }}}]] | |||
|limit=1 | |||
|link=none | |||
|searchlabel= | |||
|format=template | |||
|template=MediaLinkToSubpage | |||
|import-annotation=true | |||
|intro=<span class="blue-text underlined">{{{ caption | }}}</span> | |||
|default={{{ caption | }}} | |||
}} | |||
}} | |||
| | |||
}} | |||
|delay={{{ delay | }}} | |delay={{{ delay | }}} | ||
|end={{{ end | }}} | |end={{{ end | }}} | ||
| | |iconoverlay={{#if:{{{ iconoverlayCentered | }}} | ||
|<img src="<!--{$iconoverlayCentered|default:''}-->" width="200px" height="auto" class="opac-50"> | |||
|<i class="fa-brands fa-youtube fa-xl my-3 mx-2 opac-70" style="color: red;"></i> | |||
}} | |||
}}{{#subobject: | }}{{#subobject: | ||
|classification=YouTubeObject | |classification=YouTubeObject | ||
|id={{#if: {{{ id | }}} | {{{ id | }}} | {{{ 1 | }}} }} | |id={{#if: {{{ id | }}} | {{{ id | }}} | {{{ 1 | }}} }} | ||
}}</includeonly> | }}</includeonly> | ||