Wikipedia talk:Twinkle Source: en.wikipedia.org/wiki/Wikipedia_talk:Twinkle

Feature request: Include redirects in XfD listings[edit]

It occurred to me in this recent AfD that Twinkle could include the list of redirects that would be orphaned were the deletion to go forward when it's used for the listing. — Guarapiranga  06:54, 18 July 2022 (UTC)Reply[reply]

Could implement this as a "Notice: More than 10 redirects will be orphaned if this page is deleted." message as the first comment in the AFD. I think this would need consensus though. –Novem Linguae (talk) 07:27, 18 July 2022 (UTC)Reply[reply]
How about just N redirects will be orphaned if this page is deleted (linked to the redirects search)? — Guarapiranga  23:00, 19 July 2022 (UTC)Reply[reply]
Wouldn't this be better for a bot since not all AFDs go through Twinkle? If this is done, it would be better to be uniform across all nominations. MB 05:52, 20 July 2022 (UTC)Reply[reply]
Maybe I missed something obvious, but why do we need to tag/mention the redirects to a page? When an AFD is closed, any admin worth their salt is going to be using the "also delete redirects" option; it doesn't really matter how many redirects are pointing at a page, as they will all be deleted anyway (and semi-automatically, if using something like WP:XFDC). Primefac (talk) 09:31, 21 July 2022 (UTC)Reply[reply]
I think the point is that the incomming redirects could be a consideration in determining if an article should be deleted. MB 16:50, 21 July 2022 (UTC)Reply[reply]
Fair enough, though that seems an odd metric by which to judge an article. Primefac (talk) 19:06, 21 July 2022 (UTC)Reply[reply]
What MB said, Primefac. In this instance, I initially thought "Hmm, do we really need a list of cities proper by population density? Do we have a list of cities proper by population? No, it's simply a redirect to the list of largest cities. But it turns out we have no list of cities by population density! That, in turn, is a redirect to the list of cities proper by population density. Having the redirects listed (or at least linked), would help editors get the complete picture of all the article or list relates to when discussing its removal (as articles and lists can be—and often are!—mistitled). — Guarapiranga  22:40, 28 July 2022 (UTC)Reply[reply]

Custom welcome template disappearing[edit]

I've made a template, {{Mentor welcome}}, hoping to use Twinkles custom welcome template feature. However, when I go to a mentees talk page, I can't find the template in the welcome module. The template also disappears from the custom welcome template page when I refresh. I'm pretty sure the underlying problem exists between my behind and the computer monitor, but I have no idea how to troubleshoot it. Can anyone help? I dream of horses (Contribs) (Talk) 00:15, 28 July 2022 (UTC)Reply[reply]

@I dream of horses, how do you have it listed in Twinkle preferences -> Custom welcome templates to display? Schazjmd (talk) 00:19, 28 July 2022 (UTC)Reply[reply]
@Schazjmd Just "Mentor welcome." I've also tried Template:Mentor welcome," but let me try that again. I dream of horses (Contribs) (Talk) 00:21, 28 July 2022 (UTC)Reply[reply]
Nope, just disappeared on refresh again. I dream of horses (Contribs) (Talk) 00:22, 28 July 2022 (UTC)Reply[reply]
I just added it to mine okay. Keep in mind you have to save both the custom welcome popup AND the twinkle pref page. Schazjmd (talk) 00:23, 28 July 2022 (UTC)Reply[reply]
@Schazjmd Oh, I wasn't saving the twinkle pref page. I knew it was user error. Face-smile.svg Thank you very much! I dream of horses (Contribs) (Talk) 22:03, 28 July 2022 (UTC)Reply[reply]
@I dream of horses, first time I tried to add your template, it didn't work...I made the same error, that's how I figured it out. Face-smile.svg Schazjmd (talk) 22:05, 28 July 2022 (UTC)Reply[reply]

Schazjmd Ah, perhaps having the custom welcome module saving your preferences and the templates at the same time would be a good idea. I dream of horses (Contribs) (Talk) 22:08, 28 July 2022 (UTC)Reply[reply]

I'd support that change! Schazjmd (talk) 22:16, 28 July 2022 (UTC)Reply[reply]

Bug report: malformed headers[edit]

