User:Geniac/IMDbLinkTemplater.js

pathoschild.TemplateScript.add({	name:'IMDbLinkTemplater',		script: function(editor) {		const titlelink = /\[https:\/\/www\.imdb\.com\/title\/tt(.......)\/.*/;		const namelink = /\[https:\/\/www\.imdb\.com\/name\/nm(.......)\/.*/;		editor			.replace(titlelink, )			.replace(namelink, )			.appendEditSummary('templated IMDb link')			.clickDiff;	} });