User talk:Krinkle

From Meta, a Wikimedia project coordination wiki
Jump to: navigation, search

Contents

User:Krinkle/Scripts/OneClickCommoniser.js[edit]

Hi. I have been missing "my link" to the move to Commons tool for some time. Perhaps you could have a look at this and update link (http://tools.wmflabs.org/commonshelper/). Thank you. --MGA73 (talk) 17:36, 15 April 2014 (UTC)

MoreContributions[edit]

Is it on Labs yet? PiRSquared17 (talk) 12:36, 10 May 2014 (UTC)

Thanks for asking. At the moment I don't have plans to migrate it. Too many Toolserver-specific things I don't have time to migrate at the moment. However I do plan to collaborate with Luxo on https://tools.wmflabs.org/guc/. That way we can improve the tool for everyone. His does most of what mine can already, the one or two extra features mine has (wildcard suffix for IP addresses, and selecting one wiki instead of all) can be implemented in his tool instead. –Krinkletalk 14:48, 10 May 2014 (UTC)

Thanks[edit]

Hi Krinkle, Thanks for your edits in Urdu Wikipedia last night. I have no technical user who maintain such gadgets, javascript and css codes, If you maintain these scripts on regular basis it would be great support for us :-) Muhammad Shuaib (talk) 06:45, 20 May 2014 (UTC)

Hi Muhammad Shuaib,
Thank you for your message, I appreciate it. I unfortunately am not involved with the Urdu Wikipedia and can't really help much on a regular basis (not proactively). Yesterday I performed general maintenance based on critical issues or migration concerns that I found through searching all Wikimedia Foundation wikis at once (I am a global interface editor). However if you need any help with specific issues (e.g. you want to change how something looks or how something works), feel free to ask. Ask on either Steward requests/Miscellaneous or on my talk page here, and I'll see what I can do. –Krinkletalk 15:34, 20 May 2014 (UTC)
Thanks :) edit tools don't load below the text editor while editing any page. Muhammad Shuaib (talk) 15:38, 20 May 2014 (UTC)
I tried to update the Edittools system on your wiki. It should be working now. –Krinkletalk 17:17, 24 May 2014 (UTC)
After your edits in common css, titles and subtitles appear in another font, not in orginal urdu nastaleeq font. Muhammad Shuaib (talk) 16:57, 21 May 2014 (UTC)
I'm not sure what you're referring to. Is it better now? –Krinkletalk 17:18, 24 May 2014 (UTC)

