Template:Media: Difference between revisions

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 |
|{{#ev:{{#switch:{{#external_value:StreamingService}}
<!-- (1) video wrapper -->
|YouTube=youtube
<div class="youtube" data-embed="{{{VideoStreamID}}}">
|Vimeo=vimeo
|SoundCloud=soundcloud
    <!-- (2) the "play" button -->
|TED Talk=ted
    <div class="play-button"></div>
|Vine=vine
   
</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
}}
}}
|{{#external_value:VideoStreamID}}
|{{#ifexist:{{#external_value:pdflink}}
|830{{#ifeq: {{#external_value:StreamingService}} | SoundCloud |x450 | }}
|{{#if: {{#external_value:frontcoverimg}}
|center
|<center>[[{{#external_value:frontcoverimg}}|x300px]]</center>
}}
|
|{{#ifexist:{{#external_value:pdflink}}
}}
|{{#if: {{#external_value:frontcoverimg}}
<center>{{InsertMedia|{{PAGENAME}} }}</center>
|<center>[[{{#external_value:frontcoverimg}}|x300px]]</center>
|{{#if: {{#external_value:ItemUrl}}
|
| <div class="float-left mr-4">{{#widget:HTML5AudioWrapper
}}
|filepath={{#external_value:ItemUrl}}
<center>{{InsertMedia|{{PAGENAME}} }}</center>
}}</div>
|{{#if: {{#external_value:ItemUrl}}
|
| <div class="float-left mr-4">{{#widget:HTML5AudioWrapper
}}
|filepath={{#external_value:ItemUrl}}
}}</div>
|
}}
}}
}}
}}

Revision as of 16:44, 18 June 2020