User:Ricky Lau/fixWiki.js

维基百科,自由的百科全书

注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google ChromeFirefoxMicrosoft EdgeSafari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。

/*<nowiki>
	fixWiki.js - fixWiki for Project CheckWikipedia
	Author: Ricky Lau (RickyLauKO [at] GMail [dot] Com)
	Last modified: 2009-05-15T08:48Z

	By default, these file should be located below.
	Under Ricky_Lau's user namespace:
	commonTools.js, fixWikiLanguage.js, fixWikiCore.js
	Under your user namespace:
	fixWikiSettings.js, fixWikiAutofix.js

	By setting these variables before including loader file, you can change where to load above file
	True = Under youruser namespace; false = Under Ricky_Lau's user namespace
	var comtOwnCommonTools - commonTools.js [ Default: false; This should remain in Ricky_Lau's user namespace in maintenance purpose ]
	var fiwOwnLangFile - fixWikiLanguage.js [ Default: false; This should remain in Ricky_Lau's user namespace in maintenance purpose ]
	var fiwOwnSettings - fixWikiSettings.js [ Default: true; This should be loaded from your user namespace or you cannot change settings ]
	var fiwOwnAF - fixWikiAutofix.js [ Default: true; This should be loaded from your user namespace or you cannot customize autofix ]
	var fiwOwnCore - fixWikiCore.js [ Default: false; This should remain in Ricky_Lau's user namespace in maintenance purpose ]

	If you want to add customize functions, you can write in a new js file, then include it in monobook.js instead of overwriting fixWikiCore.js
	(Unless you want to override fixWiki's core functions)
	This file should not be edited unless you know what these syntax exactly do
*/

// Common tools original author, used to determine default location of js files and Common tools manual
var comtAuthor = 'Ricky_Lau';
// fixWiki original author, used to determine default location of js files and fixWiki manual
var fiwAuthor = 'Ricky_Lau';

// Default settings for js files' location
var comtOwnCommonTools = (typeof comtOwnCommonTools != 'undefined')?comtOwnCommonTools:false;
var fiwOwnLangFile = (typeof fiwOwnLangFile != 'undefined')?fiwOwnLangFile:false;
var fiwOwnSettings = (typeof fiwOwnSettings != 'undefined')?fiwOwnSettings:true;
var fiwOwnAF = (typeof fiwOwnAF != 'undefined')?fiwOwnAF:true;
var fiwOwnCore = (typeof fiwOwnCore != 'undefined')?fiwOwnCore:false;

// Include all essential script files
if (!(typeof commToolsOK == 'function' && commToolsOK () == true)) {
	importScript ('User:' + (comtOwnCommonTools?wgUserName:comtAuthor) + '/commonTools.js');
}
importScript ('User:' + (fiwOwnLangFile?wgUserName:fiwAuthor) + '/fixWikiLanguage.js');
importScript ('User:' + (fiwOwnSettings?wgUserName:fiwAuthor) + '/fixWikiSettings.js');
importScript ('User:' + (fiwOwnAF?wgUserName:fiwAuthor) + '/fixWikiAutofix.js');
importScript ('User:' + (fiwOwnCore?wgUserName:fiwAuthor) + '/fixWikiCore.js');

/*
	This is the end of fixWiki.js
</nowiki>*/