Bureaucrat on Beta Wikipedia (Forwarded Message From User_talk:Barras#Bureaucrat_on_Beta_Wikipedia)[edit]

Hello Krinkle,

I wish to apply/become a Bureaucraft on the Beta Wikipedia (http://en.wikipedia.beta.wmflabs.org/wiki). Unfortunately, the stewards who have made accounts on the Beta Wikipedia seem to be inactive or retired, which is why I contacted Barras. Barras redirected me to your page here and suggested that you might be able to address this topic. Towards the end of 2013, I took a Wikibreak. When I came back to Wikipedia in 2014, I found that http://en.wikipedia.beta.wmflabs.org/wiki/User:Charmlet has been inactive for almost one year now. I would like to take leadership of his project and continue it further, as I believe it will be a success (I was involved in helping him with Charmlet's project, but it was never complete for release). Becoming a bureaucraft will allow me to use some of the importing tools, etc. to enhance/further the project. Please let me know your thoughts on this matter; I would greatly appreciate if you would consider me for this opportunity. --JustBerry (talk) 17:14, 24 May 2014 (UTC)

Additionally, I would be willing to help with the management of the site, including giving users rights w/application. I have noticed that users have tried to apply for user rights on the talk pages of multiple bureaucrats and stewards on the Beta Wikipedia, but, once again, they appear to be inactive/retired. Please let me know your thoughts on this as well. --JustBerry (talk) 17:14, 24 May 2014 (UTC)

Yes check.svg Done by PiRSquared17.

Problem in Sindhi Chars[edit]

Hi Krinkle, we have created a template in urdu wikipedia for special sindhi characters, but these charachters dont appear in wiki pages except titles. If you would paste this template here in meta, these characters will appear, Because Nastaleeq font dosnt have support of these characters. So please fix this problem as these chars will appear in all wiki pages. Thanks :) --Muhammad Shuaib (talk) 09:16, 5 June 2014 (UTC)

OrphanTalk results limited[edit]

Hi! It's a great tool but unfortunately reveals only pages starting with letters A–C on my homewiki. As I don't want to delete all orphan talks straight away, deleting them all to make space for next results wouldn't be a good solution. If not listing all results then could it be possible to add parameter "from"? E.g "from=E" would list results starting with letter E, F, G etc. Thanks! 88.196.241.249 10:27, 20 June 2014 (UTC)

jquery.makeCollapsible.js[edit]

Hi, in it.wiki we would like to replace NavFrame and "Collapsible tables" (section 2 and 3 in mw:Manual:Collapsible elements) with mw-collapsible. We have only two issues:

  • with Collapsible tables there was the "autocollapse" option. I can't find this feature with "mw-collapsible" so I have used something like this in the global MediaWiki:Common.js:
if ($('.mw-collapsible').length > 1) {
    $('.mw-collapsible.mw-autocollapse').each(function (i, el) {
        if (!$(el).hasClass('mw-collapsed')) {
            $(el).addClass('mw-collapsed');
        }
    });
}
Then I have added mw-autocollapse class to the elements I want to auto-collapse. Is there a better way? Do you think this feature can be implementend directly in jquery.makeCollapsible.js?
  • fadeIn and fadeOut are not always animating smoothly. Can I configure, just in case, fadeIn/fadeOut duration to zero ?

Thanks in advance. --Rotpunkt (talk) 13:56, 27 June 2014 (UTC)

I experimented that the previous code doesn't always work (especially with "Preview"). --Rotpunkt (talk) 10:14, 28 June 2014 (UTC)
The following code works better, but the initial closing animation is visible and annoying:
$(window).load(function () {
    if ($('.mw-collapsible').length > 1) {
        $('.mw-collapsible.mw-autocollapse').each(function (i, el) {
            if (!$(el).hasClass('mw-collapsed')) {
                $(el).find('.mw-collapsible-toggle > a').click();
            }
        });
    }
});
--Rotpunkt (talk) 17:00, 28 June 2014 (UTC)
Hi Rotpunkt,
The makeCollapsible plugin has this functionality built-in already. When you give an element class mw-collapsible mw-collapsed it will be collapsed by default, and the initial auto collapse will be done without an animation (exactly what you want). You can see a demonstration at testwiki:User:Krinkle/Test suite for mw-collapsible. –Krinkletalk 13:02, 29 June 2014 (UTC)
Hi, Krinkle, thanks for the answer, but there was a misunderstanding: what you have answered is not what we were looking for. With the old "Collapsible tables" if you put also the class "autocollapse" to a table it's collapsed "only" when there are more then one! :) I am going to make an example for you. --Rotpunkt (talk) 13:39, 29 June 2014 (UTC)
The examples:
As you can see in it:Utente:Rotpunkt/TwoCollapsibles, the code "works", but however the initial animation is a problem.
--Rotpunkt (talk) 13:59, 29 June 2014 (UTC)
I was thinking: implementing the autocollapse class outside the makeCollapsible plugin, as I was trying to do, could be even better. For example it allows you to filter the elements to which this behaviour apply, for example only tables, replacing the selector $('.mw-collapsible') with $('table.mw-collapsible'). --Rotpunkt (talk) 14:49, 29 June 2014 (UTC)
Hi, I have restricted the autocollapse behaviour to tables (working only with tables is ok for us) and added hide() for elements after the first tr (like for the old "collapsible tables" implementation):
$(window).load(function () {
    if ($('table.mw-collapsible').length > 1) {
        $('table.mw-collapsible.selfcollapsible').each(function (i, el) {
            if (!$(el).hasClass('mw-collapsed')) {
                $(el).find('tr:not(:first)').hide();
                $(el).find('.mw-collapsible-toggle > a').click();
            }
        });
    }
});
Now, with hide(), the animation is very fast (see it:Utente:Rotpunkt/TwoCollapsibles) although it has not gone away completely. It would be nice to remove it at all. --Rotpunkt (talk) 11:36, 30 June 2014 (UTC)
Yet another try: I have used:
$(function () {
    if ($('table.mw-collapsible').length > 1) {
        $('table.mw-collapsible.selfcollapsible').each(function (i, el) {
            if (!$(el).hasClass('mw-collapsed')) {
                $(el).addClass('mw-collapsed');
                $(el).find('tr:not(:first)').hide();
            }
        });
    }
});
It's similar to the first try but with also hide(). No animation at all but sometimes it starts with label "Hide" ("nascondi" in italian). I don't understand why, indeed with debug=true it always works fine: https://it.wikipedia.org/w/index.php?title=Utente:Rotpunkt/TwoCollapsibles&debug=true works, instead without debug https://it.wikipedia.org/w/index.php?title=Utente:Rotpunkt/TwoCollapsibles it shows initially "hide" ). --Rotpunkt (talk) 12:56, 30 June 2014 (UTC)

┌─────────────────────────────┘
I found the problem! It was related to localStorage:

  • with $wgResourceLoaderStorageEnabled=false => makeCollapsible is called always after MediaWiki:Common.js, so it finds the mw-collapsed class I have added in Common.js and changes the toggle label from "collapse" to "expand"
  • with $wgResourceLoaderStorageEnabled=true => makeCollapsible is sometimes called before MediaWiki:Common.js so the toggle label remains "collapse" ("nascondi" in italian). This execution order can be demonstrated putting console.log at the beginning of makeCollapsible and inside Common.js. I don't know if this is a bug.

So my final fix is:

$(function () {
    if ($('table.mw-collapsible').length > 1) {
        $('table.mw-collapsible.selfcollapsible').each(function (i, el) {
            if (!$(el).hasClass('mw-collapsed')) {
                // makeCollapsible already called?
                if ($(el).data('mw-made-collapsible')) {
                    // hide() speeds up table collapsing
                    $(el).find('tr:not(:first)').hide();
                    $(el).find('.mw-collapsible-toggle > a').click();
                } else {
                    $(el).addClass('mw-collapsed');
                }      
            }
        });
    }
});

--Rotpunkt (talk) 22:34, 30 June 2014 (UTC)

expand/collapse bold with mw-collapsible[edit]

Hi Krinkle, in itwiki we are trying to migrate all collapsible tables and NavFrames to mw-collapsible. I would like to point you to this issue: the same HTML code produces different results using mw-collapsible => expand/collapse is bold. Should it be fixed in jquery.makeCollapsible.js/jquery.makeCollapsible.css so that expand/collapse link is displayed "normal" ? Example:

Table using class mw-collapsible => expand/collapse is bold
This is a test

--

Table using collapsible => hide/show is not bold
This is a test

Thanks in advance. --Rotpunkt (talk) 09:48, 16 July 2014 (UTC)

Queries update[edit]

FYI, I updated one of your queries. Feel free to revert it if you don't want it, and I won't update other query (without asking it) ;). Southparkfan 13:06, 26 July 2014 (UTC)

