Template:YouTubeWithCommonsFallback: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 40:
</div><!-- /video-wrapper -->
<div class="video-caption" style="text-align:center;">
</html>{{#if:{{{caption|}}}|<p>{{{caption}}}</p>}}<html>
<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].
</div>
</div><!-- /video-outer-wrapper -->
<script>
function inlineScriptWhenReady() {
/* Wrapper function so waits until jQuery ready - see MediaWiki:Common.js */
videoTemplate.showCommonsVideo = function() {▼
$('.video-youtube').remove();▼
$('.video-placeholder').css('display', 'none');▼
$('.video-commons').css('display', 'block');▼
};▼
$(".video-placeholder").click(function () {
$(this).replaceWith(
Line 69 ⟶ 64:
$("#showcommonsvideo a").click(function(event){
event.preventDefault();
});
if( mw.util.getParamValue( "commons" ) == "true" ){
}
}
▲ $('.video-youtube').remove();
▲ $('.video-placeholder').css('display', 'none');
▲ $('.video-commons').css('display', 'block');
</script>
</html><noinclude><pre>{{YouTubeWithCommonsFallback
Line 91 ⟶ 82:
| youtube = 3Knv6D6Thi0
| commons = File:The_Impact_Of_Wikipedia.webm
| caption = Caption
| width = 640
}}</pre></noinclude>
|