Kangaroopower
Welcome to Meta!
editHello Kangaroopower, and welcome to the Wikimedia Meta-Wiki! This website is for coordinating and discussing all Wikimedia projects. You may find it useful to read our policy page. If you are interested in doing translations, visit Meta:Babylon. You can also leave a note on Meta:Babel or Wikimedia Forum (please read the instructions at the top of the page before posting there). Happy editing!
-- 03:18, 5 July 2011 (UTC)
Watchers Toolserver
editHi! Done for you. :) The Helpful One 18:03, 16 January 2012 (UTC)
re: cutting down code
editHi Kangaroopower. You asked me a while back whether it was possible to cut down on this TemplateScript code:
$.getScript( 'http://meta.wikimedia.org/w/index.php?title=User:Pathoschild/Scripts/TemplateScript/dev.js&action=raw&ctype=text/javascript', function() {
/* templates */
if(pathoschild.TemplateScript.IsEnabled({forActions:'edit'})) {
pathoschild.TemplateScript.Add([
{ name:'Vandal-1', template:"{{subst:uw-vandalism1}} --~~~~", position:'after', editSummary:'Warning user for Vandalism edits', forNamespaces:3, category:'Vandals' },
{ name:'Vandal-2', template:"{{subst:uw-vandalism2}} --~~~~", position:'after', editSummary:'Warning user for Vandalism edits', forNamespaces:3, category:'Vandals' },
{ name:'Vandal-3', template:"{{subst:uw-vandalism3}} --~~~~", position:'after', editSummary:'Warning user for Vandalism edits', forNamespaces:3, category:'Vandals' },
{ name:'Vandal-4', template:"{{subst:uw-vandalism4}} --~~~~", position:'after', editSummary:'Warning user for Vandalism edits', forNamespaces:3, category:'Vandals' },
{ name:'Vandal-4im', template:"{{subst:Uw-vandalism4im}} --~~~~", position:'after', editSummary:'Warning user for Vandalism edits', forNamespaces:3, category:'Vandals' }
]);
}
});
The shortest code is still a loop, but the latest version of TemplateScript has a new feature that lets you specify common fields only once:
$.getScript( 'http://meta.wikimedia.org/w/index.php?title=User:Pathoschild/Scripts/TemplateScript/dev.js&action=raw&ctype=text/javascript', function() {
/* templates */
pathoschild.TemplateScript.AddWith(
{position:'after', 'editSummary':'Warning user for Vandalism edits', forActions:'edit', forNamespaces:3, category:'Vandals'},
[
{ name:'Vandal-1', template:"{{subst:uw-vandalism1}} --~~~~" },
{ name:'Vandal-2', template:"{{subst:uw-vandalism2}} --~~~~" },
{ name:'Vandal-3', template:"{{subst:uw-vandalism3}} --~~~~" },
{ name:'Vandal-4', template:"{{subst:uw-vandalism4}} --~~~~" },
{ name:'Vandal-4im', template:"{{subst:Uw-vandalism4im}} --~~~~" }
]
);
});
You should be automatically updated to the new version. :) —Pathoschild 05:42, 27 May 2012 (UTC)
Wikimedia Travel Guide: Naming poll open
editHi there,
You are receiving this message because you voiced your opinion at the Request for Comment on the Wikimedia Travel Guide.
The proposed naming poll opened a few days ago and you can vote for as many of the proposed names as you wish, if you are eligible. Please see Travel Guide/Naming Process for full details on voting eligibility and how the final name will be selected. Voting will last for 14 days, and will terminate on 16 October at 06:59:59 UTC.
Hello Kangaroopower. I just finished handling your request for global user pages, and archived the request & bot log. :) —Pathoschild 21:14, 24 March 2013 (UTC)
Global CSS/JS migration
editHello Kangaroopower. You have global scripts in User:Kangaroopower/global.js, which you import using your local JS pages. Since August 2014, your global.js and global.css pages are loaded automatically on all wikis. Since you already import them yourself, you may experience script errors or tools being added twice. Do you want me to remove the global imports from your local pages using Synchbot (without changing any other content)? —Pathoschild 02:08, 25 June 2015 (UTC)
Pathoschild... now that's a name I haven't seen in a long time :P. Yeah I'd appreciate the removal of the imports to my global.js file. Thanks! ---Kangaroopowah 19:48, 28 June 2015 (UTC)
- Done! You can see the log on your archive page. :) —Pathoschild 19:37, 05 July 2015 (UTC)