Content deleted Content added
m Archiving 1 discussion(s) from Module talk:WikiProject banner) (bot |
m Archiving 1 discussion(s) from Module talk:WikiProject banner) (bot |
||
(22 intermediate revisions by 2 users not shown) | |||
Line 376:
:::::::Fix is on the sandbox — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 14:00, 20 September 2024 (UTC)
{{fixed}}. I have tested this as much as I can, and it seems to work now — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 09:17, 23 September 2024 (UTC)
== CSS background colors need corresponding colors for dark mode compliance ==
CSS background colors need [[:mw:Help:Lint errors/night-mode-unaware-background-color|corresponding colors for dark mode]]. I inserted a fix for at least some of them, but apparently I did not follow process. Sorry about that. I'll leave it to others. If you are sandboxing and troubleshooting, you can see if you have resolved the problems by checking the bottom of the "Page information" page for "Background color inline style rule exists without a corresponding text color" Lint errors. To verify the visual appearance, you can go to the "Appearance" section of the right-hand sidebar in Vector 2022 and choose "Dark" under "Color (beta)". Using [[Special:ExpandTemplates]] is helpful for locating stray instances of CSS background-color defined without a color. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 14:05, 20 August 2024 (UTC)
:I don't know much about this, but I added [https://en.wikipedia.org/w/index.php?title=Module%3AWikiProject_banner%2Fsandbox%2Fstyles.css&diff=1241481792&oldid=1239829447 this] to [[Module:WikiProject banner/sandbox/styles.css]] and then checked at [[Template:WikiProject France/testcases]] but it is still showing as having 2 lint errors, so not sure if that has helped or not. I am using Vector 2022 but I don't see the Appearance section in my browser so can't check that. I notice that there are several other styles which define background-color but not color. Is it safe to use black for all these? — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 12:09, 21 August 2024 (UTC)
::Thanks. If you copy the template call into [[Special:ExpandTemplates]] and then search the resulting wikicode for "back", you should see <syntaxhighlight><td class="assess import import-Unknown" style="background:#DCDCDC">[[:Category:Unknown-importance France articles|???]]</td></syntaxhighlight> (which renders the box to the left of "This article has not yet received a rating"). That background needs a corresponding color. There are many instances like this in the code, though some of them exist only with specific combinations of parameters and values. I don't think that all of the background colors are in the templatestyles page, but I could be wrong. [https://en.wikipedia.org/w/index.php?title=Module%3AWikiProject_banner&diff=1241248384&oldid=1240624202 Here are a couple of places in the code where I matched a "background" assignment with a "color" assignment] and was reverted. Assigning "color:black" should be fine until someone wants something more sophisticated in dark mode. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 14:13, 21 August 2024 (UTC)
:::Yes but I added color:black to the assess class so that should cover that particular part — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 18:14, 21 August 2024 (UTC)
::::I expect that the Linter is confused about {{para|style}} defining the background-color while the color is defined in the class. Can the background color be moved to the CSS, or the color be moved to the style? I will also ask our WMF staffer who has been communicating with us about this new Linter flag, because it looks to me as if the td element has both a color and background-color and should not register as an error. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 20:39, 21 August 2024 (UTC)
:::::Yes I expect we could define all the background colours in the stylesheet rather than in the config file. We would just need to define each class/importance as a separate class. I could look at this if you think it would help — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 15:50, 22 August 2024 (UTC)
::::::I haven't had a response yet at [[Wikipedia_talk:Linter#Apparent_bug_in_dark_mode_Linter_detection|WT:Linter]], but it has been less than 24 hours, so some patience is still in order. If you think that moving more styles to the CSS stylesheet is a good long-term move anyway, your development time probably won't be wasted. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 18:07, 22 August 2024 (UTC)
:::::::I [https://en.wikipedia.org/w/index.php?title=Wikipedia_talk:Linter&curid=55873426&diff=1242203731&oldid=1241738720#Apparent_bug_in_dark_mode_Linter_detection received a response] at WT:Linter. I am not sure if it helps; it's not a quick fix for me, but someone may want to have a go at it and fix dark mode for a few million pages. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 23:36, 4 September 2024 (UTC)
::::::::Yes we can do this. I can work on it next week perhaps. I have followed up on that thread to clarify something — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 09:41, 6 September 2024 (UTC)
Just to note that I have made a start on this. The background colors for importance have now been moved into the stylesheet. I will continue with the class colors shortly — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 14:09, 27 September 2024 (UTC)
:@[[User:Jonesey95|Jonesey95]] finished coding this on the sandbox. Would be grateful if you could test it works, and also advise on whether the linter errors have now gone away? — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 22:01, 27 September 2024 (UTC)
::The sandbox version at [[Template:WikiProject France/testcases]] is reporting zero Linter errors. It appears to be using the sandbox version of all relevant modules and templates, so I think that the new coding is actually being used in the sandbox example cases. I do note a number of appearance changes, including a collapsed section in the sandbox that is not collapsible in the live version, and a note about importance in the sandbox version. I am assuming that those are also desirable changes, along with the color/background-color fixes. Thanks for working on this. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 22:13, 27 September 2024 (UTC)
:::Thank you. Yes, the other changes you observe are due to (a) sandbox not in sync with live, and (b) changes to importance we are discussing below — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 07:32, 28 September 2024 (UTC)
Before deploying this, I would like to check a few details:
* Is a comma the correct way to give the same definition to two different classes, e.g. <syntaxhighlight inline lang="css">.class-fa, .class-fl {background-color: #BED3FF;}</syntaxhighlight>
* If a class is used but not defined in the stylesheet, will it give an error or will it just be ignored?
* If two different classes are used with conflicting styles, will the one which is applied later take precedence?
I might think of some more questions — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 07:36, 28 September 2024 (UTC)
:Comma is correct, this is the syntax for a [https://www.w3.org/TR/selectors-3/#grouping list of selectors] - if either selector matches an element, the declaration-list is applied to that element.
:Classes are merely ways of giving convenient labels to one or more elements. [//www.w3.org/TR/2021/SPSD-html52-20210128/dom.html#element-attrdef-global-class The HTML 5.2 spec] isn't too good on this, but [//www.w3.org/TR/html4/struct/global.html#adef-class the HTML 4.01 spec] is better:
::The <samp>class</samp> attribute ... assigns one or more class names to an element; the element may be said to belong to these classes. A class name may be shared by several element instances. The <samp>class</samp> attribute has several roles in HTML:
::*As a style sheet selector (when an author wishes to assign style information to a set of elements).
::*For general purpose processing by user agents.
:So a class name that is used in the page source has no requirement to be used in a style sheet, and vice versa. The same goes for ids.
:Your third question is more complicated. It's partly down to the order in which HTML elements are nested, partly down to the order in the style sheet, and partly down to what is known as [https://www.w3.org/TR/selectors-3/#specificity "specificity"]. Assume that we have a style sheet like this: <syntaxhighlight lang=css>/* Style sheet example 1 */
.bar { background-color: pink; color: black; }
.foo { background-color: lightblue; color: black; }</syntaxhighlight> and HTML like this: <syntaxhighlight lang=html><!-- HTML example 1 --><span class=foo><span class=bar>Some text</span></span></syntaxhighlight> the words "Some text" will show on a pink background because the element of class <code>bar</code> is nested inside the element of class <code>foo</code>, and the order of the two rules in the style sheet is immaterial. But if we have HTML like this: <syntaxhighlight lang=html><!-- HTML example 2 --><span class="foo bar">Some text</span></syntaxhighlight> and style sheet example 1, the words "Some text" will show on a lightblue background; and if we exchange the rules in the style sheet: <syntaxhighlight lang=css>/* Style sheet example 2 */
.foo { background-color: lightblue; color: black; }
.bar { background-color: pink; color: black; }</syntaxhighlight> the words "Some text" will now show on a pink background because the second rule overrides the first. For these two cases, whether we use HTML example 2 or this: <syntaxhighlight lang=html><!-- HTML example 3 --><span class="bar foo">Some text</span></syntaxhighlight> makes no difference, because the order of class names in a <code>class=</code> attribute is immaterial. Now assume that the style sheet is now: <syntaxhighlight lang=css>/* Style sheet example 3 */
span.bar { background-color: pink; color: black; }
.foo { background-color: lightblue; color: black; }</syntaxhighlight> and using HTML example 2 or 3, the words "Some text" will show on a pink background because the selector of the first rule has higher specificity than the selector of the second rule.
:HTH. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 12:45, 28 September 2024 (UTC)
::Interesting! I had always assumed that <nowiki><span class="foo"><span class="bar"></nowiki> was equivalent to <nowiki><span class="foo bar"></nowiki> — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 18:33, 28 September 2024 (UTC)
:::Sometimes, but not always. Consider the rule added in [[Special:Diff/1248296760|this edit]]. It will be applied to <syntaxhighlight lang=html><!-- HTML example 4 --><span class=wpb><span class=assess>HTML example 4</span></span></syntaxhighlight> which emits "<span class=wpb><span class=assess>HTML example 4</span></span>", but not to <syntaxhighlight lang=html><!-- HTML example 5 --><span class="wpb assess">HTML example 5</span></syntaxhighlight> which emits "<span class="wpb assess">HTML example 5</span>", or to <syntaxhighlight lang=html><!-- HTML example 6 --><span class=assess><span class=wpb>HTML example 6</span></span></syntaxhighlight> which emits "<span class=assess><span class=wpb>HTML example 6</span></span>". This is because the space in the middle of <code>.wpb .assess</code> is a [https://www.w3.org/TR/selectors-3/#descendant-combinators descendant combinator]: in HTML example 4 we have one span that is the descendant of the other, but in HTML example 5 we have only one span, that is of class <code>assess</code> but is not the descendant of any element of class <code>wpb</code>. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 20:12, 28 September 2024 (UTC)
== listas ==
Is there a way to set separate sort keys for different wikiprojects? I get the general sortkey from {{tl|WPBS}}, but that doesn't always seem the best for each wikiproject contained within -- [[Special:Contributions/65.92.246.77|65.92.246.77]] ([[User talk:65.92.246.77|talk]]) 20:26, 2 October 2024 (UTC)
:No, it just uses DEFAULTSORT which sets the sort key for all categories — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 20:48, 2 October 2024 (UTC)
:The standard doc follows below. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 21:34, 2 October 2024 (UTC)
{{WPBannerDoc|listas|last=Smith|first=John}}
== Is there a way to set a task force as inactive within this module? ==
See [[Template talk:WikiProject Cricket#edittemplateprotected]], where an editor says {{tq|The [[Wikipedia:WikiProject Cricket/Somerset cricket task force]] is inactive now. Should be marked as inactive in the banner as well. }} I did not see a way to do this in the documentation. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 17:14, 3 October 2024 (UTC)
:I have seen this done in a variety of ways, but not sure what the neatest method is — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 11:56, 4 October 2024 (UTC)
== Tracking category proposed ==
There is a proposal to track uses of WikiProject banners which are placed outside the banner shell. The coding might be complex but I think this would be really useful — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 17:38, 29 June 2024 (UTC)
:Originating discussion @ [[User talk:Kanashimi/Archive 1#Cewbot is moving WikiProject banners outside of WPBS]]. <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 18:12, 9 July 2024 (UTC)
::If there is such a tracking category, my bots will automatically repair them by default. [[User:Kanashimi|Kanashimi]] ([[User talk:Kanashimi|talk]]) 08:50, 10 July 2024 (UTC)
:No progress on this, because I haven't figured out the code needed to achieve it — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 07:11, 28 August 2024 (UTC)
::Could there be a check after {{c|Articles with WikiProject banners but without a banner shell}} is assigned, to <code>getContent()</code> on the current page and look for {{tl|WikiProject banner shell}} and its redirects? If both those conditions are met, then the banner should be outside WPBS. If possible, [[Module:Template redirect regex]] can be used to centrally store/maintain that regex. <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 12:31, 7 September 2024 (UTC)
:::How would you check if the template was inside or outside of the banner shell? That tracking category just checks for the existence of the banner shell on the page — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 12:57, 7 September 2024 (UTC)
::::I see. As luck would have it, I was testing {{c|Articles with WikiProject banners but without a banner shell}} on a probably-misbehaving {{tl|WikiProject Occupations}} (no reason other than that's what was in the [[Template talk:Occupation by nationality and century category header|nearest browser window]]), which displayed the cat when outside of the WPBS. {{tl|WikiProject Occupations}} in fact displays the cat (one way or another) regardless of its position relative to WPBS.
::::Yeah, I can't think of an easy & low-overhead way of doing this either, unless there's an easy way to transform all templates on a page to their canonical titles. <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 17:06, 7 September 2024 (UTC)
:::::I have asked for some help at [[User talk:Aidan9382]] — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 21:55, 7 September 2024 (UTC)
I have written some code on my sandbox which might work.
If you type <code><nowiki>{{#invoke:Sandbox/MSGJ|main|WikiProject Finland}}</nowiki></code> it will look at the content of the current page and return ...
* <code>true</code> if it finds {{tl|WikiProject Finland}} anywhere outside of the banner shell,
* <code>true</code> there is no banner shell (so the template cannot be in a shell)
* <code>false</code> if it is inside the banner shell,
* <code>false</code> if {{tl|WikiProject Finland}} is not found on the page (perhaps a template redirect has been used, but we have no way to check for these)
Some testing would be appreciated — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 09:04, 19 September 2024 (UTC)
# <code>%b{}</code> very cool!
# escaping <code>%|</code> in Lua is unnecessary
# for <syntaxhighlight lang="Lua" inline>mw.ustring.find(content_without_shell, '{{%s*' .. banner_name .. '%s*[%|}]')</syntaxhighlight> to work for all WikiProjects, escaping special characters in <code>banner_name</code> will be necessary to find {{tl|WP New York (state)}}, {{tl|WP C/C++}}, and the like. Periods shouldn't need escaping though, since they'll just match themselves.
: <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 16:58, 19 September 2024 (UTC)
::Escaping these magic characters is beyond me, I'm afraid. I have tried and failed — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 21:16, 19 September 2024 (UTC)
:::Got it working! Check your sandbox for details. <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 00:46, 20 September 2024 (UTC)
::::That's great. I just wish I understood what you've done there. Last time I did this on the authority control module, I had to use three % characters before the magic character ([[Module:Authority_control#L-103|example]]) so I don't know how you have done it with just two — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 08:02, 20 September 2024 (UTC)
:::::Ah, there are additional layers of evaluation to contend with in AC, which require more <code>%</code> (<code>%%%%</code> evaluates to <code>%%</code> evaluates to <code>%</code>).
:::::Also, literal "%" need to be first in <code>special_chars</code>, or else you end up escaping them recursively an unexpected/unwanted # of times. <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 11:10, 20 September 2024 (UTC)
::::::Ah, good point. We should make the first character case insensitve, i.e. "wikiProject Biography" works the same as "WikiProject Biography" — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 13:51, 20 September 2024 (UTC)
{{done}} and {{clc|WikiProject banners placed outside the banner shell}} created — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 09:19, 23 September 2024 (UTC)
:I think we should restrict this to main talk namespace only, because there are lots of false positives in project space — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 11:16, 23 September 2024 (UTC)
::You could maybe do something like @[[User:Galobtter|Galobtter]] did with [[Module:Is infobox in lead]] and check if the banner is at the start of the page. Maybe Galobtter could help with tweaking his previous code. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 11:20, 23 September 2024 (UTC)
:::Not sure how that would help in this case. Some of the banners were are trying to find are tucked further down the page ([https://en.wikipedia.org/w/index.php?title=Talk:Subarctic_climate&diff=prev&oldid=1247228319 example]) — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 11:25, 23 September 2024 (UTC)
::::Ah, then it won't help there indeed. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 11:41, 23 September 2024 (UTC)
:::::That appears to have been {{diff|Talk:Subarctic climate|prev|1194455925|a Cewbot bug}}, followed by {{diff|Talk:Subarctic climate|next|1194455925|an incomplete fix}} by {{user|Widefox}}. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 16:07, 23 September 2024 (UTC)
::::::Hmm, looks like [[WP:RATER]] didn't play well with the Cewbot buggy rating. <span class="vcard"><span class="fn">[[User:Widefox|Widefox]]</span>; [[User talk:Widefox|talk]]</span> 18:16, 23 September 2024 (UTC)
::Could we ignore just the namespace(s) with the most FPs instead? <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 14:04, 23 September 2024 (UTC)
:::Let's ignore any namespace where there might feasibly be banners used as examples or for testing — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 15:34, 23 September 2024 (UTC)
=== Unmatched close-bracket error ===
Probably related to the recent update. [https://en.wikipedia.org/w/index.php?title=Module%3AWikiProject_banner%2Fsandbox&diff=1247264104&oldid=1247208793 This] helped, sort of - it moved the error to a different ___location, but it's still present. The problem comes from <code>[[]]</code> in {{para|comments|[[]]}}. The number in the error refers to the horizontal position of the error, and not a Unicode character #. <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 15:37, 23 September 2024 (UTC)
:This is bad, and I have no idea how to fix it. @[[User:Aidan9382|Aidan9382]] - any insight? The error can be seen on [[Talk:1993 in Lithuanian football]] and some other pages. We may have to remove this code if we can't find an urgent fix — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 07:38, 24 September 2024 (UTC)
::{{ping|MSGJ}} apologies, I've been busy. The page you link is no longer showing the issue - is the problem fixed, or is it still around in some other form, or was the change reverted? [[User:Aidan9382|Aidan9382]] <sub>([[User talk:Aidan9382|talk]])</sub> 16:29, 24 September 2024 (UTC)
:::I think we fixed it. It was a bit urgent so I didn't wait for your reply! Thanks — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 12:20, 25 September 2024 (UTC)
:Your fix seems to have worked Tom. Where do you still see the error? — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 07:44, 24 September 2024 (UTC)
::Oops, I forgot to create/check [[Template:WikiProject Lithuania/sandbox]]... Excellent! <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 10:29, 24 September 2024 (UTC)
=== Simplification ===
{{ping|Tom.Reding}} please check this possible simplification [https://en.wikipedia.org/w/index.php?title=Module:WikiProject_banner/sandbox&diff=prev&oldid=1247687284] — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 12:19, 25 September 2024 (UTC)
:This version also has the advantage of not falsely flagging [[Talk:100% (band)]] — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 12:27, 25 September 2024 (UTC)
::Interesting...using the loop method, <code>banner_name_escaped:gsub()</code> was the problem, since it's equivalent to <code>string.gsub()</code>, which returns a '[[Specials (Unicode block)|�]]' when trying to match the literal '%'. <code>mw.ustring.gsub()</code> however, behaves as expected, returning '%%'. This distinction goes away when using a custom <code>[set]</code> though, and all of those 3 gsub calls return the desired '%%'.
::I generally don't like using <code>mystring:gsub()</code>, since I can't be bothered to remember which <code>.gsub</code> it's calling, and sometimes it matters. <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 14:24, 25 September 2024 (UTC)
::The <code>[set]</code> method is definitely faster and less error-prone, so win-win. <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 14:25, 25 September 2024 (UTC)
=== Processing pass done ===
I've done a pass through of [[:Category:WikiProject banners placed outside the banner shell]] and have cut the number down by about half. Most of the remaining entries are pages where the syntax for a banner is inside <nowiki><nowiki></nowiki> tags (e.g. to use as examples in talk page discussions). '''''<span style="color: darkblue;">[[User:Harryboyles|Harryboyles]]</span>''''' 03:25, 29 September 2024 (UTC)
:Thanks Harry. I think we can remove the ones inside nowiki or html comments, by using [[Module:Wikitext Parsing]]. I will experiment in the sandbox — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 18:03, 29 September 2024 (UTC)
::{{done}}. This module is not so good on performance, so perhaps when we have cleared out this category we should stop checking for this — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 20:29, 7 October 2024 (UTC)
[[:Category:WikiProject banners placed outside the banner shell]] has been cleared. Thanks guys! — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 11:42, 9 October 2024 (UTC)
== Template:WAP ==
Not sure about [[Template:WAP]] since the project isn't on this wiki, but if this should be kept, it should probably be converted to use this module (and renamed). [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 19:38, 1 October 2024 (UTC)
:Perhaps soft-redirects off-wiki should be set up at the standard WPP locations -- [[Special:Contributions/65.92.246.77|65.92.246.77]] ([[User talk:65.92.246.77|talk]]) 22:46, 19 October 2024 (UTC)
::Do you mean on-wiki? — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 13:32, 20 October 2024 (UTC)
:::Yes, otherwise, the module wouldn't find the correct pages. -- [[Special:Contributions/65.92.246.77|65.92.246.77]] ([[User talk:65.92.246.77|talk]]) 18:06, 20 October 2024 (UTC)
== auto doc category ==
Can {{para|DOC|auto}} also add the template to the project category? Either <code>Category:WikiProject {{var|project}}</code> or <code>Category:WikiProject {{var|project}} templates</code> category. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 11:27, 28 May 2024 (UTC)
:Don't see any reason not to do this. Will sort in the next couple of days — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 15:35, 2 June 2024 (UTC)
:Do you want it to check to see if <code>Category:WikiProject {{var|project}} templates</code> exists first. If so use it, otherwise use <code>Category:WikiProject {{var|project}}</code>? — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 08:24, 4 June 2024 (UTC)
::Yes, I think it's best to place it in the templates category if it exists. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 08:30, 4 June 2024 (UTC)
:::I agree. That is now coded in the sandbox, and will currently appear on sandbox templates for testing. When deployed it will only categorise the live templates. You can check [[Template:WikiProject Deaf/sandbox]] (which does not have a templates category) and [[Template:WikiProject Cycling/sandbox]] (which does have a templates category) — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 08:52, 4 June 2024 (UTC)
::::Great, looks good! [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 09:19, 4 June 2024 (UTC)
{{Ul|Gonnym}} there are about 80 templates (see [[:Category:WikiProject banners with errors]]) which are not able to populate the project category, because it either doesn't exist or because it is a category redirect. Would you like to review these? — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 12:09, 10 August 2024 (UTC)
:Yeah I'm taking a look at these. So far some sent to CfD, RM, or MfD. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 12:20, 10 August 2024 (UTC)
:@[[User:MSGJ|MSGJ]] most of the GLAM sub projects have a category titled: Category:Wikipedia-<project name> collaboration" (such as [[:Category:Wikipedia-Philadelphia Museum of Art collaboration]]). So a template like [[Template:WikiProject Philadelphia Museum of Art]] that has a {{para|PROJECT_LINK|Wikipedia:GLAM/Philadelphia Museum of Art}} can be placed there. That should remove most pages in the category. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 11:35, 11 August 2024 (UTC)
::Or we can just leave them to add the categories manually, as they are currently doing? When you are done reviewing those, I can turn off the tracking — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 20:00, 11 August 2024 (UTC)
::Are you finished reviewing these - and can I turn off the tracking, rather than keeping them in the error category indefinitely — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 19:23, 3 September 2024 (UTC)
:::Well I've added some code to the sandbox to support these (if we want), but you could turn it off. I've reviewed most, but I'm not a fan of reviewing categories that can never be cleared as it has me checking things I've already looked at before. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 23:02, 3 September 2024 (UTC)
::::Yes that is my concern too - that we can never resolve some of these issues, so they are not actually "errors" — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 07:38, 4 September 2024 (UTC)
::::Is [[Module:WikiProject banner/templatepage/sandbox]] ready to deploy or not needed? — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 23:04, 5 October 2024 (UTC)
:::::I think it's ready for deploy. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 13:17, 30 October 2024 (UTC)
:::::The CSS should still be moved though. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 13:37, 30 October 2024 (UTC)
== invert parenthesis on inactive WikiProject bubble ==
[[User:Matrix]] made [https://en.wikipedia.org/w/index.php?title=Module:WikiProject_banner/styles.css&diff=prev&oldid=1250151568 this edit] without any discussion whatsoever. Can you explain what this does, and can you ensure you discuss changes to widely used modules in future? — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 18:11, 9 October 2024 (UTC)
:{{ping|MSGJ}} wait I thought I did that in the sandbox module... sorry for being stupid. It was supposed to invert the parenthesis on the text "(inactive)" in the banner for inactive wikiprojects. —'''Matrix(!)''' <sub>ping one</sub><sup>when replying</sup> {''[[User:Matrix|user]] - [[User talk:Matrix|talk?]] - [[Special:Contribs/Matrix|<sub><small><s>useless</s></small></sub>contributions]]''} 18:13, 9 October 2024 (UTC)
::I don't think it works. —'''Matrix(!)''' <sub>ping one</sub><sup>when replying</sup> {''[[User:Matrix|user]] - [[User talk:Matrix|talk?]] - [[Special:Contribs/Matrix|<sub><small><s>useless</s></small></sub>contributions]]''} 18:13, 9 October 2024 (UTC)
::You want [[Module:WikiProject banner/sandbox/styles.css]] then. We don't play around on a module with 11 million transclusions! — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 18:26, 9 October 2024 (UTC)
:::{{ping|MSGJ}} calm down mate it was an honest error :/ —'''Matrix(!)''' <sub>ping one</sub><sup>when replying</sup> {''[[User:Matrix|user]] - [[User talk:Matrix|talk?]] - [[Special:Contribs/Matrix|<sub><small><s>useless</s></small></sub>contributions]]''} 18:41, 9 October 2024 (UTC)
:::{{ping|MSGJ}} All right, I got it working now and checked with testcases, everything looks fine to you? —'''Matrix(!)''' <sub>ping one</sub><sup>when replying</sup> {''[[User:Matrix|user]] - [[User talk:Matrix|talk?]] - [[Special:Contribs/Matrix|<sub><small><s>useless</s></small></sub>contributions]]''} 19:03, 9 October 2024 (UTC)
::::Please explain what "invert parenthesis" means? I cannot see any difference on the testcases — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 12:03, 10 October 2024 (UTC)
:::::I'm curious as well. I created {{tl|WikiProject Occupations/sandbox}}, since that was the first inactive WP that came to mind. <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 13:37, 10 October 2024 (UTC)
:::::{{ping|MSGJ|Tom.Reding}} you can't see any difference between the sandbox and live versions because the templatestyles on the sandbox version also applies to the live version on that page. At the bottom of the testcases you can see the parenthesis saying "([[Wikipedia:INACTIVEWP|inactive]])" is correctly coded as white, whilst on [[WT:Logos]] it's black during dark mode, because usually the WikiProject bubble is not inverted in dark mode. However in this case it should be black. —'''Matrix(!)''' <sub>ping one</sub><sup>when replying</sup> {''[[User:Matrix|user]] - [[User talk:Matrix|talk?]] - [[Special:Contribs/Matrix|<sub><small><s>useless</s></small></sub>contributions]]''} 16:34, 10 October 2024 (UTC)
::::::I see no difference between [[Module talk:WikiProject banner/testcases#Inactive WikiProject|the testcase]] & [[Wikipedia talk:Logos]]. Which skin(s) does your change affect? <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 17:27, 10 October 2024 (UTC)
:::::::{{ping|Tom.Reding}} Are you using Vector 2022 dark mode as was specified earlier? —'''Matrix(!)''' <sub>ping one</sub><sup>when replying</sup> {''[[User:Matrix|user]] - [[User talk:Matrix|talk?]] - [[Special:Contribs/Matrix|<sub><small><s>useless</s></small></sub>contributions]]''} 18:18, 10 October 2024 (UTC)
::::::::{{Ping|Matrix}} I'm using Vector 2010, but I opened those pages in Vector 2022 and still see no change between any of those banners in both light and dark modes. <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 17:34, 11 October 2024 (UTC)
:::::::::{{ping|Tom.Reding}} I created an [https://imgur.com/a/ETHb18R Imgur] for you. Look carefully at the parenthesis saying "inactive". First is WT:Logos, second is testcases. —'''Matrix(!)''' <sub>ping one</sub><sup>when replying</sup> {''[[User:Matrix|user]] - [[User talk:Matrix|talk?]] - [[Special:Contribs/Matrix|<sub><small><s>useless</s></small></sub>contributions]]''} 17:39, 11 October 2024 (UTC)
::::::::::I'm using Vector 2022 and I went to dark mode but what I'm seeing does not match the image on that link. On mine the brackets are white (just like your second image) and it looks fine — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 07:47, 12 October 2024 (UTC)
:::::::::::{{ping|MSGJ}} mb I didn't see this comment (next time pls ping me as my signature says). Which page did you visit? [[WT:Logos]] or testcases. The problem is in testcases due to templatestyles applying everywhere and not just the sandbox due to [[phab:T155813#2996589]]. —'''[[User:Matrix|Matrix]](!)''' <sub>ping one</sub><sup>when replying</sup> {''[[User:Matrix|u]] - [[User talk:Matrix|t?]] - [[Special:Contribs/Matrix|<sub><small><s>useless</s></small></sub>c]]''} 11:11, 30 October 2024 (UTC)
:::::{{ping|MSGJ}} Any objections to implementing this edit? —'''Matrix(!)''' <sub>ping one</sub><sup>when replying</sup> {''[[User:Matrix|user]] - [[User talk:Matrix|talk?]] - [[Special:Contribs/Matrix|<sub><small><s>useless</s></small></sub>contributions]]''} 19:11, 11 October 2024 (UTC)
::::::implementing now —'''Matrix(!)''' <sub>ping one</sub><sup>when replying</sup> {''[[User:Matrix|user]] - [[User talk:Matrix|talk?]] - [[Special:Contribs/Matrix|<sub><small><s>useless</s></small></sub>contributions]]''} 16:00, 16 October 2024 (UTC)
:::::::You still haven't explained what this does. We can't see any difference on the test cases — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 16:47, 16 October 2024 (UTC)
::::::::I've explained this at [[Module_talk:WikiProject_banner#c-Matrix-20241010181800-Tom.Reding-20241010172700]]. Due to the way templatestyles works, the css rule would apply to the whole testcases page not just the sandbox version. You could view an archive of [[WT:Logos]] to see the difference. —'''[[User:Matrix|Matrix]](!)''' <sub>ping one</sub><sup>when replying</sup> {''[[User:Matrix|u]] - [[User talk:Matrix|t?]] - [[Special:Contribs/Matrix|<sub><small><s>useless</s></small></sub>c]]''} 11:14, 30 October 2024 (UTC)
:::::::I see you went ahead with this change, despite unanswered questions from myself and Tom.Reding on this talk page — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 17:12, 17 October 2024 (UTC)
::::::::{{ping|MSGJ}} I assume Tom.Reding had no issues with the edit since he thanked my reply. I simply overlooked your reply as it got lost in the swathe of comments. Next time please ping. —'''[[User:Matrix|Matrix]](!)''' <sub>ping one</sub><sup>when replying</sup> {''[[User:Matrix|u]] - [[User talk:Matrix|t?]] - [[Special:Contribs/Matrix|<sub><small><s>useless</s></small></sub>c]]''} 11:13, 30 October 2024 (UTC)
:::::::::{{Ping|Matrix}} the thank you was for the imgur, which at least showed the problem we were unable to reproduce, not a validation of your change. We still don't know the root cause, only that your change papered over it. <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 12:01, 30 October 2024 (UTC)
::::::::::{{ping|Tom.Reding}} The root cause of the black parenthesis is the following code: <syntaxhighlight lang=css>.wpb-header-bubbles {
border-radius: .5em;
padding: 0 .3em;
margin-left: 0.5em;
white-space: nowrap;
font-weight: normal;
color: black;
}</syntaxhighlight> This code is here so the little bubbles that say "C‑class" and "B-class", etc are in black even in dark mode. But the text saying "(inactive)" is also a member of wpb-header-bubbles so the parenthesis is also black, which is undesirable. My change to the css therefore has a higher specificity and overrides the previous code, making the parenthesis white. Hope this helps. —'''[[User:Matrix|Matrix]](!)''' <sub>ping one</sub><sup>when replying</sup> {''[[User:Matrix|u]] - [[User talk:Matrix|t?]] - [[Special:Contribs/Matrix|<sub><small><s>useless</s></small></sub>c]]''} 12:55, 30 October 2024 (UTC)
:::::::::::Just to be clear, in the image example you gave, is the top after your change or the bottom? [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 13:16, 30 October 2024 (UTC)
::::::::::::Bottom is after my change. —'''[[User:Matrix|Matrix]](!)''' <sub>ping one</sub><sup>when replying</sup> {''[[User:Matrix|u]] - [[User talk:Matrix|t?]] - [[Special:Contribs/Matrix|<sub><small><s>useless</s></small></sub>c]]''} 16:59, 30 October 2024 (UTC)
== Category:Pages using WikiProject [insert project] with unknown parameters ==
In [[Special:WantedPages]], a lot of the most wanted pages are empty categories for pages that use a WikiProject with unknown parameters. In fact, the most wanted page, with nearly <b>120,000</b> pages (most appear to be talk pages) linking to it, is the empty category "Category:Pages using WikiProject Lepidoptera with unknown parameters". Why is that? [[User:BombCraft8|BombCraft8]] <sup>([[User talk:BombCraft8|talk]]) ([[Special:Contributions/BombCraft8|contributions]])</sup> 00:26, 4 September 2024 (UTC)
:Okay I know why this is happening. This module uses [[Module:Check for unknown parameters]] and we have to tell it a category to use if it finds any unknown parameters. The default category is Category:Pages using WikiProject PROJECT with unknown parameters where PROJECT is the name of the project. But not all these categories exist, so the module checks if it exists first, and if not it will use the generic [[:Category:WikiProject templates with unknown parameters]] instead. The link to these categories occurs when it checks for existence. I can't change this behaviour at this module, but I will make a suggestion at [[Module talk:Check for unknown parameters]] to see if there is something that can be done there — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 14:12, 4 September 2024 (UTC)
::Ok [[User:BombCraft8|BombCraft8]] <sup>([[User talk:BombCraft8|talk]]) ([[Special:Contributions/BombCraft8|contributions]])</sup> 01:19, 5 September 2024 (UTC)
:::A fix for this is now in the sandbox — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 09:07, 5 September 2024 (UTC)
::::Thanks [[User:BombCraft8|BombCraft8]] <sup>([[User talk:BombCraft8|talk]]) ([[Special:Contributions/BombCraft8|contributions]])</sup> 13:07, 5 September 2024 (UTC)
:::::This is now deployed, so they should start clearing out of the wanted categories page soon — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 11:37, 7 September 2024 (UTC)
::::::Ok, thanks [[User:BombCraft8|BombCraft8]] <sup>([[User talk:BombCraft8|talk]]) ([[Special:Contributions/BombCraft8|contributions]])</sup> 21:00, 7 September 2024 (UTC)
:::::::@[[User:MSGJ|MSGJ]] How long should it take for them to clear out on that page? [[User:Rjjiii|<span style="font-variant:small-caps;">Rjj<sup>iii</sup></span>]] ([[User talk:Rjjiii|talk]]) 05:58, 3 November 2024 (UTC)
== Module work before next sync ==
The following pages are pages I've done work on or are not synced with live version. I'd appreciate if anyone can check my work to see if I missed something.
# [[Module:WikiProject banner/sandbox]] ([https://en.wikipedia.org/w/index.php?title=Module%3AWikiProject_banner%2Fsandbox&diff=1254331103&oldid=1253980906 changes])
#* Modified the class usage check to catch non-article usages of the {{para|class}} parameter and add them to the redundant_class category.
#* Converted two hardcoded categories to use the config file.
# [[Module:WikiProject banner/config/sandbox]] ([https://en.wikipedia.org/w/index.php?title=Module%3AWikiProject_banner%2Fconfig%2Fsandbox&diff=1254331059&oldid=1252932712 changes])
#* Added the two hardcoded category names to the config file.
# [[Module:WikiProject banner/templatepage/sandbox]] ([https://en.wikipedia.org/w/index.php?title=Module%3AWikiProject_banner%2Ftemplatepage%2Fsandbox&diff=1254336276&oldid=1239368643 changes])
#* Added automatic category to templates of Wikipedia:GLAM, which were using a different naming convention.
# [[Module:Banner shell/sandbox]] ([https://en.wikipedia.org/w/index.php?title=Module%3ABanner_shell%2Fsandbox&diff=1254317667&oldid=1254137578 changes])
#* Standardized blp usage.
#* Added a check for blp usage to make sure it is in sync with the main page category.
#* Moved related blp strings to config file.
# [[Module:Banner shell/config/sandbox]] ([https://en.wikipedia.org/w/index.php?title=Module%3ABanner_shell%2Fconfig%2Fsandbox&diff=1254311299&oldid=1252954631 changes])
#* Added blp strings to config file.
# [[Module:WikiProject banner/sandbox/styles.css]] ([https://en.wikipedia.org/w/index.php?title=Special:ComparePages&page1=Module%3AWikiProject+banner%2Fstyles.css&page2=Module%3AWikiProject+banner%2Fsandbox%2Fstyles.css changes]; not mine)
Additionally, the following pages have inline CSS (search for "TODO") that should be moved to the .css file before next sync.
* [[Module:WikiProject banner/auxiliary/sandbox]]
* [[Module:WikiProject banner/templatepage/sandbox]]
* [[Module:Banner shell/sandbox]]
This file also has a TODO that should be solved:
* [[Module:WikiProject banner/sandbox/styles.css]]
[[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 14:38, 30 October 2024 (UTC)
:There is quite a lot to look at here, so may take me a while ... I don't agree with these "TODO" tasks that you are adding in the code. You can make the fixes yourself but it's not fair to try to make others do it — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 17:19, 31 October 2024 (UTC)
::We can't and shouldn't have two sources which we take information from. Since the .css file and the config file were created (not by me), the css and any config related data should be there. The tags are in the /sandbox and not in the live version. No one is forced to do the work, but the tag should still stay there, as it's completely correct. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 17:31, 31 October 2024 (UTC)
:RE 1, is it really worthwhile tracking redundant class values which are ignored anyway? I can't really see the benefit and I can see some drawbacks. For example, an article is rated Stub-class and is moved to Draft namespace. If this class is removed then when/if the article is moved back to mainspace the rating would be lost. Why don't we continue to ignore these class parameters? They are not doing any harm — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 22:28, 1 November 2024 (UTC)
::That's a good argument for excluding draft space, but this would be useful for most !mainspace areas, like categories, templates, files, etc. Could a small list of excluded namespaces be used instead of a blanket-!mainspace conditional? <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 10:51, 2 November 2024 (UTC)
:::Okay I suppose I could get behind this if User and Draft namespaces were excluded. These are the ones which are potential articles — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 09:50, 3 November 2024 (UTC)
:RE 2, okay fine. The reason I did not do this before, is this is intended to be a temporary tracking category. As soon as we have caught all the listas values then we can remove this completely and they will be tracked by unknown parameter categories. — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 22:31, 1 November 2024 (UTC)
:RE 3, {{done}} — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 22:35, 1 November 2024 (UTC)
:RE 4, some problems here. For example the blp status would never get past the living check so activepol would never be looked at. I have removed the "dead" status for now to fix this, but have not had a chance to look at the category checking code yet. The category [[:Category:Deaths]] is not used, so I don't think that will work. I think all this code should be removed until there is a better plan of what we want to achieve and how to do it — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 23:05, 1 November 2024 (UTC)
:RE 5, see 4. RE 6, there are no changes to review here — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 23:08, 1 November 2024 (UTC)
== WP:VRT ==
Since it's not a typical WikiProject, {{tl|WikiProject VRT}} <s>displays</s> displayed a red link if placed inside the shell, but a blue link if placed on its own. I created [[Wikipedia:WikiProject VRT]] to match the expected WikiProject link, but is it possible to make the template link to [[Wikipedia:Volunteer Response Team]] directly when inside the shell? <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 11:42, 2 November 2024 (UTC)
:I've added the PROJECT_LINK param. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 17:41, 2 November 2024 (UTC)
::I've also changed the name to "Volunteer Response Team". VRT means nothing to most people — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 10:07, 3 November 2024 (UTC)
:::[[Bristol VRT]], a British model of double-deck bus chassis. The letters indicate the engine orientation and position (Vertical, Rear, Transverse). I've known about this since about 1980. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 13:42, 3 November 2024 (UTC)
::::Are you a [[bus spotter]] by any chance? — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 12:28, 4 November 2024 (UTC)
== Featured page status ==
I was looking at [[File talk:For the First Time in Forever A Frozen Sing-Along Celebration Logo.jpg]] which is marked as a FM, but it isn't, and was wondering if we can have the bot handle these like it handles [[:Category:Wikipedia vital articles needing attention]]. It could go over the pairs of (or if there is a better way):
* [[:Category:Featured articles]] and [[:Category:Wikipedia featured articles]]
* [[:Category:Featured lists]] and [[:Category:Wikipedia featured lists]]
* [[:Category:Featured pictures]] and [[:Category:Wikipedia featured pictures]] (which currently isn't populated for some reason)
* [[:Category:Good articles]] and [[:Category:Wikipedia good articles]]
It should sync the talk page with the non-talk page version, with the non-files it could either lower one level down or completely remove the class value leaving it for editors to fill in. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 15:46, 30 October 2024 (UTC)
:Would it better to populate a tracking category, rather than attempting to automatically change the rating? — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 12:29, 4 November 2024 (UTC)
== DOC=auto and inactive banners ==
{{para|DOC|auto}} does not work with inactive banners (see [[Template:WikiProject University of Florida]]). [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 10:23, 11 September 2024 (UTC)
:That is true. Would you care you write some documentation for inactive banners that we can use? It would not be very long because most features are disabled. Perhaps some information about inactive projects and how to revive? — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 16:39, 11 September 2024 (UTC)
::Yeah I'll muse over this weekend. But at the very least, the categorization should still happen for the template. An inactive banner is not placed in the project's category. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 16:43, 11 September 2024 (UTC)
:::See also {{tl|WikiProject Reenactment}}. Same problem, I think. It needs documentation and a category. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 14:55, 14 September 2024 (UTC)
::::Yes I know this needs sorting. Just need some time to look at it ... — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 08:18, 15 September 2024 (UTC)
The categorisation is now fixed (I hope!). If someone can write some documentation for inactive banners, this can be added to [[Module:WikiProject banner/templatepage|/templatepage]] — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 09:15, 23 September 2024 (UTC)
:Bumping this to avoid it being archived. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 15:55, 7 November 2024 (UTC)
::Still waiting for someone to write the documentation — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 16:06, 7 November 2024 (UTC)
== Inactive parameters ==
@[[User:Gonnym|Gonnym]], regarding [https://en.wikipedia.org/w/index.php?title=Module:WikiProject_banner/sandbox&diff=prev&oldid=1255719643 this edit] to the sandbox module, there is a problem. Now you are passing all sorts of categories like {{para|MAIN_CAT}} through so these categories will not be suppressed. If you recall, we allowed categories on inactive banners so that tracking categories such as [[:Category:Articles with WikiProject banners but without a banner shell]] would work. But now the only way of stopping the other categories is by filtering them out in the <code>p.inactive</code> function. So I think this needs reverting. What was the aim of that change, and maybe there is another way to achieve it — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 19:50, 6 November 2024 (UTC)
:There are many inactive banners with old and unsupported parameters. The code can't check them as we are overriding them. Other than MAIN_CAT, what other category parameter is sent? We can just override it with a blank parameter. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 15:42, 7 November 2024 (UTC)
::All the quality cats (unless you filter out class), all the importance cats (unless you filter out importance and all tf importances), any TF_MAIN_CAT, ATTENTION_CAT, etc. ... — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 18:16, 7 November 2024 (UTC)
== Auto classifying SIAs as List-class ==
Currently a proposal under discussion at [[Wikipedia:Bot requests#Assess set index and WikiProject Lists based on category as lists]] to automatically classify set index articles as List-class. See also [[Module talk:WikiProject banner/Archive 14#More page types]] for a previous proposal along similar lines — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 08:35, 1 November 2024 (UTC)
:First attempt at code is on the sandbox. Demonstration below — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 22:30, 7 November 2024 (UTC)
:@[[User:Mrfoogles|Mrfoogles]]: FYI — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 22:31, 7 November 2024 (UTC)
{{WikiProject banner shell/sandbox|demo_page=Talk:Cheating in sports|
{{WikiProject France/sandbox|Paris=y|demo_page=Talk:Cheating in sports}}
}}
::Oh, just found what might be an issue -- it looks like the Military History project uses "set index article" as a class. I'm not entirely sure if this template applies to <nowiki>{{Wikiproject banner shell}}</nowiki>, <nowiki>{{Wikiproject <insert wikiproject here>}}</nowiki>, or both. But I think this should ideally affect the banner shell but not the individual wikiproject banners to avoid impacting that. E.g. see [[Talk:USS_Yorktown]]. [[User:Mrfoogles|Mrfoogles]] ([[User talk:Mrfoogles|talk]]) 02:29, 8 November 2024 (UTC)
:::That shouldn't affect anything. Milhist have their own scale and do their own thing. This change will impact the banner shell and any project using the standard scale. — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 10:04, 8 November 2024 (UTC)
::::Oh, that should work then, just making sure [[User:Mrfoogles|Mrfoogles]] ([[User talk:Mrfoogles|talk]]) 15:53, 8 November 2024 (UTC)
I have made the necessary changes to [[Module:Banner shell]]. Most of the changes are to this module though, and I still need to test things properly. In the meantime you may see some strange results on SIAs — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 22:09, 9 November 2024 (UTC)
:This should now be done. Let me know if anything looks wrong — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 20:52, 10 November 2024 (UTC)
::@[[User:MSGJ|Martin]] [[Talk:Diamide]] seems to be broken, saying that it doesn't need a rating on the content assessment scale [[User:Mrfoogles|Mrfoogles]] ([[User talk:Mrfoogles|talk]]) 23:07, 10 November 2024 (UTC)
:::Looks like it works now (Diamide now shows up as list class). Maybe some sort of caching thing. [[User:Mrfoogles|Mrfoogles]] ([[User talk:Mrfoogles|talk]]) 03:44, 11 November 2024 (UTC)
::::Yep, pages might need a [[wp:purge|purge]] — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 10:33, 11 November 2024 (UTC)
== Task force importance ==
I have been improving the auto documentation for task forces, including adding the importance parameters to TemplateData. I am also proposing to move the configuration settings for the template page and auto doc features into the /templatepage module. The reason is I do not want to alter such a heavily transcluded page (and add to the job queue) whenever we tweak the documentation. See [[Module:WikiProject banner/templatepage/sandbox]] for more — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 11:51, 11 November 2024 (UTC)
== Importance assessment ==
Would it be possible to make a way to suppress the importance assessment of List-class articles to Low-importance irregardless of the parameter. <span class="nowrap"><span style="font-family:Comic Sans MS;color:#50B849;">'''''Vestrian24Bio'''''</span> (<small>[[User talk:Vestrian24Bio|<span style="font-family:Times New Roman;color:#0078D7;">'''''TALK'''''</span>]]</small>)</span> 16:25, 25 October 2024 (UTC)
:For info, this would implement the standard stated at [[WP:CRICIS]], as also discussed at [[Wikipedia:Categories_for_discussion/Log/2024_October_20#Category%3AFL-Class_cricket_articles_of_Mid-importance|CFD Oct 20]]. – [[User:Fayenatic london|Fayenatic]] [[User talk:Fayenatic london|'''<span style="color:#FF0000;">L</span>'''ondon]] 14:17, 27 October 2024 (UTC)
:Yes, in principle you can do this via [[Template:WikiProject Cricket/importance]] but you would need to write your own code, because no other project does anything like this. Do you mean whenever {{para|class|list}} you will automatically assign low importance, and it would be impossible to override that? — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 21:40, 27 October 2024 (UTC)
::Yes, that's the desired outcome. I think the intended question was whether the meta template includes any features to facilitate this, and you have given us the answer to that: No. At least that's clear now, thanks. – [[User:Fayenatic london|Fayenatic]] [[User talk:Fayenatic london|'''<span style="color:#FF0000;">L</span>'''ondon]] 21:05, 28 October 2024 (UTC)
:::What we can arrange is for the normalised class value to be passed to the importance mask, then it will be simple enough to write the code to produce the desired result — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 21:12, 28 October 2024 (UTC)
:::Should be working on [[Template:WikiProject Cricket/sandbox]], if you'd like to test it. A small change to the meta module will be needed, then we can deploy to your live template — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 21:21, 28 October 2024 (UTC)
:::@[[User:Fayenatic london|Fayenatic london]]: if you still want to do this, then you can deploy that sandbox code and it should work fine now — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 20:59, 10 November 2024 (UTC)
::::@[[user:MSGJ|MSGJ]]: thank you! Please clarify, do I just need to insert <code>|IMPORTANCE_SCALE = subpage</code>, rather than the latest sandbox version by Vestrian24Bio? Also, to implement [[WP:CRICIS]], I think the second line in [[Template:WikiProject Cricket/importance]] should be |Low rather than |NA. – [[User:Fayenatic london|Fayenatic]] [[User talk:Fayenatic london|'''<span style="color:#FF0000;">L</span>'''ondon]] 22:23, 10 November 2024 (UTC)
:::::You're quite right, I've changed the 2nd line to Low. And it's {{para|IMPORTANCE_SCALE|subpage}} that you need. No idea what @[[User:Vestrian24Bio|Vestrian24Bio]] is doing in the sandbox. They seem to be adding a million task forces — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 10:36, 11 November 2024 (UTC)
::::::The sandbox version is to add the newly created taskforces and some new notes as well. <span class="nowrap"><span style="font-family:Comic Sans MS;color:#50B849;">'''''Vestrian24Bio'''''</span> (<small>[[User talk:Vestrian24Bio|<span style="font-family:Times New Roman;color:#0078D7;">'''''TALK'''''</span>]]</small>)</span> 12:34, 11 November 2024 (UTC)
== Boilerplate text for A-class reviews ==
Following a request from WikiProject Military history, I've added some code to [[Module:WikiProject banner/auxiliary/sandbox]] for a new parameter {{para|ACR_BOILERPLATE}} which will create a new A-class review page with a preload template (in this case [[Wikipedia:WikiProject Military history/Review/A-Class review preload boilerplate]]) — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 22:19, 14 November 2024 (UTC)
== Rename ==
Propose renaming [[:Category:Pages using WikiProject banner shell without a project-independent quality rating]] to something like [[:Category:WikiProject banners with class parameter that needs moving to banner shell]] to be more consistent with other tracking categories (and more accurate) — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 07:30, 4 November 2024 (UTC)
:"project-independent quality rating" -> "class parameter" is an improvement.
:The proposed name implies a value needs to moved. What about pages with no class value to move, and no class value in banner shell, on a page requiring a class value? <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 11:22, 5 November 2024 (UTC)
::What about [[:Category:WikiProject banners without a class parameter]]? <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 11:26, 5 November 2024 (UTC)
::That category is specifically for cases where a class parameter is used by a project banner but there is no class parameter in the banner shell. Usually this means the parameter needs to be moved from the project banner to the banner shell. The current name is quite misleading — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 12:31, 5 November 2024 (UTC)
:::Ah, makes sense then. So pages without a class value will just filter unto various WikiProjects' ''unassessed'' cats? <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 13:14, 5 November 2024 (UTC)
::::Come to think of it, this is not ideal (deferring to WikiProjects' ''unassessed'' cats). Since not all WikiProjects use {{para|class}} ({{cconly|WikiProject banners without quality assessment}}), there needs to be a central repository for unclassified articles, such as [[:Category:WikiProject banners without a class parameter]]. For example, if an article is tagged with only WikiProjects that don't use {{para|class}}, then there is no way to find it if it is unassessed. Even if a class-using WikiProject is present, we should make it easy for editors wanting to classify articles to find them, as opposed to searching through 1000 projects' ''unassessed'' cats. <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 14:57, 5 November 2024 (UTC)
:::::At the moment {{tl|WPBS}} will use [[:Category:Unassessed articles]] if there are no project banners. But you are right: if there are banners present then it cannot know if they are banners that use assessments or inactive projects (when assessments are deactivated). So there will be some slipping through the net. We could populate something like [[:Category:All unassessed articles]], if that would be useful. What about articles which are assessed but don't contain any projects using assessments? — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 15:20, 5 November 2024 (UTC)
::::::{{ec}} - I just noticed {{cat|Unassessed articles}}, but the example is still valid:
::::::Live example:
::::::* [[Talk:Jain Software]] is categorized in {{cat|Unassessed articles}} due to <code><nowiki>{{WikiProject banner shell|class=}}</nowiki></code>.
::::::* [[Talk:Jain Software]] is removed from {{cat|Unassessed articles}} if <code><nowiki>{{WikiProject banner shell|class=|{{WikiProject AI Cleanup}}}}</nowiki></code> (for example) is used.
::::::* The same is true with and without the text "|class=".
::::::So either the logic that populates {{cat|Unassessed articles}} needs to be more robust (resilient against non-class WikiProjects), or a new category created that accomplishes the same thing. <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 15:29, 5 November 2024 (UTC)
::::::I think it's perfectly fine having assessed pages without a project that uses an assessment scale (after all, I think that is the point of [[WP:PIQA]]). An FA about {{tl|WP Caves}} (no <code>{{{class}}}</code>) is still an FA. <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 15:34, 5 November 2024 (UTC)
::::::I like the idea of a non-diffusing cat like {{cat|All unassessed articles}} directly containing all unassessed articles, and each of those articles in their respective WikiProject-diffused cats (if they exist) within. <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 15:49, 5 November 2024 (UTC)
:::::::{{Done}} I renamed the category. The catch-all category for unassessed articles will need to be done at the banner shell template, so will sandbox something over there — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 07:47, 12 November 2024 (UTC)
::::::::Coded in [[Module:Banner shell/sandbox]]. I assume we no longer need to populate [[:Category:Unassessed articles]] if we are using [[:Category:All unassessed articles]] — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 17:33, 16 November 2024 (UTC)
:::::::::Sounds good. Either cat is fine, as long as they're not both used. Reusing {{cat|Unassessed articles}} would probably be less work, but I'll leave that up to you. <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 14:27, 18 November 2024 (UTC)
== {{tl|High-use}} in automatic documentation ==
Could {{tl|High-use}} be added to the automatic documentation if the template appears on [https://en.wikipedia.org/wiki/Special:PrefixIndex/Module:Transclusion_count/data/ the appropriate subpage of Module:Transclusion count/data]? <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 14:56, 19 November 2024 (UTC)
:Working on [[Template:WikiProject Christianity/sandbox]] now — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 22:46, 19 November 2024 (UTC)
::Nice! <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 22:59, 19 November 2024 (UTC)
== WP China & Tibet ==
Do any other WPs show up as their own banner when set as a parameter of another like <syntaxhighlight lang="wikitext" inline>{{WikiProject China|tibet=yes}}</syntaxhighlight>? <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 14:43, 28 November 2024 (UTC)
:I can't think of any others — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 16:42, 28 November 2024 (UTC)
== Full admin protection? ==
{{ping|MSGJ|Gonnym}} IIUC, this module was restricted to admin editing because Gonnym did not adequately test their changes before going live? Admin-level protection has downstream (unintended) consequences. [[Module:WikiProject banner]] depends on [[Module:Portal]], which I have been maintaining for the past 2+ years. But now [[Module:Portal]] must be admin-level protected also, which means I have lost edit rights (because I am only a templateeditor). I know I can still ask admins to check in changes for me, it would still be better (IMO) to be able to edit [[Module:Portal]] directly.
Would it be possible to resolve the issue in a different way than restricting editing of [[Module:WikiProject banner]] only to admins? For example, could Gonnym agree to always test their changes before committing the code to the live Module?
Thoughts? — [[User:Hike395|hike395]] ([[User talk:Hike395|talk]]) 22:29, 29 November 2024 (UTC)
:A few comments.
:* I don't necessarily see any link between the protection of this module and Module:Portal.
:* There is no policy that templates with a certain number of transclusions should be fully protected. I once tried to start [[Wikipedia talk:High-risk templates#Should some templates be fully protected?|a discussion]] on this, but got no response. So currently it is entirely up to admin discretion. I know {{ul|Pppery}} has definite views on this.
:* I have tried to discuss my concerns with Gonnym and their talk page, but have not made much progress. Your suggestions sounds sensible to me.
:— Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 20:48, 6 December 2024 (UTC)
:: My belief has long been that the highest-risk templates on the project with millions to tens of millions of transclusions should be fully-protected (and also listed on [[WP:CASC]]). This view is only weakly held. The much-more-strongly-held position is the a template's dependencies must be protected at least as well as the base template, and [[Template:Portal]] (and hence [[Module:Portal]]) [https://en.wikipedia.org/w/index.php?search=hastemplate%3Aportal&title=Special%3ASearch&profile=advanced&fulltext=1&ns1=1 has 6mil of its 10mil transclusions on the talk namespace] (and hence presumably via [[Module:WikiProject banner]]), which establishes a dependency chain sufficient to bind the protection to the full protection here. {{pb}} For me, the reason for that position is about trust - the level of trust required to edit the highest-risk templates on the project is much greater than the level required to edit templates with a mere 5,000 transclusions. And while you of course could have pblocked Gonnym instead of full protection I think the recent incident proves my trust claim right by saying that Gonnym does not have that trust. [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 21:04, 6 December 2024 (UTC)
== Why do WikiProject banners link to portals anyway? ==
I cannot figure out why having WikiProject banners link to corresponding portals is helpful. When an editor is on a talk page, I can see them wanting information about how to edit articles that belong to a WikiProject, or asking questions at the corresponding WikiProject Talk page. I don't see why they would want to go to a Portal to get overview information on the topic. We generally want editors to bring off-wiki information into WP, rather than recycling information between pages.
I propose removing Portal links from WikiProject banners. What do other editors think? — [[User:Hike395|hike395]] ([[User talk:Hike395|talk]]) 06:43, 8 December 2024 (UTC)
:The first Portals were created in February 2005 and were originally set up as subpages of {{-r|Wikipedia:Wikiportal}}, such as [[Wikipedia:Wikiportal/Biology]], which I think was the first one. The Portal: namespace was created in August 2005, and existing Wikipedia:Wikiportal/... pages were moved there on 27 August, together with some templates that were only used for building Portal: pages.
:Some WikiProject banners have had portal boxes since 2006, e.g. {{tlx|WikiProject Trains}}, it's possible that some were given portal boxes in 2005. Some portals predate the corresponding WikiProjects, and I think that they served as a central discussion point until WikiProjects became more established. If a topic had both a Portal and a WikiProject, it was natural to provide a link between them. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 09:58, 8 December 2024 (UTC)
::In the early days of Wikipedia, it probably made sense to link to portals from this box. But now, both WikiProjects and Portals are well-established with very different aims. The link from article talk to corresponding Portal seems superfluous. — [[User:Hike395|hike395]] ([[User talk:Hike395|talk]]) 16:02, 8 December 2024 (UTC)
== Redundant class params & WP Ireland ==
[[Draft talk:Daire Scully]], [[Draft talk:Marion King]], [[Draft talk:Raj Vrinceanu]], and others have no parameters, yet show up in {{cat|WikiProject banners with redundant class parameter}}. The common WP between them all seems to be {{tl|WP Ireland}}. <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 12:07, 9 December 2024 (UTC)
:Most likely because of [https://en.wikipedia.org/w/index.php?title=Template:WikiProject_Ireland&diff=prev&oldid=1170552908 this edit] — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 12:32, 9 December 2024 (UTC)
== Cleaning up NA-class categories ==
Hi, at [[Wikipedia:Village pump (proposals)#Cleaning up NA-class categories]] there seems to be consensus about the removal of a number of NA-class categories from most pages. Can the editors here take a look if anything important is being missed in that discussion, and if not see how this can be implemented? [[User:Fram|Fram]] ([[User talk:Fram|talk]]) 14:52, 13 December 2024 (UTC)
:Ooh, this is timely, as we are making other changes to the category tree ("articles" -> "pages"). I will look through and respond with any comments — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 15:10, 13 December 2024 (UTC)
::Thanks! [[User:Fram|Fram]] ([[User talk:Fram|talk]]) 16:51, 13 December 2024 (UTC)
== Redlinked categories ==
The recent "articles vs. pages" activities here have resulted in the hypergeneration of an absolutely massive number of redlinked class-rating categories at [[Special:WantedCategories]], to the point where the latest run of that report features over 700 redlinks on it where it should normally have less than ''200'' — and while ''technically'' redlinked maintenance categories aren't as big of a deal as redlinked ''mainspace'' categories are, redlinked maintenance categories actively ''interfere'' with the process of ''finding'' redlinked mainspace categories in the list: the amount of eyeglazing scroll-scroll-scroll needed to bypass all the class-rating categories makes it easier to ''miss'' mainspace categories hiding in ''between'' the class-rating categories, and the entire report has a limit to how many categories it can find or list at any one time, so every time categories get left unresolved across more than one update of that report it gets pushed that much closer to the limit.
I do want to call attention to one specific small batch:
*{{cl|Mid-impact WikiProject Wikipedia essays pages articles}}
*{{cl|NA-impact WikiProject Wikipedia essays pages articles}}
*{{cl|High-impact WikiProject Wikipedia essays pages articles}}
*{{cl|Top-impact WikiProject Wikipedia essays pages articles}}
*{{cl|Low-impact WikiProject Wikipedia essays pages articles}} (which I temporarily created as a categoryredirect to the correctly-named version, but it's still not empty)
*{{cl|Unknown-impact WikiProject Wikipedia essays pages articles}}
But regardless of whether a category is "pages" ''or'' "articles", there's obviously no call for "pages articles", so this is just a straight-up error rather than an oversight on anybody's part.
Otherwise, the remainder are all either "FM-Class [project] pages" or "NA-Class [project] articles" categories that need to be either created if they're actually wanted, or get completely kiboshed if they're unwanted. I won't list them ''all'' here, as I'd be here for hours formatting them and this post would approach the size of a novel, but they can all be seen at [[Special:WantedCategories]] (where, just a reminder, the total number of entries is over 700, so it'll entail more than one page of results).
So could somebody associated with this project please take steps to either get them created if they're wanted or completely prevent their generation by the template if they're not, and could somebody please take steps to ensure that these changes don't keep spawning more and more redlinked categories in the future? It's just not a thing I can put up with working around, because these redlinks actively ''interfere'' with the process of cleaning up the more resolvable ones — it's a thing that needs to be resolved as soon as possible, because we can't just leave hundreds of redlinked categories sitting there unfixed for extended periods. Thanks. [[User:Bearcat|Bearcat]] ([[User talk:Bearcat|talk]]) 17:13, 13 December 2024 (UTC)
:Yes, we are aware of the issue. See also above. As soon as [[Wikipedia:Categories for discussion/Log/2024 December 7#Category:Category-Class articles]] closes, we can sort this mess out properly. Please bear with us for a couple more days — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 22:15, 13 December 2024 (UTC)
== auto parameter ==
Since bots should no longer add a class parameter to the banner and instead should add to the shell, the {{para|auto}} parameter should either be removed completely or moved to the banner shell. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 12:46, 15 December 2024 (UTC)
:Okay, I guess this makes sense. Are there any bots updating PIQA ratings? — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 14:17, 15 December 2024 (UTC)
::I have no idea. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 14:28, 15 December 2024 (UTC)
== Punctuated WPs not recognizing duplication ==
{{tl|WP Anti-war}}, {{tl|WP New York (state)}}, {{tl|WP U.S. Roads}}, etc. don't show in {{cat|Pages using WikiProject banner shell with duplicate banner templates}} if duplicated. <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 11:28, 13 December 2024 (UTC)
:The current pattern for capturing is <code><nowiki>'<span class="wpb%-project">([%w%s]*)</span>'</nowiki></code> and %w does not include punctuation marks. Could be updated in [[Module:Banner shell/sandbox]] — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 11:52, 13 December 2024 (UTC)
::{{Done}} <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 12:14, 13 December 2024 (UTC)
:::Would it be simpler to use something like <code>[^<]*</code> (any characters except <)? — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 12:30, 13 December 2024 (UTC)
::::Indeed it would...though I'd use <code>[^<>]*</code> just to be slightly safer. <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 13:06, 13 December 2024 (UTC)
Why isn't the essays banner recognised as a duplicate on [[Wikipedia talk:Nationality of people from the United Kingdom]]? — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 13:03, 17 December 2024 (UTC)
:Is it a namespace issue? {{tl|WP Wikipedia essays}} registers as a dup if applied in mainspace. <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 13:59, 17 December 2024 (UTC)
::Possibly, but I'm not immediately seeing any code that would exclude other talk namespaces — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 14:15, 17 December 2024 (UTC)
:::Am I missing something? I don't see two of that banners there. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 14:37, 17 December 2024 (UTC)
::::I'm being an idiot. I meant to ask why it is not identifying it as being outside the banner shell — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 14:45, 17 December 2024 (UTC)
:::::It's because it's using the redirect name. You'll need to check the code to see how you are tracking this. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 14:55, 17 December 2024 (UTC)
:::::Yeah, redirects aren't recognized, only canonical names. <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span> 14:56, 17 December 2024 (UTC)
|