Template:YouTubeWithCommonsFallback: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
No edit summary |
No edit summary |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 27: | Line 27: | ||
.video-caption { |
.video-caption { |
||
font-size: small; |
font-size: small; |
||
line-height: 1; |
|||
color: #555; |
|||
} |
} |
||
.play-btn-large { |
.play-btn-large { |
||
Line 42: | Line 40: | ||
</div><!-- /video-wrapper --> |
</div><!-- /video-wrapper --> |
||
<div class="video-caption" style="text-align:center;"> |
<div class="video-caption" style="text-align:center;"> |
||
<p>This video hosted by YouTube.com is subject to its |
<p></html>This video hosted by YouTube.com is subject to its [https://www.youtube.com/t/terms Terms of Use] and [https://www.google.com/intl/en/policies/privacy/ Privacy Policy]. If you prefer, <span id="showcommonsvideo">[{{fullurl:commons:{{{commons|File:The_Impact_Of_Wikipedia.webm}}}}} view on Wikimedia Commons].</span><html></p> |
||
</div> |
</div> |
||
</div><!-- /video-outer-wrapper --> |
</div><!-- /video-outer-wrapper --> |
||
<script> |
<script> |
||
var videoTemplate = {}; |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
} |
|||
⚫ | |||
$('.video-youtube').remove(); |
$('.video-youtube').remove(); |
||
$('.video-placeholder').css('display', 'none'); |
$('.video-placeholder').css('display', 'none'); |
||
$('.video-commons').css('display', 'block'); |
$('.video-commons').css('display', 'block'); |
||
} |
}; |
||
videoTemplate.main = function() { |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
}) |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
}); |
|||
⚫ | |||
⚫ | |||
} |
|||
⚫ | |||
videoTemplate.runWhenReady = function() { |
|||
if ( window.$ ) { // is jquery loaded yet? |
|||
videoTemplate.main(); |
|||
} else { |
|||
window.setTimeout( videoTemplate.runWhenReady, 200 ); |
|||
} |
|||
⚫ | |||
videoTemplate.runWhenReady(); |
|||
</script> |
</script> |
||
</html><noinclude><pre>{{YouTubeWithCommonsFallback |
</html><noinclude><pre>{{YouTubeWithCommonsFallback |
||
Line 80: | Line 92: | ||
| commons = File:The_Impact_Of_Wikipedia.webm |
| commons = File:The_Impact_Of_Wikipedia.webm |
||
| width = 640 |
| width = 640 |
||
}}</pre |
}}</pre> |
||
[[Category:Utility templates]]</noinclude> |
Latest revision as of 14:57, 27 February 2019
{{YouTubeWithCommonsFallback | placeholder = Wikipedia_Puzzle_Globe.jpg | youtube = 3Knv6D6Thi0 | commons = File:The_Impact_Of_Wikipedia.webm | width = 640 }}