I am suddenly getting extra markup in the headers when posting warnings using Twinkle, which results in malformed headers. Examples: Previous revision of User talk:Mountriver; Diff of User talk:Ninja Diannaa; Diff of User talk:Diannaa. Thank you! — Diannaa (talk) 20:47, 28 July 2022 (UTC)Reply[reply]

I've been getting them too. BilCat (talk) 20:49, 28 July 2022 (UTC)Reply[reply]
Likewise! Zinnober9 (talk) 21:00, 28 July 2022 (UTC)Reply[reply]
Pile on. - FlightTime (open channel) 21:08, 28 July 2022 (UTC)Reply[reply]
Yep, happened to me twice today. Don't know how this happened. Jalen Folf (talk) 23:52, 28 July 2022 (UTC)Reply[reply]
Another instance on my end; the section header markup is duplicated on both sides to yield a section titled "== July 2022 ==". –LaundryPizza03 (d) 00:51, 29 July 2022 (UTC)Reply[reply]
How strange. We didn't deploy today. I'll dig into this a little deeper when I'm back at my computer. –Novem Linguae (talk) 01:57, 29 July 2022 (UTC)Reply[reply]
Me, too. Here is a diff. It's happened to me twice today with the Autobiography warning I post (a lot). Liz Read! Talk! 03:04, 29 July 2022 (UTC)Reply[reply]
This usually happens when someone has edited a template ... – SD0001 (talk) 04:12, 29 July 2022 (UTC)Reply[reply]
Me, too. (diff) Moreover, I have also faced this problem in bnwiki. —MdsShakil (talk) 04:24, 29 July 2022 (UTC)Reply[reply]
A hotfix patch is provided in MediaWiki talk:Gadget-Twinkle.js#Interface-protected edit request on 29 July 2022. Xiplus (talk) 05:48, 29 July 2022 (UTC)Reply[reply]
Thanks for doing that Xiplus. I mentioned it in WP:DISCORD #technical, should be expedited by an intadmin. –Novem Linguae (talk) 06:02, 29 July 2022 (UTC)Reply[reply]

Duplicate warnings[edit]

Bug report in Discord: Does anyone else know why Twinkle seems to be leaving double warnings? I leave a single warning, and it makes 2 edits for some annoying reason Padgriffin


I'm unable to reproduce.

Padgriffin, is this only happening with certain templates? Is this only happening when the user talk page doesn't already exist? Does this only happen when you visit the user talk page after a rollback? What skin are you using? Any other clues that could help me make this reproducible?

Is this happening to anyone else? –Novem Linguae (talk) 21:18, 1 August 2022 (UTC)Reply[reply]

@Novem Linguae My skin is Vector legacy and the issue can be reproduced. It appears to happen when I attempt to exit the page (such as to Recent Changes) while Twinkle is warning the user, which triggers a "save failed" prompt despite actually succeeding, leading to double warnings. My browser is Firefox 103.0.1. Padgriffin Griffin's Nest 04:49, 2 August 2022 (UTC)Reply[reply]
Sounds like you're switching pages before Twinkle is done with its warning algorithm. Is the fix as simple as waiting a few more seconds until you see "done" in the popup?
By reproducible, I mean giving me a list of steps that lets me consistently reproduce the error. –Novem Linguae (talk) 06:25, 2 August 2022 (UTC)Reply[reply]
Steps to reproduce: Open Twinkle warn menu > Submit warning > attempt to exit the page as the "retrieving page" message is on-screen to something that takes a bit longer to load (i.e. recent changes). Twinkle will then output "Save failed, retrying in two seconds", which results in duplicate warnings being made. Padgriffin Griffin's Nest 07:07, 2 August 2022 (UTC)Reply[reply]
Thanks for the steps. Was unable to reproduce, perhaps it's going too fast for me to navigate away at the right spot. When the error happens, are you navigating away from the page before or after you see "Warning complete, reloading talk page in a few seconds"? –Novem Linguae (talk) 07:41, 2 August 2022 (UTC)Reply[reply]
It happens *before* the Warning Complete message. Padgriffin Griffin's Nest 08:47, 2 August 2022 (UTC)Reply[reply]
Have you tried waiting for the "warning complete" message? Navigating away before that I would expect to be buggy, as it would interrupt Twinkle. Unless the "warning complete" message doesn't show for some reason, which would of course be a bug. –Novem Linguae (talk) 08:52, 2 August 2022 (UTC)Reply[reply]
Yep, it's fine if I wait- the weird part is that I've been using Twinkle for years at this point like this (almost always triggering the "save failed" message) yet Twinkle has never done this prior to July 31st. Padgriffin Griffin's Nest 09:04, 2 August 2022 (UTC)Reply[reply]
Hi Xiplus. If you have a minute, please see above. Think this might be related to the API change around July 28th? The Morebits error handling code path started getting triggered for this user when he warns people. –Novem Linguae (talk) 09:13, 2 August 2022 (UTC)Reply[reply]
I can reproduce it [5]. Step: 1. Submit warning > 2. Go to another page (for example clicking the logo). It make the API call be canceled > 3. Press ESC to stop page loading. It make js keep running, so the error handling code runs. Xiplus (talk) 09:34, 2 August 2022 (UTC)Reply[reply]

