Request

Please copy-and-paste the contents of MediaWiki talk:Gadget-Twinkle.js/temp to this gadget file, with the edit summary

manual update to commit 3dd5b41be11159fadfa07b15a2cb404f4db608dc

The usual maintainers of this gadget are unavailable at the moment. Thanks, — This, that, and the other (talk) 01:06, 10 January 2012 (UTC)

checkY Done. Wasn't sure if I there was anything special in the temp page so I really just copied the content. Cheers, Amalthea 09:13, 10 January 2012 (UTC)
I thought you were still on break... Thanks very much for doing this. — This, that, and the other (talk) 10:29, 10 January 2012 (UTC)
Kinda back since Sunday … but I may disappear again next weekend. :\ Amalthea 11:09, 10 January 2012 (UTC)

Documentation for gadget authors

We're trying to start a library for gadget authors to use. Please check it out and post any questions or comments there. -- MarkAHershberger(talk) 01:06, 9 March 2012 (UTC)

Edit Request

Replace if (initialContrib === "Cyberbot I" && params.normalizeds==="f2") return;

with

if (initialContrib === "Cyberbot I" && params.normalizeds==="f2") { Morebits.status.warn("Notifying initial contributor: contributor is a bot; aborting!"); return; }

This is just a minor change and won't affect the function or the operation of Twinkle.—cyberpower ChatLimited Access(Now using HTML5) 17:13, 20 September 2012 (UTC)

I don't think that's right. Was the intention to emit a warning if the Cyberbot I talk page notification was skipped, like you suggested on my talk page? Amalthea 18:25, 20 September 2012 (UTC)
Yes. I fixed the code sorry. I was in a hurry and kind of messed up.—cyberpower ChatLimited Access(Now using HTML5) 12:44, 21 September 2012 (UTC)
Hmm, alright, changed in repository and synched again.
By the way, your signature has two odd linebreaks, could you fix that please? Amalthea 15:21, 21 September 2012 (UTC)
I don't know what you are talking about. It looks fine on everything I use. Perhaps it's your browser.—cyberpower ChatLimited Access(Now using HTML5) 15:40, 21 September 2012 (UTC)
In the page source, I meant. Amalthea 17:47, 21 September 2012 (UTC)
That is strange. I'll look into it.—cyberpower ChatOnline(Now using HTML5) 19:29, 21 September 2012 (UTC)
cyberpower: please read WP:CUSTOMSIG imo. your signature is way too large. AzaToth 18:33, 21 September 2012 (UTC)
No it's not. It's under 255. I counted.—cyberpower ChatOnline(Now using HTML5) 19:29, 21 September 2012 (UTC)

Add {{redir}} to hatnote detection

{{editprotected}}

(editprotected because this needs to be made in git, not just to the local copy here)

Currently TW doesn't recognised {{redir}} as a hatnote. This is a common shortcut for {{redirect}}. Could the hatnote regex be massaged to detect it as well? Cheers. Chris Cunningham (user:thumperward) (talk) 09:49, 18 October 2012 (UTC)

Possible brief disruption of Twinkle, postmortem

This was supposed to be at testwiki:MediaWiki:Gadget-Twinkle.js but obviously I couldn't tell the two wikis apart. Won't happen again, I'm making it work without ResourceLoader and in my userspace. I don't think the script broke for anyone, but if it did, it's fixed now, and I sincerely apologize. MusikAnimal talk 06:04, 26 February 2015 (UTC)

Protected edit request on 28 September 2015

Make this identify the target section in Wikipedia:Redirects for discussion/Log/Year Month Day in case of an RfD for a redirect to a section. GeoffreyT2000 (talk) 14:59, 28 September 2015 (UTC)

Suggest you discuss this at Wikipedia talk:Twinkle. Admins who patrol CAT:EP are not necessarily familiar with Twinkle or Javascript. Regards — Martin (MSGJ · talk) 15:09, 28 September 2015 (UTC)

If I wanted to install Twinkle on my own wiki.................

...........would I use this? Krett12 (talk) 03:17, 23 October 2015 (UTC)

Protected edit request on 5 December 2015

At the comment in the top, remove "newbies" as there is a JavaScript alert that prevents them from using the tool. Krett12 (talk) 02:05, 5 December 2015 (UTC)

