Project:Village Pump
![]() Archives
|
---|
|
Gadget for auto numeration and Vector-2022
editI’ve asked this first at the Support Desk, but because I request in effect for editing of one or two gadgets this seems to belong at the Village Pump.
First a copy of my Support Desk question:
Hello, the auto numeration activated with MediaWiki:Gadget-autonum.css and MediaWiki:Gadget-autonum.js (I load them in my global.js
) does not work well together with Vector-2022 skin, because the counter reset does not work, and so all lower sections are just counted up. Note, that in vector-2022 only the else tree of the script is active and the code of the CSS is used. If you think, why I do not just ask the author Krinkle – well he wrote almost a year ago “I do not use the autonum gadget myself. For now, I have exceed the time I'm willing to spend on this gadget. I suggest gathering support and awareness of other people in the community, to hopefully find someone who is able and willing to maintain this JS/CSS snippet for further modifications.” (Krinkle’s user talk page on meta, cf. meta:Special:Diff/26715423 or the full conversation at m:Special:PermaLink/26721127#Section autonumeration with Parsoid). As an example: Manual:FAQ (itself not ready for vector-2022, at least the toc part I looked for) has 12 sections, and the latest one has 6 subsections which is fine displayed in (legacy) Vector from 2010, but with Vector 2022 I see the count 12.107
.
End of copy
I was meanwhile able to fix this locally. This works only for the new DOM structure for the sections active in Wikimedia universe since last year (I’ve added a regarding note also to Krinkle, but did not remember that this is, of course, also active in Vector-2022). Since the gadgets are only for internal use this should be OK; the question is, though, how to alter Snippets/Auto-number headings, then. The CSS does not even need the selector added by the script, so it could be considered to delete this. But then all users who imported it need to get an information.
So, long story short, could one of the interface admins, please, replace the active MediaWiki:Gadget-autonum.css with the following style code:
.mw-parser-output {
counter-reset: autonum-h2 autonum-h3 autonum-h4 autonum-h5 autonum-h6;
}
.mw-parser-output .mw-heading2 {
counter-increment: autonum-h2;
counter-reset: autonum-h3 autonum-h4 autonum-h5 autonum-h6;
}
.mw-parser-output .mw-heading3 {
counter-increment: autonum-h3;
counter-reset: autonum-h4 autonum-h5 autonum-h6;
}
.mw-parser-output .mw-heading4 {
counter-increment: autonum-h4;
counter-reset: autonum-h5 autonum-h6;
}
.mw-parser-output .mw-heading5 {
counter-increment: autonum-h5;
counter-reset: autonum-h6;
}
.mw-parser-output .mw-heading6 {
counter-increment: autonum-h6;
}
.mw-parser-output .mw-heading h2::before {
content: counter(autonum-h2) " ";
}
.mw-parser-output .mw-heading h3::before {
content: counter(autonum-h2) "." counter(autonum-h3) " ";
}
.mw-parser-output .mw-heading h4::before {
content: counter(autonum-h2) "." counter(autonum-h3) "." counter(autonum-h4) " ";
}
.mw-parser-output .mw-heading h5::before {
content: counter(autonum-h2) "." counter(autonum-h3) "." counter(autonum-h4) "." counter(autonum-h5) " ";
}
.mw-parser-output .mw-heading h6::before {
content: counter(autonum-h2) "." counter(autonum-h3) "." counter(autonum-h4) "." counter(autonum-h5) "." counter(autonum-h6) " ";
}
If you want to keep the script in use then prepend .mw-parser-output
with .tpl-autonum
(with a space in between, of course) like it is seen in the active version, and keep the existent last part for JS mode.
As a side note: Somewhere a notice could be added that the style is best loaded by user script (global/common.js
) because then exceptions for pages could be added where the style should not be loaded. — Speravir (talk) – 00:10, 29 April 2025 (UTC)
- Done. I did the keep the script version on the principle of making the minimum possible change. * Pppery * it has begun 01:26, 10 May 2025 (UTC)
- Thank you! I just now wanted to update the Snippets, but noticed that Krinkle has added the code there as transclusion of the gadgets, so the update has been done automatically. — Speravir (talk) – 23:32, 10 May 2025 (UTC)
Can't thank
editIn the hirstory for a page, I only see "undo" and no "thank". I would like to be able to thank people, it's a nice and uncluttered way of expressing appreciation/understanding. Is there something I need to enable, or is it a priviliege that gets unlocked? Douginamug (talk) 17:30, 10 May 2025 (UTC)
Improving "Download"
editI made some bold changes to Download recently. @Shirayuki and @Pppery suggested, based on the importance of that page, that it would be better to revert those changes and first draft in my userspace. Here is that draft: User:Douginamug/Draft:Download It makes some fairly dramatic changes to title, content and structure: I tried to group related changes into the same revision and give meaningful revision comments.
I trust people will have resistance to a lot of the changes! My hope would be to work forward gradually and step-wise, from strongest consensus backwards. Curious to hear your opinions. Cheers, Douginamug (talk) 21:21, 10 May 2025 (UTC)
- @Shirayuki @Pppery just wanted to let you know that I will slowly and incrementally start changing Download in the direction I outlined in the draft. Douginamug (talk) 07:46, 16 May 2025 (UTC)
- @Douginamug: Since there have been no comments from other users regarding your edits, I do not believe a consensus has been reached, so I do not intend to mark the relevant revision for translation.-- Shirayuki (talk) 11:44, 16 May 2025 (UTC)
- @Shirayuki Thank you for explaining your reasoning and for your patience. I took the absence of comments to mean the absence of resistance, but I see I was too eager: ~1 week is not that long in the scope of this project. I would mention that there is one positive comment from @Pppery on your talk page.
- Do you think it would be better for me to revert the change until there is stronger consensus here? Douginamug (talk) 12:07, 16 May 2025 (UTC)
- @Shirayuki No comments != opposition. I'd say be bold and go ahead - it can be easily reversed if found out to be inappropriate later on. Leaderboard (talk) 18:43, 16 May 2025 (UTC)
- Marking changes for translation isn't exactly easily reversible as it will fuzzy stuff and waste translator effort (although any translations not edited at all between the fuzzy and the revert do get unfuzzied) I'm happy to mark changes for translation if someone needs to commit to taking that step. But that shouldn't be done until things settle down first. And I agree Douginamug's changes look like an improvement, except I would keep the "system requirements" section -- there are a lot of pages, including the Main Page itself, that start off with a bold link to "Download" as the first thing someone might click. * Pppery * it has begun 19:05, 16 May 2025 (UTC)
- More extensive feedback has been left at User talk:Douginamug/Draft:Download. * Pppery * it has begun 17:19, 17 May 2025 (UTC)
- Marking changes for translation isn't exactly easily reversible as it will fuzzy stuff and waste translator effort (although any translations not edited at all between the fuzzy and the revert do get unfuzzied) I'm happy to mark changes for translation if someone needs to commit to taking that step. But that shouldn't be done until things settle down first. And I agree Douginamug's changes look like an improvement, except I would keep the "system requirements" section -- there are a lot of pages, including the Main Page itself, that start off with a bold link to "Download" as the first thing someone might click. * Pppery * it has begun 19:05, 16 May 2025 (UTC)
- @Douginamug: Since there have been no comments from other users regarding your edits, I do not believe a consensus has been reached, so I do not intend to mark the relevant revision for translation.-- Shirayuki (talk) 11:44, 16 May 2025 (UTC)
Report concerning User:223.225.169.119
edit- 223.225.169.119 (talk • local contribs • global contribs • logs • rights • global account) — Reasons: Vandalism XReport --DreamRimmer (talk) 13:43, 11 May 2025 (UTC)
- Done --Clump (talk) 13:44, 11 May 2025 (UTC)
Report concerning User:115.164.190.136
edit- 115.164.190.136 (talk • local contribs • global contribs • logs • rights • global account) — Reasons: Vandalism XReport --MathXplore (talk) 12:07, 12 May 2025 (UTC)
- Done --Clump (talk) 12:09, 12 May 2025 (UTC)
Report concerning User:Shelbertaim
edit- Shelbertaim (talk • local contribs • global contribs • logs • rights • global account) — Reasons: Vandalism XReport --MathXplore (talk) 07:11, 13 May 2025 (UTC)
Report concerning User:37.239.32.6
edit- 37.239.32.6 (talk • local contribs • global contribs • logs • rights • global account) — Reasons: Vandalism XReport --MathXplore (talk) 12:50, 13 May 2025 (UTC)
- Done --Clump (talk) 13:13, 13 May 2025 (UTC)
Optional message of Template:Deprecated
editIn the template {{Deprecated}}, parameter 2 (optional message) is used, but it is not normally displayed. It appears that parameter 2 is only output when both parameter 2 and parameter newvarlink are specified. However, there is a missing space between the output of parameter 2 and the following See {{{newvarname}}} for...
message.
For example, in AuthPlugin, the optional message Superseded by AuthManager...
should be displayed, but it is not.
There used to be an example showing the use of parameter 2, but it was recently removed.-- Shirayuki (talk) 13:07, 14 May 2025 (UTC)
- ping @Tgr (WMF)-- Shirayuki (talk) 22:44, 15 May 2025 (UTC)
- The example didn't actually work. (The current one with the version number doesn't either, actually.) Should have been fixed rather than removed - I started doing that yesterday, but it's taking a while; working with translated templates is such a pain. I'll get it working eventually. Tgr (WMF) (talk) 10:13, 16 May 2025 (UTC)
- @Tgr (WMF): Until this revision, the template was simple and the role of parameter 2 was clear. It seems that later feature additions (based on a sandbox version by User:Waddie96) caused it to stop working correctly. I'm not sure what the intended behavior of the template is supposed to be.-- Shirayuki (talk) 11:32, 16 May 2025 (UTC)
- Specifically, this change made $1/$2 conditional on the newvarlink parameter being present, which seems like a mistake. Tgr (WMF) (talk) 08:18, 18 May 2025 (UTC)
- @Tgr (WMF): Until this revision, the template was simple and the role of parameter 2 was clear. It seems that later feature additions (based on a sandbox version by User:Waddie96) caused it to stop working correctly. I'm not sure what the intended behavior of the template is supposed to be.-- Shirayuki (talk) 11:32, 16 May 2025 (UTC)
Report concerning User:2404:3100:1822:894:2896:B3FF:FE0A:9341
edit- 2404:3100:1822:894:2896:B3FF:FE0A:9341 (talk • local contribs • global contribs • logs • rights • global account) — Reasons: Vandalism XReport --MathXplore (talk) 14:01, 14 May 2025 (UTC)
- Done --Clump (talk) 16:18, 14 May 2025 (UTC)
Report concerning User:49.237.6.12
edit- 49.237.6.12 (talk • local contribs • global contribs • logs • rights • global account) — Reasons: Vandalism XReport --Hehua (talk) 14:54, 14 May 2025 (UTC)
- Done --Clump (talk) 16:18, 14 May 2025 (UTC)
Report concerning User:49.237.12.174
edit- 49.237.12.174 (talk • local contribs • global contribs • logs • rights • global account) — Reasons: Vandalism XReport --ASid (talk) 00:35, 15 May 2025 (UTC)
- Done --Clump (talk) 10:08, 15 May 2025 (UTC)
Call for Candidates for the Universal Code of Conduct Coordinating Committee (U4C)
editThe results of voting on the Universal Code of Conduct Enforcement Guidelines and Universal Code of Conduct Coordinating Committee (U4C) Charter is available on Meta-wiki.
You may now submit your candidacy to serve on the U4C through 29 May 2025 at 12:00 UTC. Information about eligibility, process, and the timeline are on Meta-wiki. Voting on candidates will open on 1 June 2025 and run for two weeks, closing on 15 June 2025 at 12:00 UTC.
If you have any questions, you can ask on the discussion page for the election. -- in cooperation with the U4C,
Report concerning User:203.171.96.83
edit- 203.171.96.83 (talk • local contribs • global contribs • logs • rights • global account) — Reasons: Vandalism XReport --MathXplore (talk) 23:27, 15 May 2025 (UTC)
Report concerning User:2402:9D80:C25:8895:F1E9:C88E:C930:EAAB
edit- 2402:9D80:C25:8895:F1E9:C88E:C930:EAAB (talk • local contribs • global contribs • logs • rights • global account) — Reasons: Vandalism XReport --MathXplore (talk) 13:14, 18 May 2025 (UTC)
- Done --Clump (talk) 13:36, 18 May 2025 (UTC)
Requesting deletion of Manual:Search
editNot sure what Manual:Search is supposed to be, but it's definitely not the information I was looking for when visiting that page. SomeRandomDeveloper (talk) 14:40, 18 May 2025 (UTC)
- Weird indeed. Done --Clump (talk) 14:45, 18 May 2025 (UTC)
- And salted. * Pppery * it has begun 19:02, 18 May 2025 (UTC)