Hi,
Thanks, that's great! They're not really meant to be periodic queries though. It's just a place where I (used to) publish the result of a query I was asked to run. Thanks for the update. If you're looking to do periodic queries, perhaps you want to help write a tool for it and store the results in Tool Labs and schedule the runs via a job queue on a grid. Note that https://tools.wmflabs.org/lists/ exists, and myself I reserved query (https://github.com/Krinkle/mw-tool-query/issues/1 plan]). I haven't had time to work on it yet, but it would replace things like Get Top RC Pages, Get Top RC Users, InterfaceFiles, SingleAuthorTalk, and others. –Krinkletalk 09:40, 27 July 2014 (UTC)
Hi, a query tool seems interesting. I don't know if these Get Top RC * and the other things could be merged into the lists tool, but I guess it's better to build a query tool for those scripts. Let me know if you have made any progress on it. P.S: if you want to re-write TSUsers, you could probably merge that also in the query tool.I guess that isn't possible. Southparkfan 23:17, 27 July 2014 (UTC)

GUC-tool[edit]

Hoi Krinkle. Jij bent een van de maintainers van de GUC-tool zie ik... ik wil even doorgeven dat hij niet meer werkt. Hij laadt helemaal niet. Kun jij er ajb even naar kijken? Het is al een paar dagen zo en het is toch knap irritant aangezien we die tool ontzettend vaak gebruiken en er geen alternatief is. Dank alvast. Trijnsteltalk 13:34, 20 August 2014 (UTC)

Hoi,
Weet niet zeker wat er aan de hand was, maar leek inderdaad niet meer te reageren. Heb de guc webservice opgeschoond en herstart. Lijkt nu weer goed te draaien: https://tools.wmflabs.org/guc/?user=KrinkleKrinkletalk 01:38, 22 August 2014 (UTC)

MediaWiki:Gadget-bkl-check.js[edit]

Hello Krinkle,

please have a look at de.wikipedia.org/wiki/MediaWiki_Diskussion:Gadget-bkl-check.js

Best regards, --Bildungsbürger (talk) 07:03, 26 August 2014 (UTC)

Thanks. Replied. –Krinkletalk 13:20, 26 August 2014 (UTC)

Javascript depreciated methods and MediaWiki releases[edit]

Hello,

I think you, or perhaps another global interface editor, once created a page containing all the pages of MediaWiki namespace of all wikis using specific functions (about to disappear). Could you tell me the page in question if this is the case? — Automatik (talk) 20:57, 29 September 2014 (UTC)

Hi Automatik,
There isn't a page showing the uses of the functions, but there are announcements and overviews of the functions themselves for you to look for in your own code:
Krinkletalk 21:51, 29 September 2014 (UTC)
Ok, thank you for the answer. I'm sure I saw a page like I described, but it wasn't you. Thanks for the links. — Automatik (talk) 22:13, 29 September 2014 (UTC)
@Automatik: There is also fr:Utilisateur:Ltrbot/Fonctions obsolètes. Maybe the author could run it also on other wikis? Helder 13:36, 2 October 2014 (UTC)
I can run it on any wiki which would ask to, but I think the question was for frwiki (where the specific problem was solved). — Ltrlg (talk) – 15:11, 5 October 2014 (UTC)
Than you both (Helder, Ltrlg) for the answer. It wasn't only for frwiki, so I'll ask when needed for others wikis (especially frwikt). — Automatik (talk) 10:40, 12 October 2014 (UTC)

addDeleteReason[edit]

Does it only work with Files? — revi 10:01, 7 October 2014 (UTC)

Snapshots tool not updating[edit]

Hello Krinkle!

Can you take a look at your snapshoot-Tool in Toollabs? It seems, that it doesn't fetch the wmf/1.25wmf* branches :/

Can you fix that? Thanks! --Florianschmidtwelzow (talk) 14:45, 21 October 2014 (UTC)

Looks like the updater got removed from the schedule. It's back on now. Thanks! –Krinkletalk 02:38, 23 October 2014 (UTC)
Great, thanks :) --Florianschmidtwelzow (talk) 15:46, 24 October 2014 (UTC)

wikEd/TemplateData[edit]

Hi Krinkle,

I am planning to make wikEd and Extension:TemplateData compatible. wikEd uses its own rich-text iframe insteasd of the the standard textarea (see w:User:Cacycle/wikEd#Scripts, add-ons, and extensions for details). Does Extension:TemplateData have any hooks that wikEd could use or do you have any other suggestions to make this work? Cacycle (talk) 10:30, 27 October 2014 (UTC)

TemplateData doesn't have hooks specifically for this, and I don't think it should. There is already a TextSelection API with a method for retrieving contents of a text area. I'd recommend WikiEd implements this method so that when things like EditWarning (or indeed TemplateData) need the contents of the text area (which may be hidden by WikiEd), it'll work as expected. CodeEditor (which, like WikiEd, has a custom iframe as well) implements this method, and EditWarning uses this API; thus the EditWarning works as expected when using CodeEditor. Once TemplateData uses this API, WikiEd can override the content retrieval the same way CodeEditor does. Please file a bug for TemplateData requesting it uses textSelection('getContents') instead of val(), similar to mediawiki-core's EditWarning module. –Krinkletalk 18:53, 28 October 2014 (UTC)

RefTool[edit]

Hi krinkle, Gadget-refToolBar dosent work on urdu wikipedia, plz help fix the problem. Thanks --Muhammad Shuaib (talk) 13:11, 29 October 2014 (UTC)

Hi Muhammad Shuaib,
Sorry but I don't think I can help you. I didn't install the gadget on ur.wikipedia.org and also don't author the "refToolbar" gadget. Perhaps ask User:Mr.Z-man or User:Kaldari? They are listed as authors. Thanks! –Krinkletalk 20:46, 30 October 2014 (UTC)
Oh okeh and thanks :) --Muhammad Shuaib (talk) 18:11, 31 October 2014 (UTC)