One of the most pointless requests I'be dealt with recently.  Done — Martin (MSGJ · talk) 14:26, 7 December 2015 (UTC)
@MSGJ: Just FYI, any changes here need to first be made to the git repo or else they will get overriden. This page should probably redirect to WT:TW MusikAnimal talk 16:56, 7 December 2015 (UTC)

Localization of month names in notifs

 – Posted as an edit request, not actually one — Andy W. (talk ·ctb) 20:13, 1 September 2016 (UTC)

Protected edit request on 16 April 2018

Instead of directly implementing this edit request, please merge this pull request: https://github.com/azatoth/twinkle/pull/417

https://en.wikipedia.org/w/index.php?title=User:ToBeFree/Gadget-friendlywelcome-sandbox.js&diff=836742542&oldid=836742500 ~ ToBeFree (talk) 16:07, 16 April 2018 (UTC)

(Explanation: Remove now-unnecessary "static" parameter, add new welcome template that should have been there from the beginning :) ) ~ ToBeFree (talk) 16:14, 16 April 2018 (UTC)

Not sure what is being requested here. If it is to change Twinkle's code I have no access to do that. Please clarify. — Martin (MSGJ · talk) 14:52, 18 April 2018 (UTC)
No problem, it has been solved by a developer. :) ~ ToBeFree (talk) 13:46, 27 April 2018 (UTC)

Issue

@MusikAnimal: Hey! there is an issue with the module here. It uses the same code but i translated it and now there his an error and the submit or preview buttons don't return anything or execute any actions. Can someone tell me what's the issue? same thing with the speedy module as well.--▸ ‎épine talk 20:44, 2 September 2018 (UTC)

