User talk:Pathoschild

From Meta, a Wikimedia project coordination wiki
(Redirected from User talk:Pathoschild/s)
Jump to: navigation, search
User language
en-N This user has a native understanding of English.
fr-N Cet utilisateur a pour langue maternelle le français.
Users by language
Lazy sleeping barnstar.svg
Archives:

Talk to me — if you have questions or comments, feel free to post them below or send me an email. If you saw me edit on your wiki, it was probably related to the synchbot service (which maintains global user pages for others) or interface editor (which lets me maintain my user scripts).

About me — my name is Jesse. Nowadays I quietly write scripts, make the occasional edit, and love Shanel. Many moons ago I was an active editor and administrator on several wikis, a Wikimedia steward (2006–2014), a language committee member (2006–2011), an email response volunteer (2006–2011), and a Board elections committee member (2008 and 2009).

Some questions[edit]

The following discussion is marked as answered. If you have a new comment, add it just below the box.

Hi,

I have three questions which have been on my mind for awhile. Perhaps you can clarify them?

  • 1: I've been using TemplateScript Search and Replace, but it still doesn't save my search definitions between sessions. Are the saved searches stored in cookies?
  • 2: I use the over/under mode of proofreading and find the upper window height to be too small where the original scan is displayed. Could it be made larger with CSS to display more text lines of the original scan? The reason is that I can only see about five lines of text on the top, while I can edit 11-12 lines in the lower text area. I tried using the magnifier to reduce the image size, but this would require reducing the text with each new page edit. I also tried to come up with a solution, but I can't find the object name of the upper window when I looked at the code inspector.
  • 3: If you care to remember, I am using a slightly modified copy of your proofreading.js placed here. I only use the 'Clean OCR' option, which on completion of the cleanup, leaves the cursor at the end of the text. Would it be a big problem to send the cursor up to beginning of the text (Control-Home) within the textarea box?

Your advice and help is much appreciated.Ineuw (talk) 19:14, 16 September 2017 (UTC)

Hi Ineuw.
  1. TemplateScript stores data in your browser's local storage, so it should be persisted between sessions. Did you configure your browser to clear data between sessions?
  2. I'm not very familiar with the proofreading tools. Can you link me to an example page I can try?
  3. You can move the cursor to the top of the text with this code:
    document.getElementById("wpTextbox1").setSelectionRange(0, 5);
    
Pathoschild 00:43, 18 September 2017 (UTC)
Thanks for your help and the clarifications. This is my editing environment, and the window which I would love to increase the height of is indicated by the red frame. Ineuw (talk) 06:29, 19 September 2017 (UTC)
You can increase the height of that preview with CSS like this:
.prp-page-image {
   height: 500px !important;
}
Pathoschild 21:32, 20 September 2017 (UTC)
My gratitude for the CSS code snippet. It is perfect! But this javascript code snippet document.getElementById("wpTextbox1").setSelectionRange(0, 5); moves the cursor to the 1st column, but not the first column and the 1st row of the text box. Ineuw (talk) 07:04, 23 September 2017 (UTC)
What do you mean? Can you post a screenshot? —Pathoschild 15:23, 23 September 2017 (UTC)
@Pathoschild: Hi, I uploaded this image at Wikisource to indicate where the cursor ends up after activating The code is inserted at line 317. It is quite possible that I placed it in the wrong place?Ineuw (talk) 22:39, 25 September 2017 (UTC)Ineuw (talk) 06:14, 27 September 2017 (UTC)
@Ineuw this version should work better:
var input = document.getElementById("wpTextbox1");
input.focus();
input.setSelectionRange(0, 0);
input.scrollTop = 0;
Pathoschild 22:40, 27 September 2017 (UTC)
@Pathoschild: A big thank you, it's perfect.Ineuw (talk) 01:43, 28 September 2017 (UTC)

Catalan translation of TemplateScript[edit]

The following discussion is marked as answered. If you have a new comment, add it just below the box.

Hi, Pathoschild! I've begun to adapt TemplateScript for ca.source. The Catalan translations are the following ones. Could you please upload them to Github?

