User talk:Pathoschild/Archives/2012-08
Please do not post any new comments on this page. This is a discussion archive first created in August 2012, although the comments contained were likely posted before and after this date. See current discussion or the archives index. |
meta.wikimedia
Babel migrate and delete - is.wiki
I have heard that you have a script to migrate babel templates to {{#babel:}}
. I have proposed to migrate and delete all babel templates on is.wikipedia (see m:is:Wikipedia:Potturinn#Skipta tungumálasniðum alfarið út fyrir viðbótina Babel (in icelandic)). Can you help with that?--Snaevar 21:19, 19 January 2012 (UTC)
- Hello Snaevar. I'm using
pathoschild.BabelMigrator
in my JavaScript for semi-automated migrations. —Pathoschild 07:01:38, 20 January 2012 (UTC)- Ok. I was thinking that you would operate the code yourself on is.wiki. There is one template left to migrate: m:is:Snið:Málkassi-X.--Snaevar 12:48, 21 January 2012 (UTC)
- Hi Snaevar. This template should be pretty easy to migrate. I've asked to confirm on that page; could you translate my message? —Pathoschild 04:56:27, 19 February 2012 (UTC)
- Yes, I have translated your message. Typically my fellow users on is.wiki respond after one to two weeks.
- The migration looks easy, but there is one issue that might make it challenging and there is an temporary workaround in place for it. If an userpage includes the template and uses a parameter that refers both to an language code and an user-template then both will be shown on the user-page. The babel-box will be shown due to the fact that Extension:Babel is transcluded in the template "Málkassi-X" (in a similar way as Template:Babel does the same on meta). The user-template is shown above the babel-box due to an temporary workaround. If there are more than one user-template shown like this, then they are aligned horizontally. Usually when this is the case the user-template is what the user intended to have on his page.
- Example:
- An userpage includes the code "{{Málkassi-X|BS}}". This userpage shows both that the user has an BS-university degree and that he is an native speaker of Bosnian.--Snaevar (talk) 17:11, 20 February 2012 (UTC)
- After the bot does the migration, should the page have "
{{#babel:bs}}
" or "{{notandi BS}}{{#babel:bs}}
"? Would you want this behaviour for all existing templates, or is there a list of templates where you'd want both? —Pathoschild 20:32, 23 February 2012 (UTC)
- After the bot does the migration, should the page have "
AccountEligibility
Role duration bug
Hi, just to let you know, the AccountEligibility doesn't give me the right output [1]. It says "was not flagged as an administrator for a continuous period of at least three months before 29 January 2012 (never flagged).", but I am an administrator for almost 3 years [2]. Best regards, Freaky Fries 08:45, 20 January 2012 (UTC)
- I saw the same bug with my account, I haven't been an administrator for 3 years but it has been over 3 months. ~~ GB fan ~~ talk 16:31, 20 January 2012 (UTC)
- Fixed; thanks for reporting the bug. —Pathoschild 01:37:12, 21 January 2012 (UTC)
- Hi Pathos, there seems to be another bug with the tool, Mufka on the English Wikipedia should be eligible to be a candidate, flagged since 2009, but the tool thinks that he was never flagged. The Helpful One 15:37, 21 January 2012 (UTC)
- Thank you for your fixings. Nevertheless, the tool doesn't always rightly the time previous admins have been admins (sometimes it does, sometimes not), for example, it tells that GB fan isn't eligible, other previous longtime admins aren't either, I got some examples for you. Some of those who resigned since Febr. 2011 in German Wikipedia and who were admins for more than 3 months are Matthäus+Wander, admin since before 2006 – dec. 2011; Don-kun, admin Oct. 2010 – Oct. 2011; Smial, admin Oct 2010 – July 2011; Victor Eremita, admin May 2008 – Febr. 2011. But the tool shows the right eligibility for the previous admins Hozro, Engelbaet, Stullkowski, Magadan, Wiggum and Julius1990 (but not always the right continuous periods of flaggings), so 4 of 10 who resigned last year are wrongly displayed. If you need more examples, you can check also these 156 previous admins (with or without global or meta account) who should have been admins more than 3 months each, f. e. Blunt. (Sept. 2008 – Nov. 2009 and later between 2010 and 2011 again as member of the arbcom). And Freaky Fries is admin since 24 months now but the tool says he is only 19.46 months. Or for Julius1990, the tools says, he had only been admin for 3.44 months, but he has been admin between 9 May 2008 and 8 April 2009 and again between May 2009 and April 2011 which both are many more than 4 months of duration. I hope that's helping. :-) Greetings --Geitost diskusjon 15:47, 21 January 2012 (UTC)
- I fixed the main bug, which was an error in yesterday's new algorithm. Thanks for the test cases, which helped check for further issues. I added links to the rights logs to make it easier to double-check the result. There are a few edge cases which I will look into later today, such as administrators flagged before 2006 having no log entries. —Pathoschild 23:26:42, 21 January 2012 (UTC)
Administrators flagged before 2006
Is there a list of users who were flagged before logging existed on dewiki? —Pathoschild 01:58:18, 22 January 2012 (UTC)
- Yes and no. There's the list of administrators which lists all now-being and former admins who have ever been admin (it's regularly updated manually). But there isn't said when anybody got the flag. To go through the election archives won't be a good idea because it's not so easy to see there if someone got the flag or not, especially in the first elections 2003 and 2004 (until August). Furthermore, there have also been admins who never were elected at all and who aren't listed in the election archives, but they also held admin rights for more than 3 months (f. e. Magnus Manske who still is admin or Ben-Zin who isn't anymore, both weren't elected and you can find Ben-Zin listed only in the list LDA and here – they both got the rights before 2003, a few people more did also and their names are also listed at LDA and these two lists together which are both based on LDA). So, you see, it's a bit difficult with the archives also.
- Instead of this, to find just admins who were elected before 2006, it's perhaps easier to go through the list de:Wikipedia:Administratoren/Übersicht. There you find also the dates these were first elected (just take a look at the years behind „Erstwahl“ or „Erstwahl (Admin)“). The list only lists now-being admins. To find also former admins you have also to go through the shorter list de:Benutzer:Geitost/Adminübersicht II which only lists the former admins until Sept. 2010 (it's not up-to-date), there you have to look up each name cause the year they got the rights isn't listed there. In addition to this, I looked up the admins who retired or lost their rights after Sept. 2010 and who were elected before August 2006 (diff):
- 1001 (elected in July 2004), Idler (Jan. 2005), Lung (Nov. 2005), Magadan (July 2005), Matthäus Wander (Febr. 2004), Nb (May 2005), Nerd (Mars/April 2003), Raven (Febr. 2004), Voyager (Febr. 2005) – (and Geos who was elected in Mars 2006, but who died a year ago).
- Do these lists help you with this? --Geitost diskusjon 17:16, 22 January 2012 (UTC)
- I've got some other special cases for you (out of this list of former admins) – the tool says they wouldn't have been admins (long enough), account names bold: Anathema lost his admin rights in June 2005, has surely held them for more than 3 months and should also be eligible. Achim Raschka has held admin rights for longer periods of times than 3 months each between February 2005 and October 2009, the logs are a bit confusing[3], [4] (was first flagged as Necrophorus). Kellerkind (SUL and meta account) was flagged as Anneke Wolf which is no SUL account. So, is she eligible as candidate or not with the SUL account Kellerkind? She's an active editor. Asb should also be eligible, has held the rights since before 2006 until Dec. 2009. P. Birken should be eligible, has held admin rights as DaTroll (before renaming) until April 2006, Karl-Henner until April 2008, Koethnig until Dec. 2005, Mijobe until Sept. 2005, Ralf Roletschek from Jan. 2006 until Jan. 2008 and from 3 Feb. 2008 until 27 April 2008, Simplicius held the rights until August 2005, Stw until Dec 2009, Carol.Christiansen has held the rights with the old account Unscheinbar from April 2005 to January 2006. Shouldn't he now be eligible with the new account? He's also an active editor. Vic Fontaine held the rights from before 2006 until Dec. 2009, Vulture until July 2008. In addition, there are lots of former admins without meta and/or global accounts who could just make these ones for being eligible. --Geitost diskusjon 16:52, 23 January 2012 (UTC)
- PS: You can forget Anneke/Kellerkind, I've now seen she's eligible because of wikisource anyway. And Carol.Christiansen let his old account Unscheinbar block last year with which he had held the admin rights. So he should be eligible with the now-being SUL account. It has just been renaming without official renaming process. I don't know if the election rules say anything about special cases like this. ;-)
- Perhaps it would be better for future elections to just let former admins be eligible who have held the rights for 3 months within the last 5 years. Then there wouldn't be any problem with the eligibility of persons who don't have a chance of becoming steward anyway, if it's so long ago they hold admin rights at last, even if they've been active contributors for the whole time. --Geitost diskusjon 18:11, 24 January 2012 (UTC)
- Thanks for your research; I'll look more into this on the weekend.
I think the best solution might be to run a script that detects pre-log administrators (by checking for administrator actions like deletions before they were flagged in the log) and sets a default flag date like 2006. We can then manually adjust dates as needed.—Pathoschild 05:39:43, 25 January 2012 (UTC)
- Thanks for your research; I'll look more into this on the weekend.
- I've modified the script to handle this. If the user does not seem to be eligible but was registered before 2005 (when the rights log was created), it now warns you so you can investigate manually (see example). —Pathoschild 19:38:20, 29 January 2012 (UTC)
POTY 2011
Hi Pathoschild,
Just letting you know that we are going to prepare the POTY 2011 elections and is it okay for you to add the POTY 2011 event on your Account Eligibility tool. If you're not ready just please tell me. Kindly regards. --Katarighe (Talk · Contributions · E-mail) 21:41, 28 January 2012 (UTC)
- POTY 2012 Competition you mean? :) The Helpful One 22:10, 28 January 2012 (UTC)
- Yes, we are preparing the contest for now and we need to add the event. --Katarighe (Talk · Contributions · E-mail) 01:01, 29 January 2012 (UTC)
- Hello Katarighe. Please define the eligibility rules on this year's election pages (see last year's rules). I'll add the event when this is ready. —Pathoschild 17:12:09, 29 January 2012 (UTC)
- Yes, we are preparing the contest for now and we need to add the event. --Katarighe (Talk · Contributions · E-mail) 01:01, 29 January 2012 (UTC)
Parser function sorts differently
Please see Template talk:User language#Parser function sorts differently. Thanks. - dcljr 08:37, 31 January 2012 (UTC)
- The {{#babel:}} parser function provided by the Babel extension (in use on this wiki, and presumably intended to eventually replace the template-based Babel scheme) places users into the same categories as this template, but sorts them according to fluency level (so, e.g., "1" = level 1, not native level ["N" is used for native]). This template and {{User language category}} should really be changed to match the way the parser function categorizes users. As things currently stand, the description in the various user-language categories of how users are sorted is (mostly?) just plain wrong. - dcljr 08:37, 31 January 2012 (UTC)
- I've updated the English text and examples, but the translations will need to be updated manually for each category. —Pathoschild 02:49:12, 01 February 2012 (UTC)
- Unfortunately, it looks like your changes have turned the example Babel boxes at the top of each user language category into nonsense. (Note how the "en-0" box says, "This user has knowledge of English (or understands it with considerable difficulty)" [my emphasis], and the other 5 levels all say exactly the same thing: "This user has knowledge of English.") Do you know how to fix this problem? If not, just revert your changes and I'll look into the matter further later. - dcljr 03:39, 11 February 2012 (UTC)
- This is a bug with the Babel extension. I've filed a bug ticket. —Pathoschild 06:03:23, 19 February 2012 (UTC)
iewiki
Hi, I noticed that you are an active admin at the iewiki. Could you please move ie:Américas to ie:América over a redirect? Thank you! Capmo 01:56, 1 February 2012 (UTC)
- Done. —Pathoschild 02:12:12, 01 February 2012 (UTC)
Update for Regex menu framework
Hi!
Could you replace the following lines of User:Pathoschild/Scripts/Regex menu framework.js
try {
sidebar = document.getElementById('p-navigation').parentNode;
}
catch(err) {
console.log( 'Regex menu framework rfmenu() aborted due to unknown error. This (rare) issue will be fixed in the eventual rewrite.' );
return;
}
by
sidebar = document.getElementById('mw-panel') /* vector */
|| document.getElementById('column-one') /* monobook, myskin, chick & simple */
|| document.getElementById('mw_portlets'); /* modern */
if(!sidebar) {
return;
}
This will make it to work also on wikis such as MediaWiki.org, where there is no element whose id is "p-navigation". Helder 14:13, 2 February 2012 (UTC)
- Done. —Pathoschild 14:36:05, 02 February 2012 (UTC)
- Thanks! It is working now. =) Helder 00:25, 3 February 2012 (UTC)
protocol relative urls
Just building a list of your apps on toolserver that are not protocol relative
For update some day so those of us who get confused easily when we drop out of a protocol and wonder what has happened. billinghurst sDrewth 12:02, 4 February 2012 (UTC)
- Thanks; all my scripts are now protocol-relative. Let me know if you spot a rogue HTTP link. —Pathoschild 05:40:05, 05 February 2012 (UTC)
- Thanks mate. No barn stars here, you will need to get your wikilove closer to home. billinghurst sDrewth 08:16, 5 February 2012 (UTC)
Redirspecial [bug]
Hello Pathoschild. When processing this request I got from the Redirspecial tool the following error message:
- Could not determine database prefix for gl.wikipedia.org.
And the following debug output:
Debug output
|
---|
Array ( [_POST] => Array ( ) [_GET] => Array ( [page] => special:userrights [domain] => gl.wikipedia [user] => Sobreira [redir] => on [debug] => on ) [_COOKIE] => Array ( [_pk_ref_1_8248] => ["","",1328539567,"https://meta.wikimedia.org/wiki/Steward_requests/Permissions"] [_pk_id_1_8248] => f130b5569004e0b6.1328539567.1.1328539585.1328539567. [_pk_ses_1_8248] => * ) [_FILES] => Array ( ) [globals] => Array ( [urls] => Array ( [toolserver] => //toolserver.org/~pathoschild/redirspecial [server] => http://pathos.ca/ [tools] => http://pathos.ca/tools/ [globals] => //toolserver.org/~pathoschild/backend/legacy/ [theme] => //toolserver.org/~pathoschild/backend/legacy/theme/ ) [license] => This tool is written and copyright by Jesse Plamondon-Willard (<a href="//meta.wikimedia.org/wiki/User:Pathoschild" title="Pathoschild's wiki userpage">Pathoschild</a>). You may freely use, distribute, and modify this script in any way and for any purpose, so long as you cite the above name as original author. ) [locals] => Array ( [title] => RedirSpecial [description] => Redirects to a Wikimedia special page with parsed arguments, primarily intended for {{<a href="//meta.wikimedia.org/wiki/Template:sr-request" title="template:sr-request on Meta">sr-request</a>}}. [files] => Array ( [0] => index.php ) [path] => //toolserver.org/~pathoschild/redirspecial [action] => debug ) [ipage] => special:userrights [idomain] => gl.wikipedia [iuser] => Sobreira [iredir] => on [page] => special:userrights [domain] => gl.wikipedia.org [user] => Sobreira [redir] => on [error] => <div class="fail">Could not determine database prefix for gl.wikipedia.org.</div> [redir_to] => [prefix] => [_REQUEST] => Array ( [page] => special:userrights [domain] => gl.wikipedia [user] => Sobreira [redir] => on [debug] => on [_pk_ref_1_8248] => ["","",1328539567,"https://meta.wikimedia.org/wiki/Steward_requests/Permissions"] [_pk_id_1_8248] => f130b5569004e0b6.1328539567.1.1328539585.1328539567. [_pk_ses_1_8248] => * ) [link_title] => wikilink action table ) |
Maybe a temporary toolserver problem?
Thanks. —Marco Aurelio (Nihil Prius Fide) 14:51, 6 February 2012 (UTC)
- Hello Marco. It's working correctly now, so it probably was a temporary issue with the toolserver database. I'll add caching this weekend so the script does not depend so much on the database stability. —Pathoschild 16:10:56, 06 February 2012 (UTC)
- Yes, it's now working; probably a Toolserver issue as we both thought. Thanks for the improvement you want to do and sorry for the inconvenience. Best regards. —Marco Aurelio (Nihil Prius Fide) 19:15, 6 February 2012 (UTC)
- Thanks for the suggestion. The rewritten script now caches the wiki data once per day. —Pathoschild 03:31:11, 08 February 2012 (UTC)
- Thanks for the fix. But does not work properly for users using https:// server. Example: [5]. Thanks again for your help. Best regards. —Marco Aurelio (Nihil Prius Fide) 13:29, 8 February 2012 (UTC)
- I fixed template's URL (example). This seems to be a toolserver bug: URLs without a slash before the query string are redirected and drop the protocol:
https://…accounteligibility?url=…
tohttp://…accounteligibility/?url=…
. I'll look into it tonight and file a bug ticket if necessary.) —Pathoschild 13:56:28, 08 February 2012 (UTC)- (See ticket TS-1130.) —Pathoschild 21:29, 23 February 2012 (UTC)
- I fixed template's URL (example). This seems to be a toolserver bug: URLs without a slash before the query string are redirected and drop the protocol:
bots on Catanalysis
Hi, could you please grey out accounts being member of the bot user group? Otherwise my incubator interwiki bot is listed as active contributor at nearly all open wikipedia test wikis (e.g. lezwiki). Merlissimo 01:30, 8 February 2012 (UTC)
- Hi Merlissimo. Thanks for the suggestion; I've created a tracking ticket for this. —Pathoschild 20:31, 12 June 2012 (UTC)
YGM
The Helpful One 15:39, 8 February 2012 (UTC)
- Done. —Pathoschild 02:32:56, 09 February 2012 (UTC)
Eligibility script
Hi,
I'm speak english a little bit, but i use Google Translate...
I would like to use your script to set up a system of eligibility for election to patrol the French-speaking Wikipedia. Can I copy and paste the code changed for the event? Marc-André Beauchamp 01:15, 9 February 2012 (UTC) Please respond me on My PdD on wiki fr
- Bonjour Marc-André. Vous pouvez soit modifier et redistribuer l'outil sous les termes du license CC-BY-3.0, soit m'indiquer les règles pour que j'ajoute le ou les élections à l'outil directement. —Pathoschild 02:35:29, 09 February 2012 (UTC)
Autoconfirmed privileges revoked
Hello. Persian Wikipedia user fa:User:Amirali-E lost his autoconfirmed privileges because one of his edits was matched by an abuse filter (false positive) which revokes autoconfirmed privileges. I, as a bureaucrat in Fa WP, don't have the access to give it back to him. Can you take care of this, as a steward? Or is there a way for me to do it that I'm unaware of? Thank, Huji 14:55, 15 February 2012 (UTC)
- w:fa:Special:AbuseFilter/tools or it expires automatically, see mw:Extension:AbuseFilter/Actions#Revoking_auto-promoted_groups. Nemo 16:50, 15 February 2012 (UTC)
- Thanks Nemo! Huji 23:27, 15 February 2012 (UTC)
Ajax sysop
I know you know, but I miss Ajax sysop so much, especially the AJAX patrol and rollback links everywhere: it's such a pity that it doesn't work with recent MW releases (not for me at least)... I hope you'll have some time to revamp it (or you find someone to help you)! Cheers, Nemo 12:57, 17 February 2012 (UTC)
- Hi Nemo. I do plan to rewrite ajax sysop, but unfortunately it's further down my to-do list. I created a tracking ticket for this in the meantime (and contributors are welcome if you know someone). —Pathoschild 15:21, 13 June 2012 (UTC)
Help, please!
Hello, Mr. Pathoschild!
Please this anon has been blocked because it wreaks havoc on some other user's talk page and others pages! Per this request, thanks. Wagino 20100516 (talk) 04:44, 18 February 2012 (UTC)
- Hello Wagino 20100516. I have blocked the IP address for one hour, since no local administrators have edited recently. —Pathoschild 04:50:53, 18 February 2012 (UTC)
- Again, thanks so much! Wagino 20100516 (talk) 04:52, 18 February 2012 (UTC)
- You're welcome. :) —Pathoschild 04:53:50, 18 February 2012 (UTC)
Now my page to be attacked, it looks like some anon has carried out the attack at the same time this morning to some users who actively fight against vandalism. Implore your help further, please! Wagino 20100516 (talk) 04:57, 18 February 2012 (UTC)
- Blocked. Let me know if they continue. —Pathoschild 05:00:51, 18 February 2012 (UTC)
- Also this anon. 05:07, 18 February 2012 (UTC)
- I blocked the IP address range. —Pathoschild 05:12:39, 18 February 2012 (UTC)
- Okay. Hopefully with a 30-minute block of time was enough to give lessons to them. Cheers. Wagino 20100516 (talk) 05:17, 18 February 2012 (UTC)
Documentation on global.js
I know that I am slow on the uptake, but I have just paid full attention to global.js that some utilise. Is this a widely publicised feature, and where is the documentation? I found nothing overt. Thx. billinghurst sDrewth 11:36, 18 February 2012 (UTC)
- Hi Billinghurst. Wikimedia wikis don't support
global.js
(although there are extensions to do so), but it's commonly enabled using Synchbot to create local pages importing it. —Pathoschild 18:44:29, 18 February 2012 (UTC)
Hello Pathoschild, I was wondering why you are doing what you are doing. Lotje (talk) 07:39, 19 February 2012 (UTC)
- Hello Lotje. I adjusted my user pages on all wikis to show my languages and link more prominently to my main page (here), to make it easier to communicate with me. —Pathoschild 08:18:36, 19 February 2012 (UTC)
- That is a very good idea and I want to do this too. Is this done manually or can it be done in one flash with some smart knowledge? btw, the username you have chosen pathos and child, very special. Lotje (talk) 10:06, 19 February 2012 (UTC)
- I used Synchbot, which edits your user pages on every wiki. —Pathoschild 17:52:54, 19 February 2012 (UTC)
Automated bot showing user edits on cy.wiki
Bore da Pathos! many thanks for looking after the Welsh Wicipedia over the last few years: the leaven in the dough, working quietly - but efficiently - in the background! Am I right in saying that you were responsible for the bot which sent us monthly the number of edits users had made? It stopped a year ago for some reason. It would be great if it could return - to inspire those who do edit. Llywelyn2000 (talk) 07:58, 19 February 2012 (UTC)
- Sorry, I never operated such a bot. —Pathoschild 08:19:32, 19 February 2012 (UTC)
- Thanks. Where would I search for it? Any idea? Llywelyn2000 (talk) 08:54, 19 February 2012 (UTC)
- Do you know what the bot was called? Did the bot put messages on user pages, update a project page, or update a separate web page? Do you have an example of one of these bot edits or reports? —Pathoschild 09:24:22, 19 February 2012 (UTC)
- I know User:BOTijo has made such lists on several wikis. That bot has been idle on many projects for some time.
- If the number of users on a project is limited, I can try to set up something by the help of the API. -- Lavallen (talk) 10:02, 19 February 2012 (UTC)
- I suggest asking Emijrp, who operated BOTijo and is still active. —Pathoschild 17:57:12, 19 February 2012 (UTC)
- Lavellen, these lists are generally generated from queries to the toolserver, much more efficient :) Snowolf How can I help? 13:02, 20 February 2012 (UTC)
- I know, therefor can I only do this on minor wiki's with limited number of users. cywiki has ~3300 users with contributions. -- Lavallen (talk) 19:13, 20 February 2012 (UTC)
- Lavellen, these lists are generally generated from queries to the toolserver, much more efficient :) Snowolf How can I help? 13:02, 20 February 2012 (UTC)
- I suggest asking Emijrp, who operated BOTijo and is still active. —Pathoschild 17:57:12, 19 February 2012 (UTC)
Coordination of review with Barras
Hi. Barras suggested I contact you about this. See, User talk:Barras#Review of RfD closure Thanks. Alanscottwalker (talk) 18:37, 19 February 2012 (UTC)
- Sorry, I do not mediate user disputes. —Pathoschild 18:20, 20 February 2012 (UTC)
Synchbot
Bonjour Pathoschild. Comme je sais que tu es pas mal occupé en ce moment, je voulais te proposer de t'aider à gérer la file d'attente de Synchbot. J'ai un script qui permet de faire à peu près la même chose que je viens de mettre au point, notamment pour me mettre tous les projets en langue anglaise. J'en ai profité pour créer globalement les modèles Template:Delete et Template:Softredirect lorsqu'ils n'existent pas. D'ailleurs, si je peux me permettre, ton bot crée les pages de certains utilisateurs sur des wikis verrouillés. Bonne journée ! -- Quentinv57 (talk) 13:13, 15 February 2012 (UTC)
- We discussed this on IRC; I have no objections, so long as you ask the requesters to confirm they're okay with it. —Pathoschild 06:05:45, 19 February 2012 (UTC)
- Hello. I just handled two of the requests, and I think that my bot is ready for some next ones. To make things faster, I thought it would be better to announce on this page that I can handle requests to, and if people object (I don't see why, but they might) they just have to say it in their request and I will ignore it.
- Moreover, mine can also change the default lang on every WMF projects, and why not change an other setting if needed (default skin, signature, possibility of being emailed and email notices, ...). You could probably write that too in the pages as I'm sure that a lot of people, especially stewards and SWMT will need that. But the user password is required, it's impossible else. I made this change on my account (Quentinv57) and that definitely makes me gain a lot of time.
- Thanks and have a nice week ! :-) -- Quentinv57 (talk) 11:03, 20 February 2012 (UTC)
- Yes, I think people could be interested because I already did three requests of this type today (two to change the language, and one to change the skin and the signature). -- Quentinv57 (talk) 17:50, 20 February 2012 (UTC)
- That sounds awesome, though I think a JavaScript solution might be better so users don't need to provide temporary access to their account.
- If the new bot is well-written, it could replace the original Synchbot entirely. (I originally wrote Synchbot as a one-time script for my own use, so it was not designed to scale.) I'll leave it to you whether to simply set up your own Synchbot service, or share the development or workload. —Pathoschild 23:14, 20 February 2012 (UTC)
- Nope, I don't think my bot is well written at all. It's written in PHP and I don't think that's the more appropriate language for those kind of tasks. But it could be sufficient waiting that I pass my exams and could learn about Python.
- To my mind, the best will be if we could work together on it, because more and more people are requesting such things, and two stewards working on this won't be too much. I see that one even requested the change on settings, which is not written on the request page as far as I know. May I edit the request page to write explicitly that I may handle requests too, and that now it's also possible to change settings globally ? -- Quentinv57 (talk) 14:30, 21 February 2012 (UTC)
- I have no objections. How would you like to distribute the workload? Maybe I can handle edit requests and you'll handle permission requests? —Pathoschild 21:33, 23 February 2012 (UTC)
- Okay, so I just made some changes to the page and to the templates. I also tried to edit the archives so I could add entries with settings change too. Please see my changes here and here and confirm everything is okay. I will try to code the generation of the log and to handle Lavallen's request this morning. Kind regards, -- Quentinv57 (talk) 10:31, 24 February 2012 (UTC)
- Your changes look fine. —Pathoschild 15:11, 24 February 2012 (UTC)
- Thanks. I just completed the request of Lavallen and everything seems to work fine on my side. For the distribution of the workload, I think that, if you don't mind, it would be better if we could assign requests before working on them, as you asked me to do for the first ones I handled. That would prevent me to start a request you're already doing, or vice-versa.
- Personally I don't mind if you handle some requests for settings change. But if your bot can't do so, no need to waste your time to code something, I could handle them as a priority. I can also send you my script, but I would need to test it some more times and to rewrite it before, to make it more stable. Can we proceed like that or you prefer me just to handle settings changes ? -- Quentinv57 (talk) 15:39, 24 February 2012 (UTC)
- I'm fine with letting you take care of global settings. Should we move the pages out of my user space, since it's no longer just me doing it? —Pathoschild 16:11, 24 February 2012 (UTC)
- Oh, no... I think that's cool like that. Have a nice evening ! ;-) -- Quentinv57 (talk) 17:49, 24 February 2012 (UTC)
XSS in account eligibility tool
Hi. Your account eligibility tool has an XSS vulnerability (well, two, actually). Example link: <http://toolserver.org/~pathoschild/accounteligibility/?user=Dominic%3Cb%3Ehello&wiki=enwiki_p&event=23>. You should sanitize your output! --MZMcBride (talk) 04:23, 23 February 2012 (UTC)
- Fixed; thanks for reporting it. (I'll be moving to a templating engine in the near future which will sanitize all output by default, to avoid this kind of omission.) —Pathoschild 04:32, 23 February 2012 (UTC)
- Thanks for the quick fix. :-)
- Fran pointed out that the "magic redirect" tool has a similar vulnerability: <http://toolserver.org/~pathoschild/magicredirect/?url=%3Cb%3Ehello%3C/b%3E>. And apparently certain kinds of more sophisticated attacks will work in certain browsers (Firefox), but not in others (Chrome): <http://toolserver.org/~pathoschild/magicredirect/?url=*%2F%3C%2Fscript%3E%22%3E%3Cscript%3Ealert%28%22hi+team%22%29+%2F*&wiki=&user=>. The joys of Web development. --MZMcBride (talk) 05:14, 23 February 2012 (UTC)
- Also fixed. Let me know if you spot any other omissions. :) —Pathoschild 05:21, 23 February 2012 (UTC)
- Many of your other tools are vulnerable as well. htmlspecialchars() is your friend. :) Fran McCrory (talk) 05:52, 23 February 2012 (UTC)
- All fixed, except iso639db (which I'll soon replace) and wikilinkactiontable (which is rarely used and will be deleted when I eliminate that separate domain). —Pathoschild 06:13, 23 February 2012 (UTC)
"Discuss this script" link should be protocol-relative (or https)
Hi. The "discuss this script" link (for example, here: <http://toolserver.org/~pathoschild/accounteligibility/?user=Emufarmers&wiki=enwiki_p&event=23>), should be protocol-relative or https. It's currently http://meta.wikimedia.org..., which isn't great. --MZMcBride (talk) 04:25, 23 February 2012 (UTC)
- That link is already protocol-relative; see the same example with https. —Pathoschild 04:33, 23 February 2012 (UTC)
- Oh, hah. Fair enough. Really need to get auto-redirection from http working in MediaWiki... --MZMcBride (talk) 05:10, 23 February 2012 (UTC)
- This is see Toolserver bug 1130. —Pathoschild 13:53, 24 February 2012 (UTC)
[*,user,autoconfirmed,checkuser,import,oversight,steward,sysop]
DO YOU HAVE ENOUGH USER RIGHTS? --MZMcBride (talk) 04:25, 23 February 2012 (UTC)
- You forgot one. —Pathoschild 04:34, 23 February 2012 (UTC)
migrate js to python
hi Jesse, as I requested on IRC, I would like you to migrate the following code into python:
process_page: function() {
var t = this.textbox.value,
skip_dict = {},
skip_ar = [],
actual_replaced = [],
skipmatch = t.match(/{{ללא[_ ]בוט\|\s*(\d+)\s*}}/g);
if (skipmatch)
for (var i = 0; i < skipmatch.length; i++) {
var matches = skipmatch[i].match(/{{ללא[_ ]בוט\|\s*(\d+)\s*}}/);
skip_dict[parseInt(matches[1], 10)] = true;
skip_ar.push(matches[1]);
}
var specials = [];
while (true) { //extract inner links, inner templates and inner params - we don't want to sptit those.
var match = t.match(/(\{\{[^\{\}\]\[]*\}\}|\[\[[^\{\}\]\[]*\]\]|\[[^\{\}\]\[]*\])/);
if (! match || ! match.length)
break;
specials.push(match[0]);
t = t.replace(match[0], "\0" + specials.length + "\0");
}
for (var i in this.regexes)
if (! skip_dict[i] && ! isNaN(i))
if (this.regexes[i][0].test(t)) {
actual_replaced.push($.trim(this.regexes[i][1].replace(/\$\d*/g, '')));
t = t.replace(this.regexes[i][0], this.regexes[i][1]);
}
while (true) {
var match = t.match(/\0(\d+)\0/);
if (! match || ! match.length)
break;
t = t.replace(match[0], specials[parseInt(match[1], 10)-1]);
}
this.textbox.value = t;
var msg = ['ריצת סקריפט ההחלפות הסתיימה. אנא בצעו "הצגת שינויים" לפני שמירה, כדי לוודא שהסקריפט לא גרם נזק.'];
if (skip_ar.length)
msg.push('החלפות שלא התבצעו בגלל תבנית "ללא בוט": ' + skip_ar.join(', '));
msg.push('');
msg.push(actual_replaced.length
? 'התבצעו ההחלפות הבאות: ' + actual_replaced.join(' ,')
: 'לא התבצעו החלפות - הדף "נקי".');
this.writeMsg(msg);
if (actual_replaced.length && $('#wpSummary').val() == '')
$('#wpSummary').val('סקריפט החלפות (' + actual_replaced.join(', ') + ') ');
},
this js script reads the page of replacements and replace the right column with the second one. the third one is for exceptions, and the fourth it for doc of the agreement of the replacement. I would like to supply a xml dump to run over entire wiki and replace all necessary with a pywikibot. thanks! Matanya (talk) 16:05, 27 February 2012 (UTC)
- Hi Matanya. Do you still need this? I can do it this weekend if so. —Pathoschild 15:22, 13 June 2012 (UTC)
- Yes please. thanks Matanya (talk) 21:34, 13 June 2012 (UTC)
- This python function should do roughly the same thing; you can plug it into pywikipedia to do what you want. It will probably need refinement or fixes depending on your use or your test cases, since I didn't know exactly how it would be used. Let me know if you need further help.
#!/usr/bin/python
# -*- coding: utf-8 -*-
import re
def processPage(text, patterns):
"""Applies replacements to a text.
@param text The text to process.
@param patterns An array of tuples representing regular expression patterns to apply, like [('search', 'replace'), ...].
@returns [newText, message, editSummary]
"""
skipList = []
actualReplaced = []
# extract skip tokens
skipMatches = re.findall('{{ללא[_ ]בוט\|\s*(\d+)\s*}}', text)
for match in skipMatches:
skipList.append(match)
# tokenize inner links, templates, & params (we don't want to split those)
specials = []
while True:
match = re.search('(\{\{[^\{\}\]\[]*\}\}|\[\[[^\{\}\]\[]*\]\]|\[[^\{\}\]\[]*\])', text)
if not match:
break
specials.append(match.group(1))
text = re.sub(match.group(1), '{replace-token:%s}' % len(specials), text)
# apply patterns
for i in range(len(patterns)):
if i not in skipList:
continue
[search, replace] = patterns[i]
match = re.search(search, text)
if match:
actualReplaced.append(re.sub('\$\d*', '', replace).strip())
text = re.sub(search, replace, text)
# detokenize
for i in range(len(specials)):
text = re.sub('\{replace-token:(\d+)\}', specials[i], text)
# generate message
msg = ['ריצת סקריפט ההחלפות הסתיימה. אנא בצעו "הצגת שינויים" לפני שמירה, כדי לוודא שהסקריפט לא גרם נזק.']
if skipList:
msg.append('החלפות שלא התבצעו בגלל תבנית "ללא בוט": ' + ', '.join(skipList))
msg.append('');
if actualReplaced:
msg.append('התבצעו ההחלפות הבאות: ' + ', '.join(actualReplaced))
else:
msg.append('לא התבצעו החלפות - הדף "נקי".')
# generate summary
summary = 'סקריפט החלפות (' + ', '.join(actualReplaced) + ') ' if actualReplaced else ''
return [text, msg, summary]
- Example usage:
[result, msg, summary] = processPage(text, [('wut', 'waaaat')])
- —Pathoschild 22:02, 16 June 2012 (UTC)
[Patting the To Do list] convert to common.js-able
Gday Pchild. For the if it is possible it would be really nice To Do list, the conversion of User:Mike.lifeguard/removeSpam.js so that it can be used within common.js, rather than be poked into monobool.js. Thanks. billinghurst sDrewth 06:32, 3 March 2012 (UTC)
- Hi sDrewth. Do you still need this? If so, I can convert it to a TemplateScript script this weekend. —Pathoschild 15:54, 13 June 2012 (UTC)
- Hiya P/child. I am using Mike's script still, and I can see that there would be value in having it work in a universal skin script (share the load if we can make it easier). That said if you think that it is just me using it, then, I can live with the existing, as I have it in most of the wikipedias and slowly adding it through the remainder. So yes, but no if there are greater priorities. — billinghurst sDrewth 16:08, 13 June 2012 (UTC)
- I created a tracking ticket for this, and will probably do it this weekend. —Pathoschild 16:31, 13 June 2012 (UTC)
Hi!
Hi! I like this page! And i want to work with u...?
Namni maqan isa Aloo jedhamu: abba isa Olaani Galaan fi haadha isa Adde kababush Mamo irra bara 1991 kan dhalate yo ta'u, nama nagaa yaadu yokinis 'peace man' jedhames ni beekama!
- Hello Alolani. What would you like to work on? —Pathoschild 16:36, 13 June 2012 (UTC)
Synchbot wikis
Hi Quentinv57. I noticed your bot editing a few wikis that mine doesn't. I added a few to my configuration, but I'm not sure whether you intended to edit these:
- Chapters & Wikimedia wikis
- ar.wikimedia.org
- bd.wikimedia.org
- be.wikimedia.org
- br.wikimedia.org
- co.wikimedia.org
- dk.wikimedia.org
- et.wikimedia.org
- fi.wikimedia.org
- mk.wikimedia.org
- mx.wikimedia.org
- nl.wikimedia.org
- no.wikimedia.org
- nyc.wikimedia.org
- nz.wikimedia.org
- outreach.wikimedia.org
- pa.us.wikimedia.org
- pl.wikimedia.org
- ru.wikimedia.org
- se.wikimedia.org
- tr.wikimedia.org
- ua.wikimedia.org
- uk.wikimedia.org
- Special wikis
—Pathoschild 02:33, 11 March 2012 (UTC)
- Hello and thanks for the info. Yes it's intentional, I don't know why these ones should be skipped... But you're true, I could probably skip chapters by default and only create pages there when the user explicitly mention it. What do you think about it ? -- Quentinv57 (talk) 08:48, 11 March 2012 (UTC)
Wikimania Notices
The following wikimania notices need changes, and only Meta Stewards can edit old wikimania projects (Notice: each code below is different):
- [history·localspace·local admins | listadmins | delete] wikimania2006.wikimedia: MediaWiki:Sitenotice
- This notice should be created with the code below for easy reference.
<div style="border:3px solid #f90; background-color:#fff9ff; padding:4px; margin:10px; font-size:120%">'''For information about future Wikimanias, including [[wm2012:|Wikimania 2012]] in Washington, D.C., subscribe to [[mail:wikimania-l|wikimania-l]] or see the [[m:Wikimania|Meta Wikimania]] page.''' See also [[Post conference comments|feedback]] provided by participants. </div>
- [history·localspace·local admins | listadmins | delete] wikimania2006.wikimedia: MediaWiki:Sp-contributions-footer
- This notice should be created with the code below for user stats.
{| id="anontalktext" class="plainlinks" style="font-size:90%; background-color:#F8F8F8; border: 1px solid #B8B8B8; padding:0.25em 1em 0.25em 1em; clear: both; text-align: center;width:100%" | style="padding-right: 1em;" | [[File:Icon tools.png|30px]] || <!-- --><span style="white-space: nowrap;">[[Special:Prefixindex/User:$1/|Subpages]] · <!-- -->[{{fullurl:Special:ListUsers|limit=1&username={{urlencode:{{{1|$1}}}}}}} User rights] · <!-- -->Edit counters: [//toolserver.org/~vvv/yaec.php?user={{urlencode:$1}}&wiki=wikimania2006wiki_p vvv's tool] · [//toolserver.org/~tparis/count/index.php?name={{urlencode:$1}}&lang=wikimania2006&wiki=wikimedia X!'s tool] · </span><!-- --><span style="white-space: nowrap;">[//toolserver.org/~vvv/sulutil.php?rights=1&user={{urlencode:$1}} Users with same names on other projects]</span> · </span><!-- --><span style="white-space: nowrap;">[//toolserver.org/~luxo/contributions/contributions.php?user={{urlencode:$1}}&blocks=true&lang=en Cross wiki contributions + blocks]</span> |}
- [history·localspace·local admins | listadmins | delete] wikimania2007.wikimedia: MediaWiki:Sitenotice
- This notice should be deleted to make way for the move indicated below.
- [history·localspace·local admins | listadmins | delete] wikimania2007.wikimedia: Template:Sitenotice
- The feedback link should be replaced with
[[Comments|feedback]]
and then the notice should be moved without redirect to MediaWiki:Sitenotice.
- The feedback link should be replaced with
- [history·localspace·local admins | listadmins | delete] wikimania2007.wikimedia: MediaWiki:Anonnotice
- This notice should be deleted, so that MediaWiki:Sitenotice can be shown.
- [history·localspace·local admins | listadmins | delete] wikimania2007.wikimedia: MediaWiki:Sp-contributions-footer
- This notice should be created with the code below for user stats.
{| id="anontalktext" class="plainlinks" style="font-size:90%; background-color:#F8F8F8; border: 1px solid #B8B8B8; padding:0.25em 1em 0.25em 1em; clear: both; text-align: center;width:100%" | style="padding-right: 1em;" | [[File:Icon tools.png|30px]] || <!-- --><span style="white-space: nowrap;">[[Special:Prefixindex/User:$1/|Subpages]] · <!-- -->[{{fullurl:Special:ListUsers|limit=1&username={{urlencode:{{{1|$1}}}}}}} User rights] · <!-- -->Edit counters: [//toolserver.org/~vvv/yaec.php?user={{urlencode:$1}}&wiki=wikimania2007wiki_p vvv's tool] · [//toolserver.org/~tparis/count/index.php?name={{urlencode:$1}}&lang=wikimania2007&wiki=wikimedia X!'s tool] · </span><!-- --><span style="white-space: nowrap;">[//toolserver.org/~vvv/sulutil.php?rights=1&user={{urlencode:$1}} Users with same names on other projects]</span> · </span><!-- --><span style="white-space: nowrap;">[//toolserver.org/~luxo/contributions/contributions.php?user={{urlencode:$1}}&blocks=true&lang=en Cross wiki contributions + blocks]</span> |}
Thanks! -- SLV100 (talk) 18:04, 18 March 2012 (UTC)
- Hello SLV100. I've updated the headers to be consistent and less time-sensitive (and the feedback links are available on the Wikimania page). I'm not sure about the footer changes, but you're welcome to suggest them on the Wikimedia Forum. —Pathoschild 03:09, 28 March 2012 (UTC)
cutting down code
Is there any way to cut down on:
// <pre>
$.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' }
]);
}
});
//</pre>
so that I only need to use:
position:'after', editSummary:'Warning user for Vandalism edits', forNamespaces:3, category:'Vandals'
- Hello Kangaroopower. TemplateScript doesn't currently support that, though it's a good idea (and it's open-source if you'd like to contribute). In the meantime, you can do it programmatically:
for(var templates = [1, 2, 3, 4, '4im'], i = 0; i < templates.length; i++) {
var key = templates[i];
pathoschild.TemplateScript.Add({ name:'Vandal-' + key, template:'{{subst:uw-vandalism' + key + '}} --~~~~', position:'after', editSummary:'Warning user for Vandalism edits', forNamespaces:3, category:'Vandals' });
}
- —Pathoschild 02:42, 28 March 2012 (UTC)
- Thanks for the code! I'd love to help, but I'm not that good at javascript and I don't really understand loops :(. Best, --Kangaroopowah 04:35, 28 March 2012 (UTC)
Hi 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)
- Thanks! I'll probably switch to the officially supported version, even though it is longer though, just to be able to rail if something goes wrong ;). --Kangaroopowah 02:10, 30 May 2012 (UTC)
Auto patrol
Sorry to bother you, but I cannot find this anywhere. How does one get a user auto-patrolled status (so that all their new articles are automatically marked as patrolled)? --Redaktor (talk) 07:33, 2 April 2012 (UTC)
- Hi Redaktor. I'm not sure myself, but you can ask on Meta:Requests for help from a sysop or bureaucrat or Meta:Requests for adminship (it's not only for adminship). —Pathoschild 13:07, 02 April 2012 (UTC)
- Thanks. --Redaktor (talk) 21:53, 2 April 2012 (UTC)
Need help deleting vandalism
Hi, I actively edit the North Sámi Wikipedia (se.wikipedia.org) but because of my young age I’m not an administrator yet, and that’s why I’m asking (my father helping me to write this message) for a favor from global administrators: There are only a handful if any active administrators in Sámi Wiki and they seem not to have time for deleting all the pages created by vandals. If you are in a position to help us, I would be happy if you could take a look at the Category:ruskasiiddut (Northern Sámi for "trash", i.e. Category:Candidates for speedy deletion) and delete the articles that you, too, can regard as vandalism. Of course you can return to take care of the category later also. Thank you very much for any help! Gálaniitoluodda (talk) 12:42, 4 April 2012 (UTC)
- Hello Gálaniitoluodda, I've deleted everything in that category, besides some pages and categories I wasn't sure of. Kind regards, Mathonius (talk) 13:01, 4 April 2012 (UTC)
Hello Jesse
I am an administrator on Odia (or) Wikipedia. But Admins are not granted "Special:Import" rights or its a bug I do not know. Its been several months I have repoted a bug at bugzilla here. Can you please look into it. And If it is a bug, can't be resolved soon, can I get Import rights on or.wiki if that works. If you are replying late, whisper me back on my talk page please. Thank You in advance :-) -- ɑηsuмaη ʈ ᶏ ɭ Ϟ 06:40, 5 April 2012 (UTC)
- Hi Ansumang. The delay was caused by a misunderstanding, so it can be resolved pretty quickly. The import right lets you copy edit histories from specific wikis ("transwiki import sources"). You need to specify which wikis you want to import from. For example, see a screenshot with wikimediafoundation.org available as an import source. —Pathoschild 16:13, 08 April 2012 (UTC)
- Well en.wikipedia and commons:. But I am little confused now, couldn't find detailed info. Admins can be granted only "import" rights or both "import" and "Transwiki import" rights ? Because I see two User groups "Importer" and "Transwiki Importer". And here w:Wikipedia:User_access_levels#importupload page I see the importupload permission denied for Admins. One more thing here its written "So if you have your own MediaWiki installation, then you should be able to see the 'Special:Import' page there." Does that mean to upload a xml file I need MediaWiki installed in my system? Please do reply. Thanks a ton :-) -- ɑηsuмaη ʈ ᶏ ɭ Ϟ 21:16, 8 April 2012 (UTC)
- There are two ways to import edit histories:
- Transwiki import (import) lets you import an edit history from a predefined wiki, by specifying the wiki and page name you want to import. You cannot import from any wiki that is not predefined for importing, and you cannot modify what is imported. This is fairly safe, though it can be unreliable when importing large edit histories.
- XML import (importupload) lets you upload an XML file which represents an article edit history. This is very flexible — you can import any article from any wiki, modify it before upload, or even create a whole new history. However, this is considered dangerous — it is very easy to forge edit histories using this method, which can break attribution and be very difficult to undo.
- There's no technical limitation against giving users both rights, but XML import is almost never allowed on Wikimedia wikis; transwiki import is normally sufficient. —Pathoschild 14:21, 14 April 2012 (UTC)
- There are two ways to import edit histories:
- Hope the bug get resolved soon. Thanks a lot, am grateful :) -- ɑηsuмaη ʈ ᶏ ɭ Ϟ 19:08, 14 April 2012 (UTC)
Vandalism at map-bms:
Hi Pathoschild, I am a semi active user at Wikipedia basa Banyumasan (map-bms:). A kid run a lot of vandalism there. He is map-bms:Panganggo:Baron Yusuf Siregar. He just copy-pasted a lot of article from Wikipedia bahasa Indonesia, and made some self promotion articles about himself and his friends. I have tag many of his doing, but might miss some. Need help to delete most of his acts. Thanks in advance. XoXo (talk) 13:15, 5 April 2012 (UTC)
- Done. Kind regards, Mathonius (talk) 13:45, 5 April 2012 (UTC)
Magicredirect
It seems that Magicredirect doesn't support the 4 new wikis yet: lezwiki, bewikisource, guwikisource and slwikiversity. Meant to write you a memo a couple of days ago but your inbox was full. Snowolf How can I help? 11:25, 8 April 2012 (UTC)
- Hi Snowolf. These wikis haven't been added to the Toolserver's database yet; I filed a request ticket. —Pathoschild 16:01, 08 April 2012 (UTC)
Шақыру Шұғыл
Шақыру Шұғыл!!! Құрметті Қарақалпақстан Википедияшылары!!! Сіздердің Википедияны дамыту үшін жасап жатқан жұмыстарыңызға үлкен алғысымды білдіремін және еңбектеріңіз жемісті болуына тілектеспін.. Есіткен де шығарсыздар, осы сәуір, яғни 2012 жылдың апрель айының 20-21 күндері Алматы қаласында Түркі тілдес елдер Википедиашыларының конферециясы өтеді. Түркия, Әзірбайжан, Өзбекстан, Түрікменстан Саха, Татарстан т.б. түркі тілдес елдерден делегаттар қатысуға ниет етіп отыр. Конференцияға сіздердің де қатысуларыңызды өтінеміз. Қарақалпақ википедиасы атынан қатысуға ықылас білдіретін адамдар болса, ұсынысын қуана қабыл аламыз. Ондай жағдайда қазақ Википедиасының әкімшілеріне тезірек хабарласуыңызды өтінеміз. Уақыттан ұтылып, кеш қалмауларыңызды сұраймыз.--Serik Zholdas (talk) 05:43, 13 April 2012 (UTC)
- (kk-0) Сәлем Serik. Өкінішке мен қазақ тілді түсінбеймін, қарамастан және мен конференция attend білмеймін.
- (en) Hello Serik. Sorry; I do not understand Kazakh, and I cannot attend the conference.
- —Pathoschild 14:32, 14 April 2012 (UTC)
RFC Danny B.
Hi, as you were involved, you are welcome to comment this RFC.--Juandev (talk) 18:21, 22 April 2012 (UTC)
- Thanks for letting my know; I'll keep an eye on the page. —Pathoschild 00:27, 24 April 2012 (UTC)
- You are welcome.--Juandev (talk) 10:21, 24 April 2012 (UTC)
Global groups links
Hi, could you kind switch the links on your GlobalGroups tool from the broken format //meta.wikimedia.org/wiki/Special:GlobalUsers/Ombudsmen
to the correct and working one, //meta.wikimedia.org/w/index.php?title=Special:GlobalUsers&group=Ombudsmen
. See, the first one lists only users who not only are in the group but also whose name starts with the group name, it's a known and annoying bug :) Snowolf How can I help? 19:48, 23 April 2012 (UTC)
- Wut. Done; thanks for the suggestion. —Pathoschild 00:20, 24 April 2012 (UTC)
Re: Indicação de eliminação rápida para a página Usuário(a):Ralgis
Hello Pathoschild! Sorry for my edit I was wrong. Vitor Mazuco Msg 12:52, 6 May 2012 (UTC)
- Hi Vitor Mazuco. No apology needed. :) —Pathoschild 15:01, 06 May 2012 (UTC)
Re: Synchbot request
Hello, Pathoschild. Thank you very much. Ralgis 21:41, 6 May 2012 (UTC)
- You're welcome. —Pathoschild 19:12, 13 June 2012 (UTC)
AccountEligibility: Deleted contribs & JSONP output
- Deleted contributions are not counted?
- Is there a way to get JSONP output? If not, is there a way using the MediaWiki API to come to the same results? (E.g. requesting user contribtions)?
I am rewriting the POTY voting script think both tools should output the same result (a boolean is enough). Thank you. -- Rillke (talk) 17:08, 12 May 2012 (UTC)
- Hi Rainer. AccountEligibility doesn't count deleted edits; that could be changed if needed. There's no JSONP API yet, but AccountEligibility outputs metadata for scripts: the
<div id="result" />
element has two possible attributes with boolean values (data-is-eligible
anddata-is-error
). - —Pathoschild 17:35, 13 May 2012 (UTC)
- Ok, thanks, then I will simply query the existing contribs and hope the result will be the same as your tools puts out. JSONP would be required for cross-site requests using JavaScript due to same-origin policy (exception for responses of type script). -- Rillke (talk) 15:22, 16 May 2012 (UTC)
Please add wikimania2013 wiki to your Stalk toy
Hi Jesse,
Please can you add wikimania2013wiki to your stalk toy, it doesn't seem to have been added - should this be an automatic thing or is it manual each time a new wiki is added?
The Helpful One 17:32, 20 May 2012 (UTC)
- Hi Thehelpfulone. Stalktoy automatically recognizes new wikis once they're added to the Toolserver database. Since it hasn't been added yet, we'll probably need to file a request ticket. —Pathoschild 23:59, 20 May 2012 (UTC)
- Hi Jesse, thanks - I've gone ahead and made a request at <https://jira.toolserver.org/browse/TS-1384>. The Helpful One 00:03, 21 May 2012 (UTC)
Hi!
Thanks fo adding the regex tool to the TemplateScript! I'll port my scripts soon...
BTW: I noticed there are some "http://" links which could be changed to protocol realtive URLs on you script. Could you fix that? (I openned a ticket on jira for it) Helder 15:11, 27 May 2012 (UTC)
- Fixed, but it seems you made the ticket private, so I cannot see it. —Pathoschild 16:15, 27 May 2012 (UTC)
- Uops... I didn't notice that. I've removed the "private" security level (why is it the default?).
- BTW: this change seems to fix the other ticket. Helder 16:32, 27 May 2012 (UTC)
- Done. Thanks for the suggestion. —Pathoschild 16:48, 27 May 2012 (UTC)
Global bots@cs.wiki
Hello, please, add cs.wiki to global bots group, per this voting. JAn Dudík (talk) 20:29, 29 May 2012 (UTC)
- Done. —Pathoschild 00:44, 30 May 2012 (UTC)
One bug with stalktoy
Hello. There's only one problem with IPv6 support for stalk toy (here for those not familiar with the context of this), namely that the website you use for WHOIS does not support IPv6 address lookups.--Jasper Deng (talk) 05:16, 7 June 2012 (UTC)
- Fixed. —Pathoschild 05:16, 07 June 2012 (UTC)
Extend stalktoy to include edits
(for outsiders, this is from a discussion on #wikimedia-stewards) Stalk toy is great, and would be even better if it could do global/local range contribs check, especially for IPv6 where that is pretty important.--Jasper Deng (talk) 02:38, 12 June 2012 (UTC)
- Hi Jasper Deng. I created a tracking ticket for the proposed tool. Does it describe what you want? —Pathoschild 21:30, 13 June 2012 (UTC)
- Sounds good; that's what I want.--Jasper Deng (talk) 21:37, 13 June 2012 (UTC)
- Will do. —Pathoschild 01:07, 16 June 2012 (UTC)
Use of global editinterface permissions — rights-holders stalkable?
Following a request for a renewal of this permission by a trusted user, there has been commentary that we should make the right permanent. What I see as a possible hole in our system is how have we been managing this right over a period of time? Can we monitor the users with that right to see that they are still active and utilising the right for good? Is there a ready means to monitor this on an annual basis? Thinking of something like where the editors with this right are checked for the number of edits in the Mediawiki: ns on wikis where they are not listed as local administrators. Alternatively a simpler checking that all contributors with the right are still active WMF editors. Thoughts? — billinghurst sDrewth 13:13, 12 June 2012 (UTC)
- Hi Billinghurst. Krinkle's more contributions tool lets you scan all wikis for one user's edits, which would show you whether they're editing pages in the MediaWiki namespace. Krinkle might be willing to add a namespace filter to make it easier. Does that tool do what you want? —Pathoschild 02:13, 16 June 2012 (UTC)
Merge of Ajax Sysop and StewardScript
Are you still planning to mege Ajax sysop and steawardscript? I'm curious because if I remember correctly, I looked at a rewrite of one of those scripts a while back and it had some cool stuff. Best, --Kangaroopowah 15:09, 12 June 2012 (UTC)
- Hi Kangaroopower. I do plan to merge and rewrite them, but unfortunately it's further down my to-do list. I created a tracking ticket for this in the meantime. —Pathoschild 02:18, 16 June 2012 (UTC)
Template for instructions for installing scripts
Hi!
I noticed you created User:Pathoschild/Scripts/Wikimedia-contrib-install and this reminded a similar template I made on ptwiki: pt:Template:Instalação do recurso. You may want to move the code <source lang="javascript" style="overflow:auto;">
inside the template (avoiding code repetition) using something like {{#tag:syntaxhighlight ... }}.
Best regards, Helder 21:49, 17 June 2012 (UTC)
- Hi Helder. The template is already using
{{#tag:source}}
to format code automatically. The TemplateScript documentation uses<source>
directly because it contains wiki code that would be mangled before it was passed to the tag (notice the different parameters used:|source=
for formatted code vs|literal=
for literal content). —Pathoschild 22:17, 17 June 2012 (UTC)- Oh.. Got it!
- BTW: I didn't know about the "preview=yes" feature. Thanks! Helder 23:41, 17 June 2012 (UTC)