MediaWiki:Gadget-ProveIt.js
Jump to navigation
Jump to search
This page controls the interface of EndMyopia Wiki. You should only be editing this page if you know what you're doing |
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/** * ProveIt is a powerful reference manager for Wikipedia * Documentation at https://commons.wikimedia.org/wiki/Help:Gadget-ProveIt * * This script sets the configuration options specific to this wiki * and loads the gadget code from Wikimedia Commons */ function loadProveIt() { mw.config.set({ 'proveit-tag': 'ProveIt', // Revision tag defined at Special:Tags (optional) 'proveit-summary': 'Reference edited with [[Commons:Help:Gadget-ProveIt|ProveIt]]', // Automatic edit summary (optional) 'proveit-templates': [ // Citation templates (without namespace) 'Citation', 'Cite arXiv', 'Cite AV media', 'Cite book', 'Cite encyclopedia', 'Cite episode', 'Cite interview', 'Cite Jake Steiner (eye guru)', 'Cite journal', 'Cite magazine', 'Cite news', 'Cite paper', 'Cite press release', 'Cite report', 'Cite speech', 'Cite thesis', 'Cite tweet', 'Cite web', ], 'proveit-namespaces': [ // Supported namespaces (see https://www.mediawiki.org/wiki/Manual:Namespace_constants) 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,118,119, 3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009, 3010, 3011, 3012, 3013, 3014, 3015, 3016, 3017, 3018, 3019, 3020, 3021, 3022, 3023, 3024, 3025, 3026, 3027, 3028, 3029, 3030, 3031, 3032, 3033, 3034, 3035, 3036, 3037, 3038, 3039, 3040, 3041, 3042, 3043, 3044, 3045, 3046, 3047, 3048, 3049, 3050, 3051, 3052, 3053, 3054, 3055, 3056, 3057, 3058, 3059, 3060, 3061, 3062, 3063, 3064, 3065, 3066, 3067, 3068, 3069, 3070, 3071, 3072, 3073, 3074, 3075, 3076, 3077, 3078, 3079, 3080, 3081, 3082, 3083, 3084, 3085, 3086, 3087, 3088, 3089, 3090, 3091, 3092, 3093, 3094, 3095, 3096, 3097, 3098, 3099, 3100, 3101 ] }); mw.loader.load( '//commons.wikimedia.org/w/load.php?modules=ext.gadget.ProveIt&only=scripts' ); mw.loader.load( '//commons.wikimedia.org/w/load.php?modules=ext.gadget.ProveIt&only=styles', 'text/css' ); } // Only load when editing mw.hook( 'wikipage.editform' ).add( loadProveIt ); mw.hook( 've.activationComplete' ).add( loadProveIt );