I fixed the welcoming module but the sd module is a bit of an issue :( can someone please lend a hand?--▸ ‎épine talk 23:21, 2 September 2018 (UTC)
Anyone??--▸ ‎épine talk 14:47, 5 September 2018 (UTC)
NVM, fixed it.--▸ ‎épine talk 23:17, 5 September 2018 (UTC)

Interface-protected edit request on 16 May 2020

In the uw-vblock module, can you change "You have been blocked from editing for persistent vandalism" to "You have been blocked from editing to prevent further vandalism"? 107.77.189.17 (talk) 18:35, 16 May 2020 (UTC)

Comment: wording in the template has been changed per discussion. —⁠andrybak (talk) 20:07, 16 May 2020 (UTC)
I've made the change to Twinkle's module, and pushed it live. For future reference, requests like this should probably be made at WT:TW. ~ Amory (utc) 10:05, 17 May 2020 (UTC)

Interface-protected edit request on 20 July 2020

The ">" link in the "Orphaned non-free revisions" entry (third in the "License and sourcing problem tags" section) is broken. It links to Subst:orfurrev. I assume it should be Template:orfurrev (or even more sanely the actual Template:Orphaned non-free revisions) rather than the bogus Subst: namepace. Is there a deeper bug related to templates that need to be substituted? DMacks (talk) 17:00, 20 July 2020 (UTC) DMacks (talk) 17:00, 20 July 2020 (UTC)

@DMacks: this suggests that the usage is about requiring a substitution of that template instead of a call to it - can you point to the steps to follow that actually result in an output problem when this gadget is used? — xaosflux Talk 11:06, 23 July 2020 (UTC)
Also, ping to @Amorymeltzer: who has been maintaining this (possibly against a remote code base source). — xaosflux Talk 11:08, 23 July 2020 (UTC)
@DMacks: Yeah, I know it; long standing point of convenience, but should've been dealt with ages ago. There's another too: Now Commons. I opened a PR to deal with it, will merge this evening when I'm sure I didn't break anything. ~ Amory (utc) 12:35, 23 July 2020 (UTC)
Just noting: On hold while I try and track down other issues with the tagging module. ~ Amory (utc) —Preceding undated comment added 19:26, 25 July 2020 (UTC)

now.monthHeader()

How to convert to local language Datetime? Alphama (talk) 18:17, 10 October 2020 (UTC)

Just seeing this now Alphama, the language for those functions is stored in an object in Morebits, you can submit your needs easily. ~ Amory (utc) 11:42, 7 December 2020 (UTC)

Twinkle Errors

Our error logging has picked up the following errors. Volume is relatively low, but still significant. hope this is helpful! Jdlrobson (talk) 17:47, 28 February 2021 (UTC)

TypeError: Cannot read property 'parentNode' of null URL: https://en.wikipedia.org/w/index.php?title=Dire_wolf (Monobook)

TypeError: Cannot read property 'parentNode' of null
    at Object.oldid (URL1:473:362)
    at twinklefluff (URL1:466:338)
    at Object.Twinkle.addInitCallback (URL1:10:166)
    at URL1:10:231
    at Array.forEach (<anonymous>)
    at HTMLDocument.Twinkle.load (URL1:10:198)
    at mightThrow (URL2:49:149)
    at process (URL2:49:808)

URL1: https://en.wikipedia.org/w/load.php?lang=en&modules=ext.gadget.Twinkle&skin=vector&version=vdkdl
URL2: https://en.wikipedia.org/w/load.php?lang=en&modules=jquery%7Cjquery.ui&skin=vector&version=11ak3

Uncaught TypeError: Morebits.wiki.api.setApiUserAgent is not a function URL: Talk:Chevron_Corporation (vector)

TypeError: Morebits.wiki.api.setApiUserAgent is not a function
    at HTMLDocument.Twinkle.load (URL1:9:899)
    at mightThrow (URL2:49:149)
    at process (URL2:49:808)

URL1: https://en.wikipedia.org/w/load.php?lang=en&modules=ext.gadget.Twinkle&skin=vector&version=vdkdl
URL2: https://en.wikipedia.org/w/load.php?lang=en&modules=jquery%7Cjquery.ui&skin=vector&version=11ak3

Uncaught TypeError: Cannot read property 'normal' of undefined Seen on Multinational_corporation (Vector)

TypeError: Cannot read property 'normal' of undefined
    at friendlywelcome (URL1:150:801)
    at Object.Twinkle.addInitCallback (URL1:10:166)
    at URL1:10:231
    at Array.forEach (<anonymous>)
    at HTMLDocument.Twinkle.load (URL1:10:198)
    at mightThrow (URL2:49:149)
    at process (URL2:49:808)
tags
	input-kafka-clienterror-codfw, kafka, es, es, throttle-exempt, normalized_message_untrimmed

URL1: https://en.wikipedia.org/w/load.php?lang=en&modules=ext.gadget.Twinkle&skin=vector&version=vdkdl
URL2: https://en.wikipedia.org/w/load.php?lang=en&modules=jquery%7Cjquery.ui&skin=vector&version=11ak3

@Jdlrobson: Thanks for the notes, is there any other info available? The first one implies that mw-revision-info doesn't exist, so either an issue in loading times or some errant user script. The others, I dunno, seem to suggest there's likewise something else interfering with the loading or the packages. Is there a count or timing or anything else I could look at? ~ Amory (utc) 20:26, 1 March 2021 (UTC)

Hotfix

Hello. I'm a Twinkle maintainer. We have a pretty big bug in today's deploy that is breaking new TFD, FFD, etc entries. Requesting that we hotfix the following:

MediaWiki:Gadget-twinklexfd.js

Change line 809 to if (params.delsortCats && params.delsortCats.length) { // Only for AFDsNovem Linguae (talk) 19:31, 13 April 2022 (UTC)

 Done Izno (talk) 19:35, 13 April 2022 (UTC)

New AFD getting stuck in Bengali projects!

Hi there, I am an IA from Bengali Wikibooks and Wiktionary. New AFD (from XFD menu) is not working in Bengali Wikipedia, Wikibooks and Wiktionary! It’s getting stuck in Adding deletion tag to article: Retrieving page... phase. But MFD, CFD and other XFD's are working properly! I can't figure out exactly where the problem is. Aishik Rehman (talk) 15:04, 29 June 2022 (UTC)

mw.config.get('pageTriageNamespaces') is null in b:bn:মিডিয়াউইকি:Gadget-morebits.js Line 3856. There is no PageTriage extensions on bn-wikis. So I suggest you to replace this.triage function with content "this.patrol()". Xiplus (talk) 15:44, 29 June 2022 (UTC)
this.triage = function() {
    this.patrol();
};
--Xiplus (talk) 15:47, 29 June 2022 (UTC)
Thank you so much @Xiplus! Now it is working properly! -- Aishik Rehman (talk) 16:55, 29 June 2022 (UTC)

Interface-protected edit request on 29 July 2022

Replace now.monthHeader() with now.monthHeader(0) in Line 1817. Hot fix for Wikipedia talk:Twinkle#Bug report: malformed headers. Xiplus (talk) 05:47, 29 July 2022 (UTC)

Test edit with this patch: Special:Diff/1101076167. Xiplus (talk) 05:50, 29 July 2022 (UTC)
+1. I endorse this. –Novem Linguae (talk) 05:57, 29 July 2022 (UTC)
 Done Izno (talk) 06:13, 29 July 2022 (UTC)
@Matma Rex This hotfix was necessitated due to an unannounced breaking change in the API - https://gerrit.wikimedia.org/r/c/mediawiki/core/+/814003/4/includes/EditPage.php#b1151. The API has stopped stripping == == in sectiontitle param. I wonder if that was by accident? – SD0001 (talk) 05:15, 30 July 2022 (UTC)
Oops, sorry about that… I think I didn't expect any API users to rely on that. The feature was undocumented and seemingly only meant for the normal edit interface, so it seemed wrong to let it affect parameters provided to the API. I've proposed a patch to undo that: https://gerrit.wikimedia.org/r/c/mediawiki/core/+/818534 Matma Rex talk 14:05, 30 July 2022 (UTC)

Hotfix for vector-2022 Twinkle dropdown menu appearance

Please make these changes to the file MediaWiki:Gadget-Twinkle.js. This will fix Wikipedia:Village pump (technical)#Dropdown menu bug. Copying and replacing using this raw file link may be easiest. Thanks. –Novem Linguae (talk) 11:05, 6 July 2023 (UTC)

Tested and confirmed working. The bug is causing all pages to be horribly broken for for all Twinkle users, so this is an urgent request. – SD0001 (talk) 12:05, 6 July 2023 (UTC)
Yeah, this is really bad. Some pages can become borderline uneditable. Agree that it's urgent. Peter Isotalo 12:20, 6 July 2023 (UTC)
 Done. ~Oshwah~(talk) (contribs) 12:22, 6 July 2023 (UTC)
@SD0001, @Novem Linguae: Is it possible to implement the fixes to meta:User:Xiplus/TwinkleGlobal also? CX Zoom (let's talk • {CX}) 13:12, 6 July 2023 (UTC)
@CX Zoom Seems like this was already done by Xiplus , but you would have to check if it is working. Nux (talk) 14:15, 6 July 2023 (UTC)
Yup, it works! Many thanks to them. CX Zoom (let's talk • {CX}) 14:34, 6 July 2023 (UTC)

Interface-protected edit request on 28 July 2024

Remove the word "by" in this sentence, as it's not meant to be there: "If the user is already blocked, this will be overridden by in favor of defaulting to the current block type". Graham87 (talk) 03:03, 28 July 2024 (UTC)

Twinkle does patches via the third party website github. Ill make the modification there then get it in the next deploy. –Novem Linguae (talk) 03:12, 28 July 2024 (UTC)
https://github.com/wikimedia-gadgets/twinkle/pull/1986Novem Linguae (talk) 22:47, 28 July 2024 (UTC)

Interface-protected edit request on 17 September 2024

Replace mw-message-box mw-message-box-success with mw-message-box cdx-message mw-message-box-success cdx-message--success per phab:T374499. --Ahecht (TALK
PAGE
)
15:02, 17 September 2024 (UTC)

 Not done for now: The reason I pinged the relevant userrather than just making the change myself is because Imported from github . All changes should be made in the repository, otherwise they will be lost. Izno (talk) 16:01, 17 September 2024 (UTC)
Thanks for providing the exact code that needs to be changed. I'll convert this into a GitHub patch and test it out. Although I think we need to remove mw-message-box completely, correct? –Novem Linguae (talk) 19:21, 17 September 2024 (UTC)
cdx-message cdx-message--success doesn't do any styling in my sandbox. Perhaps becuase Codex isn't loaded? Diff. Will probably have to hard code the styles. –Novem Linguae (talk) 04:21, 19 September 2024 (UTC)
Patch written.Novem Linguae (talk) 04:56, 19 September 2024 (UTC)