Difference between revisions 240028 and 259991 on ptwikibooks

// @update-token: [[File:pathoschild/templatescript.js]]
// Copied from https://raw.github.com/Pathoschild/Wikimedia-contrib/master/pathoschild.templatescript.js
/*


TemplateScript adds a menu of configurable templates and scripts to the sidebar.
For more information, see <https://github.com/Pathoschild/Wikimedia-contrib#readme>.


*/
/*jshint bitwise:true, eqeqeq:true, forin:false, immed:true, latedef:true, loopfunc:true, noarg:true, noempty:true, nonew:true, smarttabs:true, strict:true, trailing:true, undef:true*/
/*global $:true, mw:true*/
/// <reference path="pathoschild.util.js" />
var pathoschild = pathoschild || {};
(function() {
	"'use strict";';

	if (pathoschild.TemplateScript)
		return; // already initialized, don't overwrite

	/*********
	** TemplateScript
	*********/
	/**
(contracted; show full)		script: function(context) {
			pathoschild.TemplateScript._LoadDependency('//pt.wikibooks.org/w/index.php?title=User:Helder.wiki/Tools/Pathoschild/RegexEditor.js&action=raw&ctype=text/javascript&smaxage=21600&maxage=86400', pathoschild.RegexEditor, function() {
				pathoschild.RegexEditor.Create(context.$target);
			});
		},
		forActions: 'edit'
	});
}());