Difference between revisions 2543159 and 4050009 on nlwiktionary

//<nowiki>This prevents the parser from processing the file and generating transclusions and categories for it.
/** See talk page for details **/

//JsMwApi documentation is at http://en.wiktionary.org/wiki/User_talk:Conrad.Irwin/Api.js
(function() {
function JsMwApi (api_url, request_type) {

	if (!api_url) 
	{
		if (!mw.config.get('wgEnableAPI'))
			throw "Local API is not usable.";

		api_url = mw.config.get('wgScriptPath') + "/api.php";
	}

	if (!request_type)
	{
		if (api_url.indexOf('http://') == 0 || api_url.indexOf('https://') == 0)
(contracted; show full)			}

		} }, (prefs.get('labeller') == 'true' ? 'Disable' : 'Enable'))

		node.appendChild(toggle2);

	}
})