Error in sidebar[edit]

Hi krinkle, please see this image, it seems like any error occurred in urdu wiki side bar css. plz help fix this problem. Thanks :) --Muhammad Shuaib (talk) 11:29, 18 November 2014 (UTC)

@Muhammad Shuaib: It was caused by this edit. I've reverted it. –Krinkletalk 14:48, 18 November 2014 (UTC)
Thanks a lot :) --Muhammad Shuaib (talk) 14:51, 18 November 2014 (UTC)

voy:it:Discussioni_utente:Krenair#Downloaded_information_doubt[edit]

Hi Krinkle, Krenair suggest me to involve you in the above conversation. Could you pass and leave a comment at your earliest convenience? Thanks, --Andyrom75 (talk) 04:27, 25 November 2014 (UTC)

Fuchsia tags in cvn-sw[edit]

Hi!

This is a complete shot in the dark, but perhaps you can point me in the right direction if you don't know the answer. The fuchsia tags in cvn-sw (like Possible gibberish? and Copyvio?) are rarely correct and I would like to help improve them. Do you know who I should talk to? Nirmos (talk) 20:09, 30 November 2014 (UTC)

@Nirmos: I'd try #wikimedia-stewards and #countervandalism. The relevant code is in the CVNBot software. I haven't looked in its source code for a while, but here's what I found:
So, it basically only relates to the size of the edit or page creation. Which, depending on what we know about the editing user, is considered a "Large edit/create" or "Possible copyvio/gibberish".
Krinkletalk 20:19, 30 November 2014 (UTC)
Thank you very much. So, in AbuseFilter terms, the software currently only uses two variables: action and edit_delta. In that case, my question is: Why isn't it looking at added_lines? Is it because it's difficult to write a language-neutral filter? Is it a technical limitation? Or is it because of performance reasons? (I hope it's the first one because I can do that.) Nirmos (talk) 20:45, 30 November 2014 (UTC)
Nirmos: It's a technical limitation because the real-time feed of edits made on wikis (stream, API) provides meta data about changes (much like the Special:RecentChanges page). It doesn't contain full change diffs. That would be much too large. That kind of information is only available, in a performant and scalable way, when the software is implemented as a MediaWiki extension (like AbuseFilter). Alternatively, the bot would have to download every change from the wiki as it happens. The latter would not be worth the overhead. In the long run: I'd like to refactor the MediaWiki software so that change tags (e.g. those added by AbuseFilter) are available in the real-time feeds. The CVNBot IRC channels should become obsolete in favour of a more streamlined recent changes interface for patrollers (much like RTRC). –Krinkletalk 02:32, 20 December 2014 (UTC)

Global user page migration[edit]

Hello Krinkle. I deleted your local user pages on all wikis as you requested via Synchbot. You can see the full log on your archive page. :) —Pathoschild 23:36, 28 February 2015 (UTC)

ReferenceTooltips[edit]

Why stopped working this gadget (js, css) on Kazakh Wikipedia? --Arystanbek (talk) 12:30, 5 March 2015 (UTC)

AnonymousI18N[edit]

Hello Krinkle,

I copied AnonymousI18N code from Wikidata:MediaWiki:Common.js to Wmca:MediaWiki:Common.js, it's working pretty fine but seems that it doesn't remember my choice... it always fall back to English. I think I did something wrong, but I don't know what. So if you have a minute, I have granted you sysop on WMCA Wiki so you can edit as you wish. Thank you in advance for your help. Best regards. Benoit Rochon (talk) 21:07, 6 March 2015 (UTC)

@Benoit Rochon: Hi, Thanks for using AnonymousI18N! A few things:
  • Firstly, I've updated WMCA to use the code from Commons instead of Wikidata. That shouldn't make any notable difference right now, but it just in case, update from commons:MediaWiki:Common.js for future reference.
  • I'm not sure what problem you're experiencing. When I open ca.wikimedia.org in an Incognito window (e.g. not logged-in) it suggests me a language (Dutch, British English etc) and clicking that reloads the page. Then any subsequent link also gets that same 'uselang' parameter. I'm curious how you made a different "choice", though, because of the next point:
  • It seems the dropdown menu does not appear in the sidebar at all. This is because AnonymousI18N looks for the "navigation" sidebar section. It seems WMCA renamed this to "About WMC-text". I can fix this for you (or do it yourself), by keeping the the section identifier back to "navigation". You're free to change the label (on wmca:MediaWiki:Navigation) to "The organisation" or "About WMC", but the internal ID for the top section on wmca:MediaWiki:Sidebar must be "navigation".
Krinkletalk 23:21, 6 March 2015 (UTC)
Hello Krinkle, thank you so much for your help, I really appreciate it. Maybe this is why the Wiki doesn't remember my language choice... no dropdown menu... I didn't even realise that! Now, I'm not sure I understand the point #3 regarding the sidebar menu. Maybe I messed around with that menu a couple years ago, because I have had a lot of problems with the menu since then. Please feel free to correct it; if you need more accessibility, just let me know. Thanks in advance. Best regards. 14:49, 7 March 2015 (UTC)
@Benoit Rochon: Okay, I've done, it. I didn't change it for you previously as I wanted to verify this is okay with you. As for access, I didn't necessarily need administrator rights as I'm already a Global interface editor. However I did need your permissions to make non-trivial changes. It should be working now. You're welcome! –Krinkletalk 22:17, 9 March 2015 (UTC)

