Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
importScript('User:Dr_pda/editrefs.js');// Backlink: [[User:Dr pda/editrefs.js]]//importScript('User:Salix alba/Citoid.js');/** * 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':'ProveIt edit',// Revision tag created at Special:Tags'proveit-summary':'Reference edited with ProveIt',// Edit summary automatically added by ProveIt'proveit-templates':[// These templates should have their TemplateData defined'Template:Cite book','Template:Cite encyclopedia','Template:Cite web']});// 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');});}}}varval,a=['a','b'];for(valofa){console.log(val);}