Difference between revisions of "MediaWiki:Common.js"

From Freephile Wiki
Jump to navigation Jump to search
(install wikEd)
Line 1: Line 1:
 
/* Any JavaScript here will be loaded for all users on every page load. */
 
/* Any JavaScript here will be loaded for all users on every page load. */
  
/*  This would be one way of enabling wikEd
+
// install [[Wikipedia:User:Cacycle/wikEd]] in-browser text editor
// install [[User:Cacycle/wikEd]] in-browser text editor
+
importScriptURI('//en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'
document.write('<script type="text/javascript" src="'
+
+ '&action=raw&ctype=text/javascript');
+ 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'
+
 
+ '&action=raw&ctype=text/javascript"></' + 'script>');
+
[[Category:Wiki]]
*/
 
/* having character set problem */
 

Revision as of 22:46, 24 February 2015

/* Any JavaScript here will be loaded for all users on every page load. */

// install [[Wikipedia:User:Cacycle/wikEd]] in-browser text editor
importScriptURI('//en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'
+ '&action=raw&ctype=text/javascript');

[[Category:Wiki]]