var pathoschild = pathoschild || {};
pathoschild.i18n = {
    templatescript: {
        defaultHeaderText: "TemplateScript", // the sidebar header text label for the default group
        regexEditor: "Editor regex" // the default 'regex editor' script
    },
    regexeditor: {
        header: "Editor d´expressions regulars",      // the header text shown in the form
        search: "Cercar",                             // the search input label
        replace: "Reemplaçar",                        // the replace input label
        nameSession: "Introdueixi un nom per aquesta sessió", // the prompt shown when saving the session
        loadSession: 'Carregar sessió "{name}"',      // tooltip shown for a saved session, where {name} is replaced with the session name
        deleteSession: 'Esborrar sessió "{name}"',    // tooltip shown for the delete icon on a saved session, where {name} is replaced with the session name
        closeEditor: "Tancar l´editor regex",         // tooltip shown for the close-editor icon
        addPatterns: "Afegeix patrons",               // button text
        addPatternsTooltip: "Afegeix caixes de cerca i reemplaçament", // button tooltip
        apply: "Aplica",                              // button text
        applyTooltip: "Aplica els patrons indicats",  // button tooltip
        undo: "Desfés darrer canvi",                  // button text
        undoTooltip: "Desfà el darrer canvi",         // button tooltip
        save: "Desa canvis",                          // button text
        instructions: 'Introdueixi les expressions regulars a executar. El patró de cerca pot ser de com "{code|text=patró de cerca}" o "{code|text=/patró/modificadors}" i el patró de reemplaçament pot contenir grups de referència com "{code|text=$1}" (vegeu {helplink|text=tutorial|title=JavaScript regex tutorial|url=http://www.regular-expressions.info/javascript.html}).'
    }
};

Thank you! -Aleator (talk) 16:05, 21 September 2017 (UTC)

Thanks Aleator! Can you provide this missing translation too?
saveTooltip: "Save this session for later use", // button tooltip
Pathoschild 15:29, 23 September 2017 (UTC)
Sure: "Desa aquesta sessió per usar-la més endavant" (I'm not sure if the hyphen "-" is a valid character in the scripting). Thanks! -Aleator (talk) 15:41, 28 September 2017 (UTC)
Added and deployed. I updated TemplateScript#Translation with instructions for Catalan. Thanks! —Pathoschild 18:13, 30 September 2017 (UTC)

Synchbot requests going back to July[edit]

The following discussion is marked as answered. If you have a new comment, add it just below the box.

Hi Pathoschild, I wonder if you might have a chance to run Synchbot some time soon? There are a requests going back to July at the moment (including mine) and I think the documentation suggested it would be run roughly once a month. Thank-you for your continued work on Synchbot. Best wishes, Mark Mhl20 (talk) 11:20, 21 November 2017 (UTC)

Hi Mhl20. The main complication is that the permissions Synchbot needs expired, so I'll need to reapply for those. I'm away for vacation, but I'll look into that when I get back. —Pathoschild 18:29, 21 November 2017 (UTC)
@Mhl20: I renewed Synchbot's permissions, cleared the backlog, and changed the process to avoid such delays in the future. :) —Pathoschild 18:37, 24 December 2017 (UTC)
Many thanks, @Pathoschild:, that's brilliant and much appreciated! Mhl20 (talk) 13:28, 26 December 2017 (UTC)

Global user rights[edit]

The following discussion is marked as answered. If you have a new comment, add it just below the box.

Done. Re-granted for 1 year. Matiia (talk) 01:01, 17 December 2017 (UTC)

Thanks! —Pathoschild 01:18, 17 December 2017 (UTC)

Just a suggestion[edit]

Hi there! I was looking at one of your tools , and it occurred to me that on that specific page, I could have used a column that numbered the results, so that, more or less at a glance, I could see how many cells are in the red group, how many in the yellow etc. I know the total can easily be found elsewhere, but it appears to me a "small" improvement that could go a long way :) Best, --Elitre (WMF) (talk) 19:48, 10 January 2018 (UTC)

AccountEligibility tool[edit]

