Diferencia entre revisiones de «MediaWiki:Gadget-TemplateScript.js»

updated scripts
m (Don't load stuff from github per the privacy policy)
(updated scripts)
//<nowiki>
/**
* TemplateScript adds configurable templates and scripts to the sidebar, and adds an example regex editor.
* @see https://meta.wikimedia.org/wiki/User:Pathoschild/Scripts/TemplateScript
* @update-token [[File:Pathoschildpathoschild/Templatescripttemplatescript.js]]
*/
// <prenowiki>
$.getScriptajax('//tools-static.wmflabs.org/pathoschild-contribmeta/scripts/pathoschild.templatescript.js', { dataType:'script', cache:true }).then(function() {
pathoschild.TemplateScript.Addadd([
{ name: 'Bienvenida', template: '{{subst:Bienvenido usuario}} ~~~~', position: 'after', editSummary: 'Bienvenido a Wikipedia en español', forNamespaces: 3, forActions: 'edit' },
// add your own templates or scripts here
]);
});
// </prenowiki>
377

ediciones