Temporary editinterface[edit]

Hi, your editinterface rights have expired. Please re-request on SRGP if you still need them. Thanks! Ajraddatz (talk) 02:57, 15 March 2015 (UTC)

Script maintenance[edit]

Hi Krinkle. While maintaining my force LTR script I came across User:Krinkle/Scripts/Vector LTR.js, which does the same thing. Would you be interested in becoming a maintainer on Wikimedia-contrib, so we can both maintain a definitive version? —Pathoschild 01:46, 19 March 2015 (UTC)

@Pathoschild Yup. By all means. Note that back in 2013 we already synced up once (Wikimedia-contrib#11). It seems I didn't mention my own script at the time, but that's where the changes came from. –Krinkletalk 03:49, 19 March 2015 (UTC)
Great. I added you as a collaborator on the repository. I'll update everyone to the wikimedia-contrib version of the script going forward. —Pathoschild 04:01, 19 March 2015 (UTC)
I updated User:Krinkle/Scripts/Countervandalism.js to use force ltr, but I noticed it was disabled due to strange side-effects. Do those side-effects still happen with the new version? —Pathoschild 00:43, 20 March 2015 (UTC)
@Pathoschild I've reverted User:Krinkle/Scripts/Vector LTR.js per diff. Feel free to migrate Special:GlobalUsage/Krinkle Vector LTR.js uses directly, however. –Krinkletalk 05:03, 20 March 2015 (UTC)
Sure, I'll migrate them as part of my cleanup pass. —Pathoschild 05:04, 20 March 2015 (UTC)

I also came across User:Krinkle/Scripts/StewardScript.js. This looks like an early rewrite to remove deprecated functions and adopt mw conventions in StewardScript, but the original StewardScript has been rewritten for the same reasons since then. Is it still needed? —Pathoschild 01:27, 24 March 2015 (UTC)

It was never used by anyone as far as I'm aware. I've requested deletion and redirected the description page. –Krinkletalk 06:46, 24 March 2015 (UTC)

Edittools for the code editor[edit]

Hi!

As we both know, insertTags() (now mw.toolbar.insertTags()) doesn't work with the code editor. Is there a new function or method that works for CSS, JavaScript and Lua pages? Nirmos (talk) 05:11, 17 July 2015 (UTC)

Global user contributions[edit]

Hallo Krinkle, das tool läuft nicht richtig. [1] Die Links werden ausgegeben als https://tools.wmflabs.org/wiki/Martinique das wäre zum Beispiel der oberste Eintrag vom 23:14, 28 Dec 2013. --Knochen (talk) 05:41, 25 July 2015 (UTC)

MediaWiki:Gadget-wm-portal-preview.js & document.write[edit]

Re your recent email about document.write, I see that the above linked script at meta has the issue. I don't even know the purpose of the script. Are you able to offer advice about how to handle it? First thought is just take it offline, however, I wouldn't even know how many are actively using it. Thanks.  — billinghurst sDrewth 02:00, 6 August 2015 (UTC)

@billinghurst: Thanks for your message. The portal script actually does something else, but looks very similar indeed. The confusion is understandable. The document.write() function is provided by the web browser as part of the DOM API. It is not provided by MediaWiki. This function is bad on pages downloaded from a website. However for popup "pages" created by JavaScript, using document.write will work fine. Look how it invokes popupWindow.document.write, not document.write. For popups, the HTML is coming from JavaScript, so the HTML stream is open and must be closed manually. For server-generated web pages, the server is in control of when the HTML is ready ("closed"). After that point, calling document.write() doesn't work, hence it's bad practice to use inside MediaWiki. –Krinkletalk 03:27, 6 August 2015 (UTC)

Overlapping lists on srwiki[edit]

I was wondering do you know how to fix list that overlap image problem example, how it should be --Milicevic01 (talk) 20:08, 20 August 2015 (UTC)

@Milicevic01: Thanks for asking. The problem is that sr.wikipedia.org has a customisation in sr:MediaWiki:Common.css that removes the margin rule for the thumbnail:
div.thumb { margin: .1em;
and
div.tleft { margin-right:0.4em;
. Both of these make the margin much smaller, causing an overlap. The MediaWiki software provides a default margin of 1.4em that should not be changed. I recommend removing the rules related to "margin" from the Common.css file. I can help you with that change if you like. --–Krinkletalk 20:29, 20 August 2015 (UTC)
Yes i would like that --Milicevic01 (talk) 20:36, 20 August 2015 (UTC)
Yes check.svg DoneKrinkle 21:28, 20 August 2015 (UTC)

GUC edit summaries[edit]

Hi, Krinkle. I noticed the global user contributions (guc) tool omits edit summaries if the edit was to a page section. It links to the section on →, then renders the section title in plaintext followed by a colon, but then gives the closing bracket.

For example, an edit shows in the

API as: "comment": "/* sectionfoo */ summary-by-editor",
guc page as: (→ sectionfoo:) (current)
Special:Contributions page as: (→‎sectionfoo: summary-by-editor) (current)
N.B. (I left in (current) for ease of reading.)

Can this be fixed? Thank you, and thanks for your continued maintenance of the tool's codebase. –84.92.129.87 23:05, 30 August 2015 (UTC)

@84.92.129.87: Thanks for reporting. I've fixed the bug (commit) and deployed it on Tool Labs. –Krinkletalk 00:19, 1 September 2015 (UTC)
Sweet. Thanks, looks good. –84.92.129.87 16:12, 2 September 2015 (UTC)
P.S. It doesn't make much difference ofc but the "found in n projects" statistic count is always 1. –84.92.129.87 16:42, 2 September 2015 (UTC)

Flow support in GUC[edit]

Hello. Not sure if this is known, but I noticed that edits to Flow boards do not show up in GUC. For example, I left a message a week ago here. GUC lists all the other edits I made that day on that wiki, except for that one. HTH, --Elitre (WMF) (talk) 10:08, 3 September 2015 (UTC) PS: This page would be another example. --Elitre (WMF) (talk) 10:38, 3 September 2015 (UTC)

@Elitre (WMF): I didn't know about it specifically, but it doesn't surprise me. It's a natural side effect of Flow contributions not being stored in the MediaWiki revision database. There's little I can do about this inside GUC. I imagine it affects other tools as well. –Krinkletalk 16:37, 3 September 2015 (UTC)
Thanks for the prompt reply. I guess this means there's no value in reporting the issue somewhere else, like Phab? Best, --Elitre (WMF) (talk) 18:34, 3 September 2015 (UTC)

GOC - ideas[edit]

Hi! Wanted to suggest two things. 1) maybe sort Wikipedias by user's last edit? That is, if I edited project A two days ago and project B - one year ago, place project A as first, not second. 2) not so important, but maybe some table of contents could be enabled? --Edgars2007 (talk) 13:04, 4 September 2015 (UTC)

@Edgars2007: The GUC tool currently already shows newer changes before older changes of of each wiki. However the wikis themselves are in the order the results are found from the database. This is because it slow to query all databases. It seems preferable to show results as soon as possible instead of waiting for the last result of the last wiki before showing the first one (when re-ordering). However see phabricator:T70358 for a similar idea. In that idea there would be an option you can use to show all changes of all wikis together in one list (not per wiki), and show the last edit on top of all wikis. Does that sound useful? –Krinkle 01:20, 8 September 2015 (UTC)
Actually yes. I like the idea @phab. But one note - personally I would like to have option to exclude some wikis, where I'm active, so the list is more usefull. At GUC tool it is OK to have all wikis, because they are separated. And one more note - preserve "(current)" - it is important. --Edgars2007 (talk) 07:33, 8 September 2015 (UTC)

Help developing gadget[edit]

Hi, please see this script, it does not work for auto corrcet mispellings in text editor, but the same script does work here. For example when you will write a urdu word 'اسلاح', it corrects to right word 'اصلاح'. Muhammad Shuaib (talk) 19:22, 8 September 2015 (UTC)

Your global interface editor status has expired[edit]

Hello Krinke. This message is because the temporary global interface editor global right you hold expired on 20th March. If you wish to have the right renewed, please ask at SRGP for a new extension. Thanks for the wonderful job you do for the projects btw. Best regards, —MarcoAurelio 16:26, 24 March 2016 (UTC)

CVN[edit]

Hi, deer CVN staff. I have added a account creation in the countervandalism.net. Could you please have a look? Thanks in advanced.--Stang 10:06, 31 March 2016 (UTC)

CVN IRC Flags[edit]

Hi. I was wondering where can we request operator flags for CVN IRC Channels? the #cvn-wp-fa has been forgotten for a long time and I tend to «bring it to life»! Thanks!--Arian Talk 19:29, 31 March 2016 (UTC)

Page titles dissapearing at es.wikibooks[edit]

Hi Krinkle. At es.wikibooks the page titles suddenly dissapear once the page is loaded. Any idea why is this happening? Best regards, —MarcoAurelio 08:36, 18 April 2016 (UTC)

I'm not Krinkle but that appears to be this edit to a gadget which you load in common.js. --Krenair (talkcontribs) 14:50, 18 April 2016 (UTC)
I've disabled the script, but can't see the titles either. Will wait a bit. I've cleared my caché though. —MarcoAurelio 15:03, 18 April 2016 (UTC)

Yellow box on srwiki[edit]

... is shorter then on the other wikis example. Any idea why? Web browser: Firefox --Milicevic01 (talk) 17:43, 8 May 2016 (UTC)

GUC[edit]

Ciao Timo, I believe there's something wrong when GUC tells me it found # of edits in 1 project. According to crossactivity, that number should be around 214. (Also, stalktoy seems to be searching in fewer wikis but still finds more edits? Best, --Elitre (WMF) (talk) 11:37, 16 May 2016 (UTC)

@Elitre (WMF): Thanks for reporting. This is a known issue (phab:T118662). Unfortunately I can't (yet) prioritise this bug myself, however the code is public and open to patches. –Krinkle 13:23, 16 May 2016 (UTC)
Oh no, thank you for answering. I had no idea I could use Phab for GUC, will keep that in mind. Have a nice week, --Elitre (WMF) (talk) 15:15, 16 May 2016 (UTC)

Batch deletion of old MediaWiki translations[edit]

Hi Krinkle. I've encountered all this very old translations that ain't no longer useful. Is there any maintenance script that can delete all of them, regardless if they're equal to the source code or last editted by MediaWiki default? If not, how can I compile a raw list of those titles to get my bot to delete them? Thank you! —MarcoAurelio 21:25, 3 August 2016 (UTC)

Hi Marco,
There is a maintenance script that can delete messages, but we don't have an automatic way of determining whether a message existed in the past. There are lots of reasons for having MediaWiki namespace pages with titles that do not correspond with currently existing software messages (e.g. custom messages for the sidebar, gadgets, etc.). However if you identified some message keys that can be deleted, leave a comment on this gist and I'll include them in the next run. Be sure to also include a little bit of information about where the message was originally for as I'll need to verify that before deleting. Thanks! --Krinkle (talk) 20:21, 4 August 2016 (UTC)
Hello,
Thanks for your reply. All of those messages I linked to you were created by Barrie~metawiki in 2004/5/6. Now all of them are provided via translatewiki.net with updated texts, GENDER and PLURAL support, etc. I think we can safely delete them all if you ask me. Anyway, I can delete them too using the delete.py script for pywikibot, but I'll have to compile a list of those titles and I'm not good at mySQL...
Best regards, —MarcoAurelio 20:44, 4 August 2016 (UTC)
@Marco: Ah, I see. It's not about unused messages, but about outdated translations that are no longer equal. Those will indeed need to be manually deleted. I've compiled a list for you at https://quarry.wmflabs.org/query/11564. --Krinkle (talk) 20:59, 4 August 2016 (UTC)
Fantastic. I'll get myself flood-flagged (or my bot adminflagged) to do so. I'll also warn RFH just in case somebody thinks I went crazy with too much deletions. Best regards, —MarcoAurelio 21:18, 4 August 2016 (UTC)
Done. All gone! Thank you. —MarcoAurelio 16:40, 6 August 2016 (UTC)

Sp-contributions-footer[edit]

Hi Krinkle,

in MediaWiki:Sp-contributions-footer/de

[//tools.wmflabs.org/xtools/ec/?user={{urlencode:{{{1|$1}}}}}&project=metawiki&uselang=de X!s Bearbeitungszähler]

[…]/xtools/ec/[…] has to be […]/xtools-ec/[…]

[//tools.wmflabs.org/xtools-ec/?user={{urlencode:{{{1|$1}}}}}&project=metawiki&uselang=de X!s Bearbeitungszähler]

Maybe you have rights for mw:MediaWiki:Sp-contributions-footer/de also, same entry, same problem, because imported.

Thanks for support --Plagiat (talk) 22:11, 4 November 2016 (UTC)

Yes check.svg all done by Matiia --Plagiat (talk) 18:08, 5 November 2016 (UTC)

GUC is broken today[edit]

Hi Krinkle

Warning: parse_ini_file(/replica.my.cnf): failed to open stream: No such file or directory in /data/project/guc/labs-tools-guc/settings.php on line 40

Fatal error: Uncaught exception 'Exception' with message 'MySQL login data not found at ' in /data/project/guc/labs-tools-guc/settings.php:42 Stack trace: #0 /data/project/guc/labs-tools-guc/settings.php(14): settings::_getMySQLloginFromFile() #1 /data/project/guc/labs-tools-guc/index.php(27): settings::getSetting('components') #2 {main} thrown in /data/project/guc/labs-tools-guc/settings.php on line 42
https://tools.wmflabs.org/guc/?user=5.228.3.225

Would you mind giving it a poke when you have a chance. Thanks.  — billinghurst sDrewth 20:26, 14 November 2016 (UTC)

See phab:T146154, planned maintenance on the servers. Sjoerd de Bruin (talk) 21:47, 14 November 2016 (UTC)

mw-gadgets-jsUpdater[edit]

Hello, according to my records a repository git://github.com/Krinkle/mw-gadgets-jsUpdater.git used to exist but was deleted. Correct? Did it change location or should I just forget it? Nemo 09:09, 18 December 2016 (UTC)

@Nemo: I'm not sure, however there is https://github.com/Krinkle/mw-gadget-jsUpdater ("gadget", not "gadgets"), which is just an old copy of https://github.com/he7d3r/mw-gadget-jsUpdater for when I submitted a pull request. --Krinkle (talk) 20:19, 18 December 2016 (UTC)

es:MediaWiki:Gadget-reversion.js[edit]

Hi Krinkle. We have a rollback script on eswiki, which since September, adds <bdi></bdi> tags in edit summary when used (example). Do you know why and how can it be fixed? Thank you for your time. Matiia (talk) 21:19, 29 December 2016 (UTC)

'Activate prefix pattern search:' in https://tools.wmflabs.org/guc/[edit]

Hi, I'd like to know what the function is of the option 'Activate prefix pattern search:', together with an example, if possible. Thanks in advance. --Backinstadiums (talk) 17:35, 27 January 2017 (UTC)

@Backinstadiums: It means GUC will look for contributions by any username that starts with that prefix. For example, edits for users who's username starts with "Krinkle" will also include "KrinkleBot". Or edits from all IP addresses that start with 208.80.154.* (mostly Wikimedia Labs). You can also place the percentage symbol to create a so-called "wildcard pattern", for example "208.80.154.%6" where it will find one or more characters in place of the percentage symbol.
» guc prefix "208.80.154.",
» guc prefix "Krinkle",
» guc pattern "208.80.154.%6".
--Krinkle (talk) 05:12, 28 January 2017 (UTC)
Oh, I hadn't noticed that addition to the tool. Lovely, it will be really useful.  — billinghurst sDrewth 09:12, 28 January 2017 (UTC)

Error message in GUC[edit]

Warning: dns_get_record(): A temporary server error occurred. in /data/project/guc/labs-tools-guc/src/IPInfo.php on line 90 while trying to access [2] (which, message aside, seems to load correctly?). HTH, Elitre (WMF) (talk) 08:26, 2 February 2017 (UTC)

@Elitre: Thanks for reporting. Didn't you report this in December as well? I recall looking into this before, and fixing it. Turns out, I did (commit), but forgot to deploy it on Tool Labs. Deployed now! --Krinkle (talk) 20:21, 2 February 2017 (UTC)

Help[edit]

Hello Krinkle ! I from the Georgian Wikipedia. We have a problem. We have created ka:Mediawiki:Common.js/Edit tools data, but it doesn't work. Mediawiki in Bulgarian Wikipedia works, (see: File:Temporary file.png) but in Georgian Wikipedia not. You can help us ?. - OTOGI Messages 15:30, 1 March 2017 (UTC)

RTRC and AAlertBot[edit]

Hi, I just wanted to let you know that the bot AAlertBot pops up in the RTRC feed, even with the Hide Bots box ticked. Can this be fixed? Sorry if you're the wrong person to ask. Thanks in advance. Lovkal (talk) 08:22, 3 April 2017 (UTC)

@Lovkal: Thanks for using RTRC! The "Hide bots" feature is based on the same system as you see on Special:RecentChanges and Special:Watchlist. It relates to whether the edit was marked with the so-called "bot flag", this is similar to the "Minor edit" label most users can apply to their edit, except this one is for robots. When someone creates a bot, they need to first be approved by the community before they are able to use the "Bot flag". Before that, the bots edits will appear as normal edits. For User:AAlertBot, this community did approve the bot flag. See Wikipedia:Bots/Requests for approval/AAlertBot. However it was decided by the bot owner that some edits should not be marked as "bot" so that they can still receive watchlist notifications. See User:AAlertBot#Why doesn't the bot always use the bot flag? for more information.
I didn't know about AAlertBot before you mentioned it here, but from what I understand most of its edits will be hidden when you "Hide bots". However, some of its edits are intentionally not marked as "Bot". This is no different in RTRC, than on Special:RecentChanges or Special:Watchlist. --Krinkle (talk) 20:00, 3 April 2017 (UTC)
Ah, I see. I just thought that it was a new bot that wasn't in some filter or something yet, since a great many of its edits cluttered up my feed earlier, but it looks like it was only temporary. Thanks anyway, Lovkal (talk) 20:03, 3 April 2017 (UTC)

Pausing[edit]

How do you pause in RTRC?--Mr. Guye (talk) 02:56, 10 April 2017 (UTC)

Article Creater[edit]

Hi! I am an active Tamil Wikipedian. We wish to create many articles without the help of bots. So, we need a tool which collects data and construct simple sentences according to the given data. Like, Name:-_____ Birthdate:-_______. Then it should make sentences like. _____ is an astronomer. He was born on _______. Is there are any tools like this? Or is this possible to create any tools like this. If yes, then we can create many articles about people, places, films, rivers, etc. Can you design a tool for us sir? Please reply--Shri (talk) 16:00, 14 April 2017 (UTC)

javascript rewrite tools problematic with RL[edit]

Hi Krinkle. I am hoping that you can help me or at least give me some pointers. I am having loading issues with those scripts that rewrite pages where the rewriting of the display is increasingly not happening and I am having to whack and whack page refresh. An example is MediaWiki:Gadget-SBHandler.js which I used to be able to use without issue on pages like User:COIBot/XWiki/canadaedrugstore.com, to get the rewritten lines in the last section, and in its tricks to blacklist. [This is just typical of tools that I use and clearly for the roles that I do, I load lots of these xwiki, so this is just representative.] As ResourceLoader has developed further, I am presuming that these tools have not kept pace with required developments to rewrite pages. Is there something that I can do to address these issues? And please use simpler terms as I am not a developer, just the occasional tweaker.

Other examples are the copyright/no source/no permission/license scripts at Commons. Maybe it is that I run lots of tabs on my browser, and maybe that is the issue, though my newbie pokes at the console don't inform this simpleton of much. Thanks.  — billinghurst sDrewth 04:18, 30 April 2017 (UTC)

RTRC[edit]

Hello Krinkle. Can you please add an option to show log events? Thankes, 1Or (talk) 05:49, 23 June 2017 (UTC)

fix needed[edit]

I add the code "{{coord|25.9|N|118.3|E|type:adm1st|format=dms|display=title}}" in these two articles: "Fuk-kien" in hakka Wikipedia and "Hok-kiàn-séng" in Minnan Wikipedia, but it cannot display in title [3] [4]. can you fix it? thanks.--112.5.237.102 14:45, 18 August 2017 (UTC)

@112.5.237.102: Thanks, I've fixed it (zh-min-nan, hak). The articles [5] and [6] now look better. --Krinkle (talk) 20:55, 18 August 2017 (UTC)

isabelle de charrière in azb language?[edit]

Hello Timo,

There now an article with your name in AZB language, which I cant read. https://azb.wikipedia.org/wiki/%D8%A7%D8%A4%D8%B2%D9%84:%D9%BE%D8%A7%D9%84%D8%A7%DB%8C%D9%87%D9%94_%D8%AE%D8%B1%D8%A7%D8%A8%DA%A9%D8%A7%D8%B1%DB%8C

It is in the article serie of Isabelle de Charrière, on de right side the other languages are not mentioned. Is this an correct article here? Here name, years, sources and portrait are not mentioned. According to me it looks like an incorrect article..... Tell me more please. Boss-well63 (talk) 17:00, 21 August 2017 (UTC)

@Boss-well63: The above link points to the azb.wikipedia.org version of Special:AbuseFilter. That is not an article, but an administrator control panel. The AZB-language link from your article at https://en.wikipedia.org/wiki/Isabelle_de_Charrière points to a different link, https://azb.wikipedia.org/wiki/%D8%A8%D9%84_%D8%AF%D9%88_%D8%B2%DB%8C%D9%84%D8%A7%D9%86, which is the South Azerbaijani version of that article. I am not sure how or why you ended up on the abuse filter page. This might be a technical problem unrelated to your article. I have reported this as a possible technical issue (T173852). Thanks! --Krinkle (talk) 17:22, 22 August 2017 (UTC)