Hi, steward election nomination period starts tomorrow. Can you please update the eligibility tool (https://tools.wmflabs.org/meta/accounteligibility/)? Eligibility criterias are the same as last year. Stryn (talk) 17:27, 14 January 2018 (UTC)

<https://github.com/Pathoschild/Wikimedia-contrib/issues/96> —MarcoAurelio (talk) 17:30, 14 January 2018 (UTC)
I'm travelling without access to a computer today, but I'll set it up as soon as I can (should be before 5am UTC). —Pathoschild 17:39, 14 January 2018 (UTC)
I've delayed the display of CentralNotices until 08:00 (UTC) so we can give Pathoschild time to modify the tool and avoid potential ineligible candidates. —MarcoAurelio (talk) 18:10, 14 January 2018 (UTC)
The code changes are ready, but I won't be able to deploy until I reach home. The ETA is 6am UTC, but there are a lot of airplane delays due to local weather. Here are the specific rules to confirm:
  • Voters:
    • not a bot on any wiki;
    • 600 edits across all wikis before 01 November 2017;
    • 50 edits across all wikis between 01 August 2017 and 31 January 2018 inclusively.
  • Candidates:
    • same rules as voters;
    • held the sysop flag on any one wiki for at least 90 days before 02 February 2018 at 14:00 UTC.
Let me know if you want to make any changes. —Pathoschild 01:35, 15 January 2018 (UTC)
Deployed! —Pathoschild 07:58, 15 January 2018 (UTC)

Stalktoy error[edit]

Hello, Pathoschild! I hope you are doing ok! There is something wrong with Stalktoy. I am receiving the error message: Fatal error: Invalid serialization data for DateTime object in /mnt/nfs/labstore-secondary-tools-project/meta/git/wikimedia-contrib/tool-labs/backend/modules/Cacher.php on line 153

It started yesterday and I have tried many IP's. Cheers.—Teles «Talk to me ˱C L @ S˲» 13:58, 29 January 2018 (UTC)

Fixed! Some invalid data got cached. Let me know if that happens again. —Pathoschild 16:34, 29 January 2018 (UTC)
It’s working just fine now! Thanks!—Teles «Talk to me ˱C L @ S˲» 20:09, 29 January 2018 (UTC)

Japanese translation of TemplateScript[edit]

Hi,

Thank you for providing such a great tool! We appreciate it if you could add the following translation to TemplateScript as ja.js:

var pathoschild = pathoschild || {};
pathoschild.i18n = {
    templatescript: {
        defaultHeaderText: "テンプレートスクリプト", // the sidebar header text label for the default group
        regexEditor: "正規表現エディタ" // the default 'regex editor' script
    },
    regexeditor: {
        header: "正規表現エディタ",                         // the header text shown in the form
        search: "検索",                                     // the search input label
        replace: "置換",                                    // the replace input label
        nameSession: "セッション名を入力する",              // the prompt shown when saving the session
        loadSession: 'セッション"{name}"を開く',            // tooltip shown for a saved session, where {name} is replaced with the session name
        deleteSession: 'セッション"{name}"を削除する',      // tooltip shown for the delete icon on a saved session, where {name} is replaced with the session name
        closeEditor: "正規表現エディタを終了する",          // tooltip shown for the close-editor icon
        addPatterns: "パターンを追加する",                  // button text
        addPatternsTooltip: "検索・置換ボックスを追加する", // button tooltip
        apply: "適用する",                                  // button text
        applyTooltip: "上記のパターンを適用する",           // button tooltip
        undo: "最後の適用を取り消す",                       // button text
        undoTooltip: "最後の適用を取り消す",                // button tooltip
        save: "保存する",                                   // button text
        saveTooltip: "後で使うためにセッションを保存する",  // button tooltip
        instructions: '任意の数の正規表現を入力できます。検索パターンは"{code|text=検索パターン}"または"{code|text=/パターン/修飾子}"のように指定します。置換パターンには"{code|text=$1}"のように参照グループを含めることができます({helplink|text=チュートリアル|title=JavaScript regex tutorial|url=http://www.regular-expressions.info/javascript.html}を参照してください)。'
    }
};

Thank you for your cooperation! --CES1596 (talk) 13:07, 9 March 2018 (UTC)

Added; see TemplateScript#Translation for how to use them. Thanks! —Pathoschild 16:10, 11 March 2018 (UTC)

Draft name space/ function for the SWWP[edit]

Hello Pathoschild! It's been a long time since I stopped by here. Well, I'm doing great and so is the SWWP. We recently have had some chats about establish the draft name-space just like we did on PORTAL nine years ago? Okay, now we need own draft pages for crosschecking before submitting them into article main space. So were wondering if you could be a bit of help and look into that how to go about it. See: https://en.wikipedia.org/w/index.php?title=Draft:Kibanga&action=edit for some example.--Wikipedian (Activist) 10:42, 11 March 2018 (UTC)

Hi Muddyb Blast Producer. I think you need to get consensus in discussion on the wiki and then submit a ticket in Phabricator to add the namespace. I've been inactive for a while though, so you could maybe ask in the Wikimedia Forum to be sure. —Pathoschild 16:00, 11 March 2018 (UTC)

Share your experience and feedback as a Wikimedian in this global survey[edit]

WMF Surveys, 18:35, 29 March 2018 (UTC)

Normalization failure?[edit]

Re-occurance of User talk:Pathoschild/Archives/2018#Ajax Sysop error on Ajax Rollback: screenshot. Did the rollback manually (Special:Diff/17921482), but maybe script don't like these rare-cases? :P — regards, Revi 07:01, 7 April 2018 (UTC)

Hi -revi. I deployed a potential fix for that (you'll need to bypass your cache to see it). I can't test since I'm not an active administrator anymore; let me know if you spot any issues. :) —Pathoschild 03:30, 17 April 2018 (UTC)

Reminder: Share your feedback in this Wikimedia survey[edit]

WMF Surveys, 01:34, 13 April 2018 (UTC)

Thank you for your contribution to the Tajik Wikipedia.[edit]

Hi. Thank you for your contribution to the Tajik Wikipedia. The State Committee on Language and Terminology at its meeting revealed a large number of violations of the Tajik grammar rules in articles of the Tajik Wikipedia. Have this remark in view of. With respect, the administrator of the Tajik Wikipedia.--Шухрат Саъдиев (talk) 03:11, 17 April 2018 (UTC)

Hi Шухрат Саъдиев. I don't contribute to the Tajik Wikipedia; my only changes there are automated as part of Synchbot. :) —Pathoschild 03:32, 17 April 2018 (UTC)
All changes Fixed under your User, ??--Шухрат Саъдиев (talk) 04:00, 17 April 2018 (UTC)
Yep. Synchbot doesn't use a separate bot account because many users didn't like the idea of a bot with steward access. Later we gained the ability to create custom groups, but by that point everything was already well-established using my own account (including community discussions, negotiated exceptions to filter rules, etc). So now I run Synchbot through this account for historical reasons. —Pathoschild 04:07, 17 April 2018 (UTC)
Сlear --Шухрат Саъдиев (talk) 13:53, 17 April 2018 (UTC)

Your feedback matters: Final reminder to take the global Wikimedia survey[edit]

WMF Surveys, 00:43, 20 April 2018 (UTC)

crossactivity throwing errors[edit]

Not sure whether this is temporary or otherwise, so at this point a note that "crossactivity" is throwing errors (see below) along with its results, see [1] and. Level of my testing is minimal, tried a few usernames for similar error. Will attempt to check later to see if it is reproducible and ongoing.

 — billinghurst sDrewth 03:03, 26 April 2018 (UTC)

Hi billinghurst. The tools can't connect to gorwiki, hiwikimedia, inhwiki, lfnwiki, or romdwikimedia. I can't connect to those from a separate Tool Labs user either, so this looks like an issue with Tool Labs. I set the tools to temporarily ignore those wikis for now, so it should work fine now. —Pathoschild 05:15, 26 April 2018 (UTC)
This has been reported already on Phabricator and to Cloud Services fwiw. Best regards, —MarcoAurelio (talk) 11:34, 26 April 2018 (UTC)
@MarcoAurelio Could you link to the ticket? —Pathoschild 14:53, 26 April 2018 (UTC)
Hi. They're several (one per wiki) but <https://phabricator.wikimedia.org/T184375> should be enough. According to cloud-services, this should be now fixed. Thanks. —MarcoAurelio (talk) 21:25, 26 April 2018 (UTC)
Thanks! I removed those wikis from the ignore list, so they can appear in results now. —Pathoschild 22:18, 26 April 2018 (UTC)

Truth about so called (by Serbians) Serbo-Croatian language[edit]

Moved to Talk:Language committee#Truth about so called (by Serbians) Serbo-Croatian language.

TemplateScript and Parser migration action[edit]

Hi. This new parser migration stuff and TemplateScript are not playing toghter, though it seems that numbers of components get shutdown by the parser. I lose my side scripts (and my customised toolbar).

Example: https://en.wikisource.org/w/index.php?title=The_New_International_Encyclop%C3%A6dia/Flour&action=parsermigration-edit&lintid=506100

So in this example where I would normally have components to allow for a (quicker) conversion to <Pages> ... GONE!

Guessing that it is due to the change from action=edit, though flagging it in case there is an easy fix. Presuming that they are neutralising anything that might compete with their presentation form, as it also kills proofreadpage. :-/  — billinghurst sDrewth 23:14, 7 May 2018 (UTC)

Fixed and push live (you may need to bypass your cache). Let me know if you notice any other issues using TemplateScript with the new action. —Pathoschild 15:03, 09 May 2018 (UTC)

Tool errors[edit]

Hello Pathoschild, stalktoy give ( ! ) Fatal error: Invalid serialization data for DateTime object in /mnt/nfs/labstore-secondary-tools-project/meta/git/wikimedia-contrib/tool-labs/backend/modules/Cacher.php on line 153 --Alaa :)..! 11:30, 8 May 2018 (UTC)

I think I was just about to point out the same, as catanalysis malfunctions as well :) --OosWesThoesBes (talk) 09:32, 9 May 2018 (UTC)
Heya, Pathoschild, just wanted to let you know guser search has been down for a few days. :( Chrissymad (talk) 13:53, 9 May 2018 (UTC)
Fixed! The errors were caused by a cache file containing invalid data somehow; I cleared the cache and everything should be fine now. Sorry about that, and thanks for reporting it! —Pathoschild 14:53, 09 May 2018 (UTC)
Yes, it works perfectly again now. Thank you! :) --OosWesThoesBes (talk) 14:57, 9 May 2018 (UTC)
Thanks Pathoschild --Alaa :)..! 18:12, 10 May 2018 (UTC)