Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
Ben Barrett (talk | contribs) |
Ben Barrett (talk | contribs) |
||
| Line 29: | Line 29: | ||
// </nowiki> | // </nowiki> | ||
Revision as of 07:09, 12 March 2017
/* Including extra .js pages */
// switches for scripts
var load_edittools = true;
// extra drop down menu on editing for adding special characters
includePage( 'MediaWiki:Edittools.js' );
// <nowiki>
function includePage( name )
{
document.write('<script type="text/javascript" src="' + wgScript + '?title='
+ name
+ '&action=raw&ctype=text/javascript"><\/script>'
);
}
/* End of includePage */
/* Including extra .js pages */
// switches for scripts
// TODO: migrate to JSConfig
// var load_extratabs = true;
var load_edittools = true;
// extra drop down menu on editing for adding special characters
includePage( 'MediaWiki:Edittools.js' );
// </nowiki>