Difference between revisions of "Template:Media"

From Buddha-Nature
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
Line 56: Line 56:
 
<div class="col-lg-9 pr-lg-4">{{#if: {{DrlValue|MediaSeries}}  
 
<div class="col-lg-9 pr-lg-4">{{#if: {{DrlValue|MediaSeries}}  
 
| {{GetMediaSeriesMembers | {{DrlValue|MediaSeries}} | {{#urldecode:{{DrlValue|EncodedDescription}}}} }}   
 
| {{GetMediaSeriesMembers | {{DrlValue|MediaSeries}} | {{#urldecode:{{DrlValue|EncodedDescription}}}} }}   
| {{#ifeq: {{DrlValue|StreamingService}} | YouTube |
+
| {{#if: {{DrlValue|StreamingService}}
<!-- (1) video wrapper -->
+
|{{#ev:{{#switch:{{DrlValue|StreamingService}}
<div class="youtube" data-embed="{{DrlValue|VideoStreamID}}">
+
|YouTube=youtube
+
|Vimeo=vimeo
    <!-- (2) the "play" button -->
+
|SoundCloud=soundcloud
    <div class="play-button"></div>
+
|TED Talk=ted
   
+
|Vine=vine
</div>
 
| {{#if: {{DrlValue|StreamingService}}
 
|{{#ev:{{#switch:{{DrlValue|StreamingService}}
 
|YouTube=youtube
 
|Vimeo=vimeo
 
|SoundCloud=soundcloud
 
|TED Talk=ted
 
|Vine=vine
 
}}
 
|{{DrlValue|VideoStreamID}}
 
|830{{#ifeq: {{DrlValue|StreamingService}} | SoundCloud |x450 | }}
 
|center
 
 
}}
 
}}
|{{#ifexist:{{DrlValue|pdflink}}
+
|{{DrlValue|VideoStreamID}}
|{{#if: {{DrlValue|frontcoverimg}}
+
|830{{#ifeq: {{DrlValue|StreamingService}} | SoundCloud |x450 | }}
|<center>[[{{DrlValue|frontcoverimg}}|x300px]]</center>
+
|center
|
+
}}
}}
+
|{{#ifexist:{{DrlValue|pdflink}}
<center>{{InsertMedia|{{PAGENAME}} }}</center>
+
|{{#if: {{DrlValue|frontcoverimg}}
|{{#if: {{DrlValue|ItemUrl}}
+
|<center>[[{{DrlValue|frontcoverimg}}|x300px]]</center>
| <div class="float-left mr-4">{{#widget:HTML5AudioWrapper
+
|
|filepath={{DrlValue|ItemUrl}}
+
}}
}}</div>
+
<center>{{InsertMedia|{{PAGENAME}} }}</center>
|
+
|{{#if: {{DrlValue|ItemUrl}}
}}
+
| <div class="float-left mr-4">{{#widget:HTML5AudioWrapper
 +
|filepath={{DrlValue|ItemUrl}}
 +
}}</div>
 +
|
 
}}
 
}}
 
}}
 
}}
}}{{#if: {{DrlValue|LocalMediaFile}}
+
}}{{#if: {{DrlValue|LocalMediaFile}} |
|
 
 
{{{!}} class="smwtable-clean mt-4 w-100 border-bottom"
 
{{{!}} class="smwtable-clean mt-4 w-100 border-bottom"
 
{{!}}-
 
{{!}}-

Revision as of 14:13, 1 February 2023