Bu sayfaya eklediğiniz kodlar hesabınızı tehlike altına sokacak kötü amaçlı içerik barındırabilir. Başka bir sayfada yer alan betikleri "mw.loader.load", "importScript" veya "iusc" gibi yöntemlerle kullanmadan önce, bu yöntemle içeriği başkaları tarafından kontrol edilebilecek uzaktaki bir betiği dinamik olarak yüklemiş olacağınızı bilmeniz gerekir. Sayfaya eklediğiniz kodun güvenli olup olmadığından emin değilseniz, Köy Çeşmesi'nde deneyimli kullanıcılara danışabilirsiniz. Kod, sayfa önizlemesinde de çalıştırılacaktır.
Not: Sayfayı kaydettikten sonra değişiklikleri görebilmek için tarayıcınızın önbelleğinizi temizlemeniz gerekir. Google Chrome, Firefox, Microsoft Edge ve Safari: ⇧ Shift tuşuna basılı tutun ve Yeniden Yükle araç çubuğu düğmesine tıklayın. Ayrıntılar ve diğer tarayıcılara yönelik yönergeler için Vikipedi:Önbelleğinizi atlayın sayfasını inceleyin.
/** * ProveIt is a powerful GUI tool to find, edit, add and cite references in any MediaWiki wiki * Full documentation at https://commons.wikimedia.org/wiki/Help:Gadget-ProveIt * * The gadget itself is loaded directly from Commons, but here are a few conditions to minimize requests * and a few configuration options specific to this wiki */// Only load on appropriate namespacesvarnamespace=mw.config.get('wgNamespaceNumber');if(namespace===0||namespace===2){// Only load when editing varaction=mw.config.get('wgAction');if(action==='edit'||action==='submit'){// Only load when editing wikitext (and not in common.js or common.css, for example)varcontentModel=mw.config.get('wgPageContentModel');if(contentModel==='wikitext'){// Configure the gadget for this particular wiki (all options are optional)mw.config.set({'proveit-tag':'',// Revision tag created at Special:Tags'proveit-summary':'',// Edit summary automatically added by ProveIt'proveit-templates':[// These templates should have their TemplateData defined'Şablon:Cite thesis']});// Load the dependenciesmw.loader.using(['mediawiki.cookie','jquery.textSelection','jquery.ui']).then(function(){// Load the latest code directly from Commonsmw.loader.load('//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-ProveIt.js&action=raw&ctype=text/javascript');mw.loader.load('//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-ProveIt.css&action=raw&ctype=text/css','text/css');});}}}