Inconsistent tab display in Vector 2022[edit]

Twinkle's label is large and bold compared to other tabs in Vector 2022. It looks like the issue is the fact it uses a nav and h3 rather than div and label. Jdlrobson (talk) 16:01, 8 August 2022 (UTC)Reply[reply]

Jdlrobson. I created a pull request. Thanks for reporting. –Novem Linguae (talk) 10:11, 9 August 2022 (UTC)Reply[reply]

Twinkle doesn't load when warning[edit]

I have been noticing problems with my twinkle, whene I enter page to warn (and other twinkle related things) a user my twinkle doesn't show. So I went to twinkle page and saw "is twinkle loading unreliably?" That I should remove this importScript('User:AzaToth/twinkle.js'); but it isn't in my own. Please what should I do?. UricdivineTalkToMe 23:52, 8 August 2022 (UTC)Reply[reply]

@Uricdivine. Hey there. 1) If you are loading Twinkle via importScript('User:AzaToth/twinkle.js'); in your common.js, I recommend removing that, then going to Preferences -> Gadgets, checking the box for Twinkle, then clicking "Save". 2) when I enter page to warn, is this right after a rollback? If so, wait a couple seconds until the "talk" link turns bold. Twinkle takes several seconds to load. Hope that helps. –Novem Linguae (talk) 10:21, 9 August 2022 (UTC)Reply[reply]

@Novem Linguae Thanks for your reply and sorry for my very late own. I tried doing it but am a mobile user so importScript('User:AzaToth/twinkle.js'); isn't in my own. But the problem is still persisting and is getting worst. I have raised thr matter in wikipedia twinkle mobile tage page. UricdivineTalkToMe 18:30, 12 August 2022 (UTC)Reply[reply]

Suggestion for improving block module displayed text[edit]

I do realise this is a minor gripe, but is it possible to match up the "Template options" prompt with the actual template being used? For example, the {{uw-block}} prompt says "You have been blocked for..." ? followed by the prompt box, but the template code gives Your account has been blocked... because your username <reason from prompt box>, meaning I have to frequently rewrite my reason after preview. If this isn't possible, it's not the end of the world, but if there's a semi-easy fix I'd love for it to be implemented. Primefac (talk) 16:38, 14 August 2022 (UTC)Reply[reply]

Good idea. Ticket created. Thanks for suggesting. –Novem Linguae (talk) 21:43, 14 August 2022 (UTC)Reply[reply]

Unexpected italics in user warning templates[edit]

When warning someone, why is the additional message placed in italics, when the warning templates do not have that behavior? I could not find a setting to toggle that behavior, so I have to edit again to remove the italics, which is incredibly annoying. {{u|Bowler the Carmine}} (he/him | talk) 22:36, 14 August 2022 (UTC)Reply[reply]

