Cannabis Ruderalis

Archives of older conversations can be found here

Counter updating[edit]

Aidan - you provided this advice (with thanks), which I have done using the null edit and cache clearing several times, but the counter remains stuck.

What about a script or technical look for a bug? I have had the counter present on my page for many years with no need for clearing cache or null editing. I suspect a new bug which began when I updated my editor status to MEIII on 16 Apr. Irregular counter updating since. Thanks again. Zefr (talk) 00:42, 14 May 2023 (UTC)[reply]

@Zefr: I've just gone ahead and given your user page a null edit right now, and the counter updated from 26 to 27 days, so a null edit should still continue to fix the counter fine. As for why it stopped updating automatically, I'm not entirely sure. You'll have to ask someone more knowledgable than me on that. Aidan9382 (talk) 06:17, 14 May 2023 (UTC)[reply]

Thanks![edit]

Thanks so much for catching this [1]! I must have been far too tired to have been editing last night; when I added the archive I remember getting distracted by a Banner issue and I must've just forgotten to go back. Great work--Jerome Frank Disciple 12:58, 15 May 2023 (UTC)[reply]

All good. Lowercase sigmabot III will refuse to archive a page if the target location given isn't a subpage (bar some exceptions), so there's no major issue over getting it wrong. The worst thing that'll happen is the page gets put into this tracking category and either me or other me will fix it. Aidan9382 (talk) 13:56, 15 May 2023 (UTC)[reply]
Oh good to know! I'll try to keep an eye on that category, too, and maybe someday pay it forward.--Jerome Frank Disciple 13:59, 15 May 2023 (UTC)[reply]
I keep forgetting the name of the category, having to return here to find it, and I'm not very practiced at keeping track of categories in general ... but I just wanted to say that I did manage to pay it forward ... uh, once. Haha sorry to be of no help at all, but thanks again!--Jerome Frank Disciple 15:16, 16 May 2023 (UTC)[reply]
Haha, no problem, and thanks. I've got an entire page dedicated to listing categories I keep track of (or used to) among other things, since the only other choice is watchlisting the category and then turning on Category changes in the watchlist, and if I did that, I think my watchlist might just explode.
Just a quick side comment - the fix you linked was mostly fine, although one thing you missed was that the previous page had an unmoved subpage, which I've fixed myself here. I wouldn't lose sleep over that mistake though - you'd be far from the first person (or even the first thousand people) to do it (with the page you fixed in particular having an unfinished move before not once but twice). Aidan9382 (talk) 15:42, 16 May 2023 (UTC)[reply]
That's a smart move! And shoot! Well, thanks again for cleaning up my mess: always great to start a section being like "from here on out, I won't create any more work for you—TAKE THAT TO THE BANK", and then fail within 24 hours. I appreciate the patience.
Also, can I ask how you checked for the other archives? I could have sworn that I had thought to check for pre-existing archives after I updated the template. From memory, I went back in the page history to see if an archive was in the pre-updated version of the page (that is, the version of the page that featured the "Talk:2022–2023 abortion protests/Archive %(counter)d" language in the archive template), and I didn't see anything.
It's at least possible I'm misremembering—sometimes I set out to do something, get distracted by another tab, and then forget I never did what I set out to do—so if your reaction is "that would have worked", don't feel bad at all about telling me "you never did that you dummy"--Jerome Frank Disciple 15:55, 16 May 2023 (UTC)[reply]
Once again, it's all good. It was quite the minor mess in comparison to some other pages I've seen.
Here's the rough rundown of how I check for other archives. I check the history, find the title the page was moved from, and then check its page information (this page). If "Number of subpages of this page" lists any Redirect or Non-redirect subpages, you can click the link it shows, which takes you here and gives you a list of what may or may not need moving. You can alternatively look in the page history for any archives by bots, which should link the page content was archived to (useful for when the history is all jumbled and the move was a while ago).
I'm a slight bit confused by what you described you did. Do you mean you checked the page originally listed in the archive parameter for old archives? If so, that should've worked, so I'm not entirely sure what you might've done there. If you instead mean you went into the history and viewed an older version of the page, that won't work. The archives listing is normally generated by either {{Talk header}} or {{Archives}}, and both of those will check for subpages under the current title of the page, so it would have actually been looking for archives under the title Talk:2022–2023 United States abortion protests instead of the old title, which of course had none since the archive wasn't moved, and therefore it didn't list them. Aidan9382 (talk) 17:04, 16 May 2023 (UTC)[reply]
Thanks so much! Yeah, the second thing is what I did ... I (wrongly) figured that the {{talk header}} template would check for archives under the root as defined in its "archive" parameter. Thank you for the tutorial! --Jerome Frank Disciple 17:09, 16 May 2023 (UTC)[reply]
Yeah, {{User:MiszaBot/config}} doesn't actually list any archives itself, it just encourages User:Lowercase sigmabot III to automatically archive the page, so {{Talk header}}'s only real choice without the archive parameter is to check under the current page (which is the standard approach). No problem for the tutorial - if there's a slight bit you're still confused on (or you're just interested on reading up), Help:Archiving a talk page lists about everything there is to know on archiving talk pages. Aidan9382 (talk) 17:16, 16 May 2023 (UTC)[reply]

Nomination for deletion of Template:Infobox file display[edit]

Template:Infobox file display has been nominated for deletion. You are invited to comment on the discussion at the entry on the Templates for discussion page. Izno (talk) 08:19, 1 June 2023 (UTC)[reply]

Seen, comment left. Aidan9382 (talk) 08:48, 1 June 2023 (UTC)[reply]

McLaren Automotive page[edit]

Hi! I am trying to update the McLaren Automotive page with new information regarding the management structure of the company. Michael Leiters was appointed July 2022 as Chief Executive Officer for McLaren Automotive (citation: McLaren Newsroom). As one of the most recent Wikignomes to edit the page, I was wondering if you could assist? 86.188.218.211 (talk) 14:00, 2 June 2023 (UTC)[reply]

Thanks for the notice, but this isn't an area I'd likely to be able to help on. Aidan9382 (talk) 15:50, 2 June 2023 (UTC)[reply]

Default sort[edit]

I've just re-read your edit summary here. Do you mean it shouldn't be in the output? I assumed that was a mistake, and it does seem to be working when included in the output. Regards — Martin (MSGJ · talk) 14:23, 6 June 2023 (UTC)[reply]

Let me try explain
  • If you attempt to add the default sort by literally appending the text {{DEFAULTSORT:XYZ}} to the output of the function, it will display as raw text when it reaches the page.
  • If you preprocess the {{DEFAULTSORT:XYZ}} text using frame:preprocess (or anything alike), the sort key will be applied to the page the function is called on, and the magic word produces no output. This means that if you append it to the output, you are basically appending an empty string. It doesn't really matter if you append the preprocessed version to the output as long as it is preprocessed. Or at least, that's how it went in my tests using this dummy function.
Does that explain it a bit better? I'm not entirely sure just what you're confused over, so I've tried to explain everything I can think of. Aidan9382 (talk) 15:32, 6 June 2023 (UTC)[reply]
Yep, that's clear, thanks — Martin (MSGJ · talk) 15:40, 6 June 2023 (UTC)[reply]
Do you think the {{#assessment:}} parser function could be used with the same frame:preprocess method? — Martin (MSGJ · talk) 12:49, 11 June 2023 (UTC)[reply]
#assessment: is a new one to me. I've just given it a shot on my sandbox, and the same module magic word logic (Must be processed, but returning it isn't required since it evaluates to an empty string) applies as visible here. Aidan9382 (talk) 13:34, 11 June 2023 (UTC)[reply]
Thanks, I'll try it again because it wasn't working on my template sandbox — Martin (MSGJ · talk) 18:20, 11 June 2023 (UTC)[reply]
Alright. If you still can't get it to work, I'd be willing to give it a look. Aidan9382 (talk) 18:31, 11 June 2023 (UTC)[reply]
Seems to be working, thanks — Martin (MSGJ · talk) 08:02, 12 June 2023 (UTC)[reply]

Thanks for your fix. That code was Izno's not mine! But admittedly I never tested it. — Martin (MSGJ · talk) 20:12, 20 June 2023 (UTC)[reply]

All good. I only picked it up cause I was testing a sandbox module of mine (Module:Sandbox/Aidan9382/CodeAnalysis) and it picked up that the argument was defined but never used. Everything else seems fine at an initial glance. Aidan9382 (talk) 20:20, 20 June 2023 (UTC)[reply]

Re-set my talk page to archive the discussions every 60 days (rather than every 7)[edit]

Hello, I re-set my user talk page to archive discussions every 60 days, rather than every 7 (the previous setting)--it was cleaning out the discussions too often. So, I went into the edit and changed |algo = old(7d) to |algo = old(60d). I hope I did it correctly. If not could someone help me do it correctly? GloryRoad66 (talk) 03:28, 22 June 2023 (UTC)[reply]

Your edit is fine and posts should start being archived after 60 days of inactivity. Aidan9382 (talk) 06:09, 22 June 2023 (UTC)[reply]
Thanks. GloryRoad66 (talk) 22:03, 22 June 2023 (UTC)[reply]

Pattern[edit]

Hi Aidan! From the string |note 1={{{needs-photo|{{{needs-image|{{{image-needed|{{{photo-needed|{{{image-requested|}}}}}}}}}}}}}}}|NOTE_1_TEXT = I would like to extract needs-photo, needs-image, image-needed, photo-needed and image-requested. Can I use string.gmatch for this? I would be very happy if you could help me with the pattern, thanks — Martin (MSGJ · talk) 20:27, 28 July 2023 (UTC)[reply]

@MSGJ: So you want to get the potential parameters that are there I assume? If we are guaranteed to be in the format you have above (I doubt there's anything too absurd), doing something like for param in string.gmatch(input, "{{{([^|}]+)") do [...] end should work fine as long as the input string is as controlled as the example you give. This would also pick up both {{{param-name|}}} and {{{param-name}}}, and won't pick up any default of the param, though I assume that's not needed for whatever you're doing. Aidan9382 (talk) 20:55, 28 July 2023 (UTC)[reply]
No there are no defaults, so that would be okay. I am currently using parameter .. '%s*=%s*{%{%{([%a%d_%s-]*)' where parameter = 'note 1', etc. Perhaps I first need to get the wikicode relating to note 1 up until the first } and then use the gmatch with your pattern? — Martin (MSGJ · talk) 21:04, 28 July 2023 (UTC)[reply]
My example regex will attempt to find any occurance of {{{ and then match all characters after it that aren't | or }, so as long as it includes the text from just the wanted parameter, it shouldn't really matter what the surrounding wikitext is as it shouldn't pick up anything wrong. You could force it to stop at the first } to be safe, but assuming your input text stops at |NOTE_1_TEXT = already, it should be fine. You can always just chuck the gsub in a sandbox or the debug console and give it a swing to see how it behaves. Apologies if I'm not fully understanding the question here, since I am a little confused on what you're asking. Aidan9382 (talk) 21:12, 28 July 2023 (UTC)[reply]
That will be me not explaining it well. No the input did not stop there, I shortened it to illustrate. Anyway, with your pointers I've managed to get it working in Module:WikiProject banner/sandbox — Martin (MSGJ · talk) 21:37, 28 July 2023 (UTC)[reply]

Thanks[edit]

on this. I'd tried to fix it when Twinkle busted the format but didn't quite get there. TY! Star Mississippi 15:38, 9 October 2023 (UTC)[reply]

No problem, it happens every so often so I'm used to fixing it. Just make sure that theres a newline after the </noinclude>, otherwise when mediawiki parses that line it doesn't think the content after it is at the start of the line and therefore doesn't consider it a proper header. Maybe worth submitting a bug report for Twinkle if that happens often. Aidan9382 (talk) 15:49, 9 October 2023 (UTC)[reply]
Wikipedia_talk:Twinkle#Protection_template_breaking_AfD exists as thankfully one day I was protecting multiple and was able to reproduce the error.
Thanks for the how to fix. Will keep that info for the next time. Star Mississippi 16:01, 9 October 2023 (UTC)[reply]

ArbCom 2023 Elections voter message[edit]

Hello! Voting in the 2023 Arbitration Committee elections is now open until 23:59 (UTC) on Monday, 11 December 2023. All eligible users are allowed to vote. Users with alternate accounts may only vote once.

The Arbitration Committee is the panel of editors responsible for conducting the Wikipedia arbitration process. It has the authority to impose binding solutions to disputes between editors, primarily for serious conduct disputes the community has been unable to resolve. This includes the authority to impose site bans, topic bans, editing restrictions, and other measures needed to maintain our editing environment. The arbitration policy describes the Committee's roles and responsibilities in greater detail.

If you wish to participate in the 2023 election, please review the candidates and submit your choices on the voting page. If you no longer wish to receive these messages, you may add {{NoACEMM}} to your user talk page. MediaWiki message delivery (talk) 00:53, 28 November 2023 (UTC)[reply]

Thanks[edit]

Thanks for fixing my insanely misplaced Oldprod!-My, oh my! (Mushy Yank) 21:12, 4 December 2023 (UTC)[reply]

No problem, this stuff happens from time to time. Aidan9382 (talk) 21:14, 4 December 2023 (UTC)[reply]

Invitation[edit]

Hello Aidan9382, we need experienced volunteers.
  • New Page Patrol is currently struggling to keep up with the influx of new articles. We could use a few extra hands on deck if you think you can help.
  • Reviewing/patrolling a page doesn't take much time but it requires a good understanding of Wikipedia policies and guidelines; Wikipedia needs experienced users to perform this task and there are precious few with the appropriate skills. Even a couple reviews a day can make a huge difference.
  • Kindly read the tutorial before making your decision (if it looks daunting, don't worry, it basically boils down to checking CSD, notability, and title). If this looks like something that you can do, please consider joining us.
  • If you would like to join the project and help out, please see the granting conditions. You can apply for the user-right HERE.
  • If you have questions, please feel free to drop a message at the reviewer's discussion board.
  • Cheers, and hope to see you around.

Sent by NPP Coordination using MediaWiki message delivery (talk) 01:27, 18 December 2023 (UTC)[reply]

Module goodness[edit]

Wow, I never would have expected someone to fix that within a day of me pointing out it was busted. That's really brilliant work -- I owe you one! jp×g🗯️ 14:22, 24 December 2023 (UTC)[reply]

No problem. I had done a significant overhaul to the module a while back, so I was subscribed by email to the talk page to make sure nothing immediately crumbled without someone to fix it, which was the main reason I caught it so early (I should really go clear up my watchlist so I don't miss stuff there). Aidan9382 (talk) 14:39, 24 December 2023 (UTC)[reply]

Template:CFB Team Depth Chart[edit]

Hi Aidan9382, I was wondering if you could help. A while ago I came across an issue with Template:CFB Team Depth Chart were scripts have been converting the hyphen used in one of its parameters (|DScheme=) to an endash, which causes the template to break as it's only expecting a hyphen. Is it possible to change the template so it accepts either a hyphen or an endash? My knowledge of such technical matters is still rather limited. -- LCU ActivelyDisinterested «@» °∆t° 23:54, 26 December 2023 (UTC)[reply]

Sure. I've gone ahead and added a string replace to every occurance of DScheme so it sees an endash as a hyphen, which should fix any currently broken cases. Aidan9382 (talk) 07:08, 27 December 2023 (UTC)[reply]
Thanks that's amazing, one less thing I'll have to keep an eye on. -- LCU ActivelyDisinterested «@» °∆t° 11:57, 27 December 2023 (UTC)[reply]

Archive Bot[edit]

Hello! I saw you changed some settings on the archive bot i had put in place on Talk:Brett Cooper (commentator) (Here). For reference and for the future I was hoping when you have time, if you could explain what I should do differently on the next occasion I impose a bot as such on another talk page. Or should i just refer to the exact edit you made? Thanks! Elvisisalive95 (talk) 14:07, 31 January 2024 (UTC)[reply]

Sure. The only reason I had come across the page in the first place was because the original |archive= target was incorrect (the namespace was wrong and there was a space after the colon), which lands the page in a hidden tracking category. The reason I changed the parameters around a lot is because normally, in article talkspace, archives are done as incrementing "/Archive N" archives instead of one constant static archive for the sake of page size. For a version which does this, you can see the example given in the documentation at User:Lowercase sigmabot III/Archive HowTo § Example 2: Incremental archives. You can also scroll down a bit from there for a general explanation of what each parameter does. Hopefully that answers your question well enough. Aidan9382 (talk) 17:40, 31 January 2024 (UTC)[reply]
Thank you for taking the time to explain this to me, it makes sense & I appreciate the help! Here’s a freshly baked cookie!
Elvisisalive95 (talk) 21:32, 31 January 2024 (UTC)[reply]

Thank you[edit]

Thanks for fixing my (rather ridiculous) error when I installed the archiver. Joyous! Noise! 17:58, 4 March 2024 (UTC)[reply]

No problem, it happens quite often and it isn't the biggest issue (the bot won't archive if it isn't a subpage of the current page barring a special condition, so it's not like anything's gonna suddenly break from having a bad value). Aidan9382 (talk) 18:51, 4 March 2024 (UTC)[reply]

Leave a Reply