Difference between revisions of "Template:Media"
From Buddha-Nature
((by SublimeText.Mediawiker)) |
((by SublimeText.Mediawiker)) |
||
Line 39: | Line 39: | ||
<div class="col-lg-9 pr-lg-4">{{#if: {{#external_value:MediaSeries}} | <div class="col-lg-9 pr-lg-4">{{#if: {{#external_value:MediaSeries}} | ||
| {{GetMediaSeriesMembers | {{#external_value:MediaSeries}} | {{#external_value:Description}} }} | | {{GetMediaSeriesMembers | {{#external_value:MediaSeries}} | {{#external_value:Description}} }} | ||
− | | {{#if: {{#external_value:StreamingService}} | + | | {{#ifeq: {{#external_value:StreamingService}} | YouTube | |
− | + | <!-- (1) video wrapper --> | |
− | + | <div class="youtube" data-embed="{{{VideoStreamID}}}"> | |
− | + | ||
− | + | <!-- (2) the "play" button --> | |
− | + | <div class="play-button"></div> | |
− | + | ||
+ | </div> | ||
+ | | {{#if: {{#external_value:StreamingService}} | ||
+ | |{{#ev:{{#switch:{{#external_value:StreamingService}} | ||
+ | |YouTube=youtube | ||
+ | |Vimeo=vimeo | ||
+ | |SoundCloud=soundcloud | ||
+ | |TED Talk=ted | ||
+ | |Vine=vine | ||
+ | }} | ||
+ | |{{#external_value:VideoStreamID}} | ||
+ | |830{{#ifeq: {{#external_value:StreamingService}} | SoundCloud |x450 | }} | ||
+ | |center | ||
}} | }} | ||
− | + | |{{#ifexist:{{#external_value:pdflink}} | |
− | + | |{{#if: {{#external_value:frontcoverimg}} | |
− | + | |<center>[[{{#external_value:frontcoverimg}}|x300px]]</center> | |
− | + | | | |
− | + | }} | |
− | + | <center>{{InsertMedia|{{PAGENAME}} }}</center> | |
− | + | |{{#if: {{#external_value:ItemUrl}} | |
− | + | | <div class="float-left mr-4">{{#widget:HTML5AudioWrapper | |
− | + | |filepath={{#external_value:ItemUrl}} | |
− | + | }}</div> | |
− | + | | | |
− | + | }} | |
− | |||
− | |||
− | |||
}} | }} | ||
}} | }} |