Widget:Video: Difference between revisions

From Knowledge-land-scape
No edit summary
No edit summary
Line 2: Line 2:
<!-- Check if the widget is being used for YouTube -->
<!-- Check if the widget is being used for YouTube -->
{{#ifeq:{{{type|}}}|youtube|
{{#ifeq:{{{type|}}}|youtube|
<iframe width="560" height="315" src="https://www.youtube.com/embed/{{{youtube|}}}" frameborder="0" allowfullscreen></iframe>
    <iframe width="560" height="315" src="https://www.youtube.com/embed/{{{youtube|}}}" frameborder="0" allowfullscreen></iframe>
<!-- Default video handling -->
<!-- Default video handling -->
{{#if:{{{webm|}}}|
{{#if:{{{webm|}}}|
<video style="<!--{$style}-->" controls>
    <video style="<!--{$style}-->" controls>
    <source src="<!--{$webm|validate:url}-->" type="video/webm" />
        {{#if:{{{webm|}}}|
    <!--{if $ogg}-->
        <source src="<!--{$webm|validate:url}-->" type="video/webm" />
    <source src="<!--{$ogg|validate:url}-->" type="video/ogg" />
        }}
    <!--{/if}-->
        {{#if:{{{ogg|}}}|
    <!--{if $mp4}-->
        <source src="<!--{$ogg|validate:url}-->" type="video/ogg" />
    <source src="<!--{$mp4|validate:url}-->" type="video/mp4" />
        }}
    <!--{/if}-->
        {{#if:{{{mp4|}}}|
    No support for the video tag, try using a more recent browser that supports HTML5 video.
        <source src="<!--{$mp4|validate:url}-->" type="video/mp4" />
</video>
        }}
        No support for the video tag, try using a more recent browser that supports HTML5 video.
    </video>
}}
}}
</includeonly>
</includeonly>

Revision as of 14:16, 16 September 2024