Would be easy to remove if there is consensus. I don't mind the italics though. Talk page watchers, does anyone else want this removed? –Novem Linguae (talk) 23:19, 14 August 2022 (UTC)Reply[reply]
Sometimes when I add an extra message, I re-edit the talk page to either remove the italic or change it to bold to differentiate it from the templated text. When I read a templated warning on a talk page, I find it really easy to overlook the text in italic at the end; maybe that's just me. Schazjmd (talk) 23:27, 14 August 2022 (UTC)Reply[reply]
See also /Archive 42#Disabling italics. Nardog (talk) 23:41, 14 August 2022 (UTC)Reply[reply]
I'd forgotten all about BilCat's tip, thanks Nardog! Schazjmd (talk) 23:55, 14 August 2022 (UTC)Reply[reply]
Yes, remove the italics. Let users decide for themselves what, if any, additional markup they'd like to include. (For me, personally, I usually want the added text to be bold.)  MANdARAXXAЯAbИAM  00:10, 15 August 2022 (UTC)Reply[reply]
I suppose we could make extra formatting a setting. {{u|Bowler the Carmine}} (he/him | talk) 00:37, 15 August 2022 (UTC)Reply[reply]
Italics in warnings: I'm a keep, two people are a remove, two people were unclear what their preferences were in their comments. Any other opinions? –Novem Linguae (talk) 08:46, 18 August 2022 (UTC)Reply[reply]
This problem would solve itself if we replaced the additional message by an option to edit the wikitext of the entire message. Editors could then add italics, bold or a flashing neon marquee as appropriate. It would also bring other benefits, such as allowing us to tailor text such as "you may have added/deleted/altered text in one or more articles or other pages" into something that looks as if it was written by a human without doing a separate follow-up edit. Certes (talk) 08:57, 18 August 2022 (UTC)Reply[reply]
I am more in favour of resolving #1048/#1517. Let's allow folks to edit the full message – so that they can append text with whatever markup they like, or remove existing stuff from the template. This will remove the need for the additional message field. – SD0001 (talk) 13:58, 18 August 2022 (UTC)Reply[reply]



Hello, am a mobile editor using twinkle. As of recent, I began noticing that twinkle has not been loading on most of the pages I visit. Please help Face-smile.svgUricdivineTalkToMe 18:04, 17 August 2022 (UTC)Reply[reply]

Hi there. Are you using the Minerva (mobile) skin? Twinkle does not work on this skin. You may want to install User:P.T.Đ/TwinkleMobile instead. –Novem Linguae (talk) 21:45, 17 August 2022 (UTC)Reply[reply]
Novem Linguae, this is a screenshot for you understand me better. Please are there any script there that might be making my twinkle have problem?. Cheers and Thanks. Face-smile.svgUricdivineTalkToMe 22:18, 17 August 2022 (UTC)Reply[reply]
Since you are using Twinkle Mobile, you should seek support for it on their talk page at User talk:P.T.Đ/TwinkleMobile. On a page where your Twinkle is not loading, you may also want to take a look at WP:CONSOLEERROR so you can see if your JavaScript console is generating an error, and then report that error at User talk:P.T.Đ/TwinkleMobile. –Novem Linguae (talk) 22:52, 17 August 2022 (UTC)Reply[reply]
Novem Linguae, thanks for replying. First let me go to the talk page you sent me and post my issue then if it is not solved I will go to the wikipedia console error. Cheers Face-smile.svgUricdivineTalkToMe 11:47, 18 August 2022 (UTC)Reply[reply]
It may be helpful to look at your WP:CONSOLEERRORs before visiting that other talk page. WP:CONSOLEERROR is an essay I wrote on how to look for error messages. These error messages help software engineers find and fix bugs. –Novem Linguae (talk) 11:57, 18 August 2022 (UTC)Reply[reply]
Novem Linguae, honestly, the reason I didn't want to try it first is because when I first tapped the link I saw things that only desktop and computer users can do. Unless as a mobile editor can I still report bugs?. Face-smile.svgUricdivineTalkToMe 12:03, 18 August 2022 (UTC)Reply[reply]
Oh I forgot about that part. Never mind! Go ahead and skip WP:CONSOLEERROR. My apologies. –Novem Linguae (talk) 12:10, 18 August 2022 (UTC)Reply[reply]
Novem Linguae, Okay no problem. Thanks for trying I appreciate. Face-smile.svgUricdivineTalkToMe 12:12, 18 August 2022 (UTC)Reply[reply]

sanitized-css now gets prot templates and noincludes[edit]

Yay, sanitized CSS pages now get protection templates. the module change of interest

But why does it come with noinclude? :) That doesn't end up in the transclusion of the sanitized css page.

The edit where I noticed the addition.

Also, I'd like to see the protection template on its own line. Basically, the correction I made at [6]. Izno (talk) 06:49, 18 August 2022 (UTC)Reply[reply]

