Difference between revisions of "Template:Media"

From Buddha-Nature
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
Line 68: Line 68:
 
<div class="row mt-5 mb-4">
 
<div class="row mt-5 mb-4">
 
<div class="col-lg-6 pt-3">
 
<div class="col-lg-6 pt-3">
{{#if:{{#external_value:pdflink}}
+
{{#if: {{#external_value:StreamingService}}
|{{#if: {{#external_value:frontcoverimg}}
+
|{{#ev:{{#switch:{{#external_value:StreamingService}}
|<center>[[{{#external_value:frontcoverimg}}|x300px]]</center>|}}
+
|YouTube=youtube
<center>{{InsertMedia|{{#external_value:pdflink}} }}</center>
+
|Vimeo=vimeo
|{{#if: {{#external_value:StreamingService}}
+
|SoundCloud=soundcloud
|{{#ev:{{#switch:{{#external_value:StreamingService}}
+
|TED Talk=ted
|YouTube=youtube
+
|Vine=vine
|Vimeo=vimeo
 
|SoundCloud=soundcloud
 
|TED Talk=ted
 
|Vine=vine
 
}}
 
|{{#external_value:VideoStreamID}}
 
|{{#switch:{{#external_value:StreamingService}}
 
|YouTube=
 
|Vimeo=
 
|SoundCloud=750
 
|TED Talk=
 
|Vine=
 
}}
 
|left
 
 
}}
 
}}
 +
|{{#external_value:VideoStreamID}}
 +
|{{#switch:{{#external_value:StreamingService}}
 +
|YouTube=
 +
|Vimeo=
 +
|SoundCloud=750
 +
|TED Talk=
 +
|Vine=
 +
}}
 +
|left
 +
}}
 +
|{{#if:{{#external_value:pdflink}}
 +
|{{#if: {{#external_value:frontcoverimg}}
 +
|<center>[[{{#external_value:frontcoverimg}}|x300px]]</center>
 +
|
 +
}}
 +
<center>{{InsertMedia|{{#external_value:pdflink}} }}</center>
 
|
 
|
 
}}
 
}}

Revision as of 16:58, 24 July 2018