Difference between revisions 258562 and 258567 on ptwikibooks

/**
 * TemplateScript
 * Adds a menu of configurable templates and scripts to the sidebar
 * @author: [[m:user:Pathoschild]] ([[meta:User:Pathoschild/Scripts/TemplateScript]])
 * @update-token: [[File:pathoschild/templatescript.js]]
 * @author: [[User:Helder.wiki]] (this configuration file)
 * @tracking: [[Special:GlobalUsage/User:Helder.wiki/Tools/TemplateScript.js]] ([[File:User:Helder.wiki/Tools/TemplateScript.js]])
 */
(contracted; show full)	newSign = '[[' + proj + lang + 'User:Helder.wiki|Helder]]';
	regex( context, [{
		find: reOldSign,
		replace: newSign
	}], 'Fixing links (my user account was renamed)' );
	if ( useLocalUserPage ) {
		regex( context, [{
			find: /\[\[
(?:b:(?:pt:)?|:pt:)User:Helder.wiki\|Helder\]\]/g,
			replace: newSign
		}], 'Fixing links (my user account was renamed)' );
	}
	showDiff();
}

function convertRefs( context ){
	oldText = context.$target.val();
	list = [{
(contracted; show full)			script: usingRegex
		});
	}
}

$.getScript( '//pt.wikibooks.org/w/index.php?title=User:Helder.wiki/Tools/Pathoschild/TemplateScript.js&action=raw&ctype=text/javascript&smaxage=21600&maxage=86400', loadMyRegexTools );

}( mediaWiki, jQuery ) );