Actually, for all 3 content models, I don't see a reason for noincluding the contents of the comments that add the protection template. What caused that to be the mode of addition? Izno (talk) 06:52, 18 August 2022 (UTC)Reply[reply]
Ah, it's supposed to trigger off whether noinclude is selected in the GUI, but I didn't touch the option. Is it perhaps the default in the TE protection profile? That would explain that. It might make sense not to make that the default or relevant at all for these content models. --Izno (talk) 06:57, 18 August 2022 (UTC)Reply[reply]
I agree. Good idea. Patch submitted for approval.Novem Linguae (talk) 08:42, 18 August 2022 (UTC)Reply[reply]

Patrolling with Twinkle[edit]

Here is something that seems inconsistent. When reviewing/patrolling redirects, I use the curation tool. If I want to add a Rcat (and its one Twinkle knows about), I click on the Tag/Twinkle tab. I add the Rcat and mark it reviewed at the same time by clicking those two choices, then hit "Submit Query" one time (done in four clicks). If the redirect is auto-created from a page move, it already has a Rcat (R from move). If I go to Twinkle to add a second Rcat, there is no choice to mark it reviewed, so I have to go back to the curation tool and review it there (two steps, five clicks total). Not a big deal, I can still move pretty fast. But still, why is the option to review these redirects missing? It seems to be related to the move. MB 03:33, 28 August 2022 (UTC)Reply[reply]

MB. Thanks, I'll take a look. Got any diffs so I can try to recreate the sequence of moves/tags/reviews on testwiki? –Novem Linguae (talk) 04:33, 28 August 2022 (UTC)Reply[reply]
It seems to happen with any redirect in the queue that is there due to a move. Right now, Tonggeun is the oldest redirect. MB 04:44, 28 August 2022 (UTC)Reply[reply]
@MB and Novem Linguae:I've tried to replicate this but I' still not sure what is meant by the 'move' situation. In any case, IMO it's a feature that should be in the Curation Tool. I've made an entry for it at here. Kudpung กุดผึ้ง (talk) 05:50, 28 August 2022 (UTC)Reply[reply]
@Novem Linguae, do you have enough to go on. The above example won't work anymore because it was patrolled recently. Just find any unreviewed redirect in the queue that was created by a move. The next one is Star Movies India. MB 16:43, 28 August 2022 (UTC)Reply[reply]
Yeap I figured it out. It is this bug. Busy month for me (real life job stuff) so I may not be able to work on it right away. But it's in the queue. Thanks for reporting. –Novem Linguae (talk) 17:04, 28 August 2022 (UTC)Reply[reply]

Unlink enhancement[edit]

When an article is deleted and backlinks are removed with the Unlink module, I presume it uses "What links here" to generate a list of articles linking to the target, and then scans the source code of those articles for [[target]] and removes the brackets.

If the link is in a hatnote, there are no brackets and Twinkle issues this message: Unlinking in page "pagename": Didn't find any backlinks on the page. After the article is deleted, there is a Redlink hatnote and the article gets added to the 8,000+ already in Category:Articles with hatnote templates targeting a nonexistent page for someone to clean up later.

If feasible, could Twinkle scan the source code for the target within a hatnote template (there are a lot of them) and if found, issue a message like "Target" is linked in "pagename" via a hatnote, this page must be manually edited to remove the link. The removal would be difficult to automate because sometimes the entire hatnote is removed and other times it is just modified.

Also note that the target could be both in a bracketed wikilink and a hatnote, so to be fully effective, hatnote scanning would have to be done in all cases, not just if no link is found.

If this is not possible, I guess changing the message to say Unlinking in page "pagename": Didn't find any backlinks on the page, the links are probable in hatnotes and must be removed manually might help. MB 18:48, 5 September 2022 (UTC)Reply[reply]

Good idea, worth investigating. Ticket created.Novem Linguae (talk) 20:11, 5 September 2022 (UTC)Reply[reply]

Dropping a CSD tag[edit]

Based on this discussion, how easy would it be to drop the [[WP:CSD#G6|G6]]: code from Twinkle summaries when deleting via "XFD" option (in the dropdown) or when {{db-xfd}} is used? Primefac (talk)

Easy to code, but not great for maintainability. Coding exceptions to things can be a bit of a code smell as it adds complexity to an otherwise straightforward system. The relevant code is here. Let me know if you decide to move forward and I can create a GitHub issue. –Novem Linguae (talk) 10:32, 7 September 2022 (UTC)Reply[reply]