User talk:Pathoschild

From Meta, a Wikimedia project coordination wiki
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

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.


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.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=}).'

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 ( Eligibility criterias are the same as last year. Stryn (talk) 17:27, 14 January 2018 (UTC)

<> —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)