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)
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)
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)
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)
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)
{{DEFAULTSORT:XYZ}}
to the output of the function, it will display as raw text when it reaches the page.{{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.#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)
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)
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)
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)
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)
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)
{{{
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)
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)
</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)
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)
Thanks for fixing my insanely misplaced Oldprod!- My, oh my! (Mushy Yank) 21:12, 4 December 2023 (UTC)
Sent by NPP Coordination using MediaWiki message delivery ( talk) 01:27, 18 December 2023 (UTC)
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)
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)
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)
|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)
Thanks for fixing my (rather ridiculous) error when I installed the archiver. Joyous! Noise! 17:58, 4 March 2024 (UTC)
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)
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)
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)
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)
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)
{{DEFAULTSORT:XYZ}}
to the output of the function, it will display as raw text when it reaches the page.{{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.#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)
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)
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)
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)
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)
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)
{{{
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)
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)
</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)
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)
Thanks for fixing my insanely misplaced Oldprod!- My, oh my! (Mushy Yank) 21:12, 4 December 2023 (UTC)
Sent by NPP Coordination using MediaWiki message delivery ( talk) 01:27, 18 December 2023 (UTC)
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)
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)
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)
|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)
Thanks for fixing my (rather ridiculous) error when I installed the archiver. Joyous! Noise! 17:58, 4 March 2024 (UTC)