Difference between revisions of "Template:Media"

From Buddha-Nature
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
Line 72: Line 72:
 
| {{GetMediaSeriesMembers | {{#external_value:MediaSeries}} | {{#external_value:Description}} }}   
 
| {{GetMediaSeriesMembers | {{#external_value:MediaSeries}} | {{#external_value:Description}} }}   
 
| {{#if: {{#external_value:StreamingService}}
 
| {{#if: {{#external_value:StreamingService}}
|{{#ev:{{#switch:{{#external_value:StreamingService}}
+
|<embedvideo service="{{#switch:{{#external_value:StreamingService}}
 
|YouTube=youtube
 
|YouTube=youtube
 
|Vimeo=vimeo
 
|Vimeo=vimeo
 
|SoundCloud=soundcloud
 
|SoundCloud=soundcloud
 
|TED Talk=ted
 
|TED Talk=ted
|Vine=vine
+
}}" dimensions="1060" alignment="center">{{#switch:{{#external_value:StreamingService}}
}}
+
|YouTube=https://www.youtube.com/watch?v=
|{{#external_value:VideoStreamID}}
+
|Vimeo=https://vimeo.com/
|1060
+
|SoundCloud=
|center
+
|TED Talk=https://www.ted.com/talks/
}}
+
}}{{#external_value:VideoStreamID}}{{#switch:{{#external_value:StreamingService}}
 +
|YouTube=?rel=0
 +
|Vimeo=
 +
|SoundCloud=
 +
|TED Talk=
 +
}}</embedvideo>
 
|{{#if:{{#external_value:pdflink}}
 
|{{#if:{{#external_value:pdflink}}
 
|{{#if: {{#external_value:frontcoverimg}}
 
|{{#if: {{#external_value:frontcoverimg}}

Revision as of 12:54, 14 August 2018