Module talk:WikiProject banner
If you wish to discuss the behaviour of the project banner inside the banner shell, then you may wish to post at Template talk:WikiProject banner shell instead. |
This module does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||
|
To-do list for Module:WikiProject banner:
|
This page has archives. Sections older than 30 days may be automatically archived by Lowercase sigmabot III when more than 5 sections are present. |
Tracking category proposed
editThere 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 (MSGJ · talk) 17:38, 29 June 2024 (UTC)
- Originating discussion @ User talk:Kanashimi/Archive 1#Cewbot is moving WikiProject banners outside of WPBS. ~ Tom.Reding (talk ⋅dgaf) 18:12, 9 July 2024 (UTC)
- If there is such a tracking category, my bots will automatically repair them by default. 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 (MSGJ · talk) 07:11, 28 August 2024 (UTC)
- Could there be a check after Articles with WikiProject banners but without a banner shell is assigned, to
getContent()
on the current page and look for {{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. ~ Tom.Reding (talk ⋅dgaf) 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 (MSGJ · talk) 12:57, 7 September 2024 (UTC)
- I see. As luck would have it, I was testing Articles with WikiProject banners but without a banner shell on a probably-misbehaving {{WikiProject Occupations}} (no reason other than that's what was in the nearest browser window), which displayed the cat when outside of the WPBS. {{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. ~ Tom.Reding (talk ⋅dgaf) 17:06, 7 September 2024 (UTC)
- I have asked for some help at User talk:Aidan9382 — Martin (MSGJ · talk) 21:55, 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 (MSGJ · talk) 12:57, 7 September 2024 (UTC)
- Could there be a check after Articles with WikiProject banners but without a banner shell is assigned, to
I have written some code on my sandbox which might work.
If you type {{#invoke:Sandbox/MSGJ|main|WikiProject Finland}}
it will look at the content of the current page and return ...
true
if it finds {{WikiProject Finland}} anywhere outside of the banner shell,true
there is no banner shell (so the template cannot be in a shell)false
if it is inside the banner shell,false
if {{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 (MSGJ · talk) 09:04, 19 September 2024 (UTC)
%b{}
very cool!- escaping
%|
in Lua is unnecessary - for
mw.ustring.find(content_without_shell, '{{%s*' .. banner_name .. '%s*[%|}]')
to work for all WikiProjects, escaping special characters inbanner_name
will be necessary to find {{WP New York (state)}}, {{WP C/C++}}, and the like. Periods shouldn't need escaping though, since they'll just match themselves.
- ~ Tom.Reding (talk ⋅dgaf) 16:58, 19 September 2024 (UTC)
- Escaping these magic characters is beyond me, I'm afraid. I have tried and failed — Martin (MSGJ · talk) 21:16, 19 September 2024 (UTC)
- Got it working! Check your sandbox for details. ~ Tom.Reding (talk ⋅dgaf) 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 (example) so I don't know how you have done it with just two — Martin (MSGJ · talk) 08:02, 20 September 2024 (UTC)
- Ah, there are additional layers of evaluation to contend with in AC, which require more
%
(%%%%
evaluates to%%
evaluates to%
). - Also, literal "%" need to be first in
special_chars
, or else you end up escaping them recursively an unexpected/unwanted # of times. ~ Tom.Reding (talk ⋅dgaf) 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 (MSGJ · talk) 13:51, 20 September 2024 (UTC)
- Ah, there are additional layers of evaluation to contend with in AC, which require more
- 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 (example) so I don't know how you have done it with just two — Martin (MSGJ · talk) 08:02, 20 September 2024 (UTC)
- Got it working! Check your sandbox for details. ~ Tom.Reding (talk ⋅dgaf) 00:46, 20 September 2024 (UTC)
- Escaping these magic characters is beyond me, I'm afraid. I have tried and failed — Martin (MSGJ · talk) 21:16, 19 September 2024 (UTC)
Done and Category:WikiProject banners placed outside the banner shell (0) created — Martin (MSGJ · talk) 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 (MSGJ · talk) 11:16, 23 September 2024 (UTC)
- You could maybe do something like @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. 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 (example) — Martin (MSGJ · talk) 11:25, 23 September 2024 (UTC)
- Ah, then it won't help there indeed. Gonnym (talk) 11:41, 23 September 2024 (UTC)
- That appears to have been a Cewbot bug, followed by an incomplete fix by Widefox (talk · contribs). --Redrose64 🌹 (talk) 16:07, 23 September 2024 (UTC)
- Hmm, looks like WP:RATER didn't play well with the Cewbot buggy rating. Widefox; talk 18:16, 23 September 2024 (UTC)
- That appears to have been a Cewbot bug, followed by an incomplete fix by Widefox (talk · contribs). --Redrose64 🌹 (talk) 16:07, 23 September 2024 (UTC)
- Ah, then it won't help there indeed. Gonnym (talk) 11:41, 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 (example) — Martin (MSGJ · talk) 11:25, 23 September 2024 (UTC)
- Could we ignore just the namespace(s) with the most FPs instead? ~ Tom.Reding (talk ⋅dgaf) 14:04, 23 September 2024 (UTC)
- Let's ignore any namespace where there might feasibly be banners used as examples or for testing — Martin (MSGJ · talk) 15:34, 23 September 2024 (UTC)
- You could maybe do something like @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. Gonnym (talk) 11:20, 23 September 2024 (UTC)
Unmatched close-bracket error
editProbably related to the recent update. This helped, sort of - it moved the error to a different location, but it's still present. The problem comes from [[]]
in |comments=[[]]
. The number in the error refers to the horizontal position of the error, and not a Unicode character #. ~ Tom.Reding (talk ⋅dgaf) 15:37, 23 September 2024 (UTC)
- This is bad, and I have no idea how to fix it. @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 (MSGJ · talk) 07:38, 24 September 2024 (UTC)
- @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? Aidan9382 (talk) 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 (MSGJ · talk) 12:20, 25 September 2024 (UTC)
- @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? Aidan9382 (talk) 16:29, 24 September 2024 (UTC)
- Your fix seems to have worked Tom. Where do you still see the error? — Martin (MSGJ · talk) 07:44, 24 September 2024 (UTC)
- Oops, I forgot to create/check Template:WikiProject Lithuania/sandbox... Excellent! ~ Tom.Reding (talk ⋅dgaf) 10:29, 24 September 2024 (UTC)
Simplification
edit@Tom.Reding: please check this possible simplification [1] — Martin (MSGJ · talk) 12:19, 25 September 2024 (UTC)
- This version also has the advantage of not falsely flagging Talk:100% (band) — Martin (MSGJ · talk) 12:27, 25 September 2024 (UTC)
- Interesting...using the loop method,
banner_name_escaped:gsub()
was the problem, since it's equivalent tostring.gsub()
, which returns a '�' when trying to match the literal '%'.mw.ustring.gsub()
however, behaves as expected, returning '%%'. This distinction goes away when using a custom[set]
though, and all of those 3 gsub calls return the desired '%%'. - I generally don't like using
mystring:gsub()
, since I can't be bothered to remember which.gsub
it's calling, and sometimes it matters. ~ Tom.Reding (talk ⋅dgaf) 14:24, 25 September 2024 (UTC) - The
[set]
method is definitely faster and less error-prone, so win-win. ~ Tom.Reding (talk ⋅dgaf) 14:25, 25 September 2024 (UTC)
- Interesting...using the loop method,
Processing pass done
editI'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> tags (e.g. to use as examples in talk page discussions). Harryboyles 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 (MSGJ · talk) 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 (MSGJ · talk) 20:29, 7 October 2024 (UTC)
Category:WikiProject banners placed outside the banner shell has been cleared. Thanks guys! — Martin (MSGJ · talk) 11:42, 9 October 2024 (UTC)
auto doc category
editCan |DOC=auto
also add the template to the project category? Either Category:WikiProject project
or Category:WikiProject project templates
category. 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 (MSGJ · talk) 15:35, 2 June 2024 (UTC)
- Do you want it to check to see if
Category:WikiProject project templates
exists first. If so use it, otherwise useCategory:WikiProject project
? — Martin (MSGJ · talk) 08:24, 4 June 2024 (UTC)- Yes, I think it's best to place it in the templates category if it exists. 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 (MSGJ · talk) 08:52, 4 June 2024 (UTC)
- Great, looks good! Gonnym (talk) 09:19, 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 (MSGJ · talk) 08:52, 4 June 2024 (UTC)
- Yes, I think it's best to place it in the templates category if it exists. Gonnym (talk) 08:30, 4 June 2024 (UTC)
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 (MSGJ · talk) 12:09, 10 August 2024 (UTC)
- Yeah I'm taking a look at these. So far some sent to CfD, RM, or MfD. Gonnym (talk) 12:20, 10 August 2024 (UTC)
- @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
|PROJECT_LINK=Wikipedia:GLAM/Philadelphia Museum of Art
can be placed there. That should remove most pages in the category. 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 (MSGJ · talk) 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 (MSGJ · talk) 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. 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 (MSGJ · talk) 07:38, 4 September 2024 (UTC)
- Is Module:WikiProject banner/templatepage/sandbox ready to deploy or not needed? — Martin (MSGJ · talk) 23:04, 5 October 2024 (UTC)
- I think it's ready for deploy. Gonnym (talk) 13:17, 30 October 2024 (UTC)
- The CSS should still be moved though. Gonnym (talk) 13:37, 30 October 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. Gonnym (talk) 23:02, 3 September 2024 (UTC)
Category:Pages using WikiProject [insert project] with unknown parameters
editIn 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 120,000 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? BombCraft8 (talk) (contributions) 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 (MSGJ · talk) 14:12, 4 September 2024 (UTC)
- Ok BombCraft8 (talk) (contributions) 01:19, 5 September 2024 (UTC)
- A fix for this is now in the sandbox — Martin (MSGJ · talk) 09:07, 5 September 2024 (UTC)
- Thanks BombCraft8 (talk) (contributions) 13:07, 5 September 2024 (UTC)
- This is now deployed, so they should start clearing out of the wanted categories page soon — Martin (MSGJ · talk) 11:37, 7 September 2024 (UTC)
- Ok, thanks BombCraft8 (talk) (contributions) 21:00, 7 September 2024 (UTC)
- @MSGJ How long should it take for them to clear out on that page? Rjjiii (talk) 05:58, 3 November 2024 (UTC)
- Ok, thanks BombCraft8 (talk) (contributions) 21:00, 7 September 2024 (UTC)
- This is now deployed, so they should start clearing out of the wanted categories page soon — Martin (MSGJ · talk) 11:37, 7 September 2024 (UTC)
- Thanks BombCraft8 (talk) (contributions) 13:07, 5 September 2024 (UTC)
- A fix for this is now in the sandbox — Martin (MSGJ · talk) 09:07, 5 September 2024 (UTC)
- Ok BombCraft8 (talk) (contributions) 01:19, 5 September 2024 (UTC)
DOC=auto and inactive banners
edit|DOC=auto
does not work with inactive banners (see Template:WikiProject University of Florida). 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 (MSGJ · talk) 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. Gonnym (talk) 16:43, 11 September 2024 (UTC)
- See also {{WikiProject Reenactment}}. Same problem, I think. It needs documentation and a category. – Jonesey95 (talk) 14:55, 14 September 2024 (UTC)
- Yes I know this needs sorting. Just need some time to look at it ... — Martin (MSGJ · talk) 08:18, 15 September 2024 (UTC)
- See also {{WikiProject Reenactment}}. Same problem, I think. It needs documentation and a category. – Jonesey95 (talk) 14:55, 14 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. Gonnym (talk) 16:43, 11 September 2024 (UTC)
The categorisation is now fixed (I hope!). If someone can write some documentation for inactive banners, this can be added to /templatepage — Martin (MSGJ · talk) 09:15, 23 September 2024 (UTC)
- Bumping this to avoid it being archived. – Jonesey95 (talk) 15:55, 7 November 2024 (UTC)
- Still waiting for someone to write the documentation — Martin (MSGJ · talk) 16:06, 7 November 2024 (UTC)
Override importance to NA on non-articles
editThere is a suggestion (link) that importance ratings e.g. |importance=mid
should be ignored on non-articles, like redirects. At the moment the module will automatically apply NA-importance to these pages if no importance is specified, but it will not override a specified importance. What do people think? — Martin (MSGJ · talk) 07:33, 16 September 2024 (UTC)
- The suggestion makes sense, and overridden pages can be filtered into Category:Pages with conflicting importance ratings. As long as any WikiProjects that wish to use their own importance scheme can use a custom importance mask, I don't see a problem. I would just be careful about not emptying that category too quickly, to give WikiProjects that do importance-rate #Rs, cats, templates, etc., time to make their own masks. ~ Tom.Reding (talk ⋅dgaf) 11:26, 16 September 2024 (UTC)
- If the rating is ignored, then it doesn't create a conflict. For example if you type
|class=C
on a redirect, then that will be ignored and it will still be classified as a redirect, and it does not trigger the conflicting ratings category. Should that be the same for ignored importance ratings? — Martin (MSGJ · talk) 11:50, 16 September 2024 (UTC)- If any and all WikiProjects that currently use importance on non-articles (idk what that # is) have their importance masks in place, then sure, importance ratings can be ignored. ~ Tom.Reding (talk ⋅dgaf) 12:38, 16 September 2024 (UTC)
- If the rating is ignored, then it doesn't create a conflict. For example if you type
- Are there any projects that currently categorize their redirects by importance? Gonnym (talk) 12:37, 16 September 2024 (UTC)
- None intentionally, as far as I am aware. The only ones I have encountered have been left over from a move or merge of a page. If we did this, it would affect all non-articles, i.e. disambiguation pages, templates, portals, etc. would all get NA-importance automatically. So we should consider projects like Template:WikiProject Templates, Template:WikiProject Portals, etc. which may be tracking the importance of these pages. If they are, then a custom importance mask can be used — Martin (MSGJ · talk) 13:49, 16 September 2024 (UTC)
- What is a custom importance mask? · · · Peter Southwood (talk): 04:00, 30 September 2024 (UTC)
- Yes, WikiProject Underwater diving classifies redirects with the potential to become full articles with the importance the full article would have, thereby giving anyone who might be considering converting to a full article some idea of whether it would be worth the effort. · · · Peter Southwood (talk): 04:47, 30 September 2024 (UTC)
- None intentionally, as far as I am aware. The only ones I have encountered have been left over from a move or merge of a page. If we did this, it would affect all non-articles, i.e. disambiguation pages, templates, portals, etc. would all get NA-importance automatically. So we should consider projects like Template:WikiProject Templates, Template:WikiProject Portals, etc. which may be tracking the importance of these pages. If they are, then a custom importance mask can be used — Martin (MSGJ · talk) 13:49, 16 September 2024 (UTC)
If we are going to do this, then we need the check all possible projects which are tracking non-articles by importance. If there are any, then they need to be switched to a custom importance mask. I will add candidates to check to the table below — Martin (MSGJ · talk) 08:05, 19 September 2024 (UTC)
Okay so we can do this - will look at coding it next week. It will be an opportunity to move away from using {{importance mask}} and use a Lua version instead — Martin (MSGJ · talk) 13:59, 20 September 2024 (UTC)
- Proposed code in sandbox — Martin (MSGJ · talk) 14:34, 24 September 2024 (UTC)
- Just to confirm. The new version will force NA importance on any non-article, but it will still permit NA to be used on an article. Is this correct? Would it be better to prohibit NA in article space, in which case NA would resolve to Unknown? — Martin (MSGJ · talk) 12:24, 25 September 2024 (UTC)
- NA on an article sounds strange. I'd like to see an actual usage where one would set this. It would seem that if an article is NA then it's pretty much not notable for inclusion in Wikipedia (or that the project shouldn't have tagged it). Regarding the other namespaces, any project that wants to give importance to non-articles should have a custom mask? Gonnym (talk) 09:09, 26 September 2024 (UTC)
- I tend to agree. NA on an article would not make much sense, and if any project wanted to do that, they should set up a custom mask. — Martin (MSGJ · talk) 09:28, 26 September 2024 (UTC)
- NA on an article sounds strange. I'd like to see an actual usage where one would set this. It would seem that if an article is NA then it's pretty much not notable for inclusion in Wikipedia (or that the project shouldn't have tagged it). Regarding the other namespaces, any project that wants to give importance to non-articles should have a custom mask? Gonnym (talk) 09:09, 26 September 2024 (UTC)
NA importance (break)
editPages like List of storms named Ningning which is a set index article, are often assessed with NA-importance. These will become unknown importance if we change this. Is that a problem? — Martin (MSGJ · talk) 21:53, 26 September 2024 (UTC)
- Set index pages should probably be treated like disambiguation pages, unless some projects are actually setting different importance to them. Gonnym (talk) 22:39, 26 September 2024 (UTC)
- Couldn't agree more. I have long argued that set index articles should be classified as disambiguation pages, because that is what 99% of them are. There may be a few real SIAs with actual content, but most are just a collection of links. The easiest way to do this, is make an edit like this, which would convert all the list articles on surnames into disambiguation pages in one swoop. But as you can see I was reverted back in 2023, and many kB of discussion ensued which did not reach a satisfactory conclusion — Martin (MSGJ · talk) 10:42, 27 September 2024 (UTC)
- Another option is to have a list like Module:Disambiguation/templates for Category:Set index article templates so the module can detect them. Gonnym (talk) 10:54, 27 September 2024 (UTC)
- We already have that list and can detect them. But the problem is that set index articles are supposed to be articles and shouldn't be getting NA importance — Martin (MSGJ · talk) 11:05, 27 September 2024 (UTC)
- Well in that case, an article shouldn't get NA importance and should get categorized as unknown (though again, I personally think they should be detected as set index and set to NA). Gonnym (talk) 11:27, 27 September 2024 (UTC)
- If we make this change I anticipate some queries/complaints along the lines of "why can't I set NA importance for this set index article?" I think we are taking the reasonable and appropriate action, but the mis-classification of SIAs continues to cause problems ... To reduce confusion, let's keep the possibility of assessing articles with NA-importance for now. If the SIA/disambig issue is ever sorted properly, we can revisit this — Martin (MSGJ · talk) 14:04, 27 September 2024 (UTC)
- Well in that case, an article shouldn't get NA importance and should get categorized as unknown (though again, I personally think they should be detected as set index and set to NA). Gonnym (talk) 11:27, 27 September 2024 (UTC)
- We already have that list and can detect them. But the problem is that set index articles are supposed to be articles and shouldn't be getting NA importance — Martin (MSGJ · talk) 11:05, 27 September 2024 (UTC)
- Another option is to have a list like Module:Disambiguation/templates for Category:Set index article templates so the module can detect them. Gonnym (talk) 10:54, 27 September 2024 (UTC)
- Couldn't agree more. I have long argued that set index articles should be classified as disambiguation pages, because that is what 99% of them are. There may be a few real SIAs with actual content, but most are just a collection of links. The easiest way to do this, is make an edit like this, which would convert all the list articles on surnames into disambiguation pages in one swoop. But as you can see I was reverted back in 2023, and many kB of discussion ensued which did not reach a satisfactory conclusion — Martin (MSGJ · talk) 10:42, 27 September 2024 (UTC)
Done — Martin (MSGJ · talk) 21:57, 28 September 2024 (UTC)
Hang on a bit here. WikiProject Underwater diving uses importance on redirects to indicate which could/should reasonably be converted to full articles some day, and how important the topic is to the project. Are you classifying redirects as non-articles? How will we visibly indicate which redirects are potentially articles and which are not? · · · Peter Southwood (talk): 03:45, 30 September 2024 (UTC)
- Yes, all redirects are classified as non-articles. We can set up a custom importance mask for your project, and you can continue to assess importance in any way you wish — Martin (MSGJ · talk) 07:56, 30 September 2024 (UTC)
- That seems an entirely reasonable option, thanks for your response. My template coding skills are rudimentary, so I may have to come bck with some questions about how it works if I don't manage to get it to do what is needed. Cheers · · · Peter Southwood (talk): 14:54, 30 September 2024 (UTC)
- It's already done. So you won't need to edit it, unless you want to make any other changes — Martin (MSGJ · talk) 15:12, 30 September 2024 (UTC)
- Yes, thanks, I understand, and don't expect any problems or need for changes, but you never know... · · · Peter Southwood (talk): 15:29, 30 September 2024 (UTC)
- It's already done. So you won't need to edit it, unless you want to make any other changes — Martin (MSGJ · talk) 15:12, 30 September 2024 (UTC)
- That seems an entirely reasonable option, thanks for your response. My template coding skills are rudimentary, so I may have to come bck with some questions about how it works if I don't manage to get it to do what is needed. Cheers · · · Peter Southwood (talk): 14:54, 30 September 2024 (UTC)
- Done at Template:WikiProject Underwater diving/importance. This should now be handling importance the same way it was before — Martin (MSGJ · talk) 08:02, 30 September 2024 (UTC)
It looks like the change has caused some issues with WP:RATER, in that it is now impossible for the script to assign values to importance other than NA to all articles, not just set index and redirects (see talk page discussion there). Reconrabbit 17:38, 30 September 2024 (UTC)
- Articles should not be given NA. If it's NA for your project, then your project shouldn't tag that page. Gonnym (talk) 17:43, 30 September 2024 (UTC)
- That's not what they are saying. They are saying that Rater will only allow them to rate NA. I can confirm that I am seeing this too, but need to look into why this might be — Martin (MSGJ · talk) 20:28, 30 September 2024 (UTC)
- The change to this module does seem to have mucked up rater. I have no idea why, because the module is working just fine. But perhaps we should consider a partial revert to allow time for @Evad37 to look into this and apply a fix — Martin (MSGJ · talk) 10:17, 1 October 2024 (UTC)
- That seems a prudent response, Rater is quite heavily used and there in no great urgency for this change, Cheers, · · · Peter Southwood (talk): 12:28, 1 October 2024 (UTC)
- I have reverted the change to the importance mask (although I still can't think of any way this could have an impact). Please let me know if you notice an improvement to rater? — Martin (MSGJ · talk) 17:38, 1 October 2024 (UTC)
- It allows an importance to be allocated to a redirect for Wikiproject underwater diving, so OK on that count. · · · Peter Southwood (talk): 05:29, 2 October 2024 (UTC)
- I have reverted the change to the importance mask (although I still can't think of any way this could have an impact). Please let me know if you notice an improvement to rater? — Martin (MSGJ · talk) 17:38, 1 October 2024 (UTC)
- That seems a prudent response, Rater is quite heavily used and there in no great urgency for this change, Cheers, · · · Peter Southwood (talk): 12:28, 1 October 2024 (UTC)
- I'm just going to toss in a general comment that supports allowing projects to tag the importance of Drafts and Redirects. In the former situation, I will find drafts from the New Article reports and tag them appropriately with all of the desired details. Then when someone reviews it, that editor only has to assign a quality rating. I find that well-meaning people don't always know what importance to assign when they aren't active members of a project, and I'll have to go tweak the rating later. Also, the importance rating can serve as an indicator of which drafts should get attention to push them across the finish line as articles.
- As for redirects, it's similar. Some redirects have possibilities for expansion into future articles, and if we can rate them by importance now, it gives some indication on which should be prioritized over others. Not every project may see the utility in this, but some will. Removing this possibility across the board disallows projects to use this potential tool. Imzadi 1979 → 18:27, 2 October 2024 (UTC)
- I agree on both counts, but this tends to be different for different projects. Some do not allocate an importance at all, others find it a useful tool. I would suggest that only non-articles that have the potential to become articles can usefully be allocated an importance, and all others should probably be rated as NA, while all actual articles should have a non-NA rating if the project allocates importance. If the project does not allocate importance, then no importance should be the only and automatic rating, and no options are needed. · · · Peter Southwood (talk): 04:08, 3 October 2024 (UTC)
- Importance for drafts and redirects (and userspace drafts?) sounds reasonable for the reasons stated. I guess it depends on how many projects are actually doing this. If it's common, then we should support this as standard. It it's niche, then those projects can easily use a custom mask — Martin (MSGJ · talk) 17:29, 3 October 2024 (UTC)
- We now have the green light to reimplement this change. So we need to decide whether to allow importance ratings for certain non-articles, e.g. redirects and drafts, or treat all non-articles as NA. Does anyone else have any opinions on this, or should we try WT:COUNCIL? — Martin (MSGJ · talk) 22:58, 5 October 2024 (UTC)
NA importance (break 2)
editJust to make sure that everyone is board with this change, the table below clarifies the proposed output in different scenarios, as I understand it — Martin (MSGJ · talk) 09:33, 6 October 2024 (UTC)
- looks ok to me. · · · Peter Southwood (talk): 13:01, 6 October 2024 (UTC)
- This is now coded on the sandbox — Martin (MSGJ · talk) 12:01, 7 October 2024 (UTC)
- Done. Diving should now be able to go back to the standard importance mask (unless there is anything else non-standard that you want to do) — Martin (MSGJ · talk) 20:31, 7 October 2024 (UTC)
- Does that require any action from us? · · · Peter Southwood (talk): 05:39, 9 October 2024 (UTC)
Page type | Valid input, e.g. "mid" | Invalid/blank input | Input "na" |
---|---|---|---|
Articles | Mid | Unknown | NA[a] |
Redirects & drafts | Mid[b] | NA | NA |
All other pages | NA | NA | NA |
Template:WAP
editNot 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). Gonnym (talk) 19:38, 1 October 2024 (UTC)
- Perhaps soft-redirects off-wiki should be set up at the standard WPP locations -- 65.92.246.77 (talk) 22:46, 19 October 2024 (UTC)
- Do you mean on-wiki? — Martin (MSGJ · talk) 13:32, 20 October 2024 (UTC)
- Yes, otherwise, the module wouldn't find the correct pages. -- 65.92.246.77 (talk) 18:06, 20 October 2024 (UTC)
- Do you mean on-wiki? — Martin (MSGJ · talk) 13:32, 20 October 2024 (UTC)
listas
editIs there a way to set separate sort keys for different wikiprojects? I get the general sortkey from {{WPBS}}, but that doesn't always seem the best for each wikiproject contained within -- 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 (MSGJ · talk) 20:48, 2 October 2024 (UTC)
- The standard doc follows below. --Redrose64 🌹 (talk) 21:34, 2 October 2024 (UTC)
- listas – This parameter, which is the equivalent of the DEFAULTSORT sortkey that should be placed on all biographical articles, is a sortkey for the article talk page (e.g. for John Smith, use
|listas=Smith, John
so that the talk page will show up in the S's and not the J's of the various assessment and administrative categories). This is important because it is one source used by those who set DEFAULTSORT on the article; consider also setting the DEFAULTSORT for the article when setting this parameter. For more information about this, please see Wikipedia:Categorization of people § Ordering names in a category.
If the article is using {{WikiProject banner shell}} then it is preferable to add|listas=
to that template instead of a project banner template. Putting the parameter on more than one template is not required.
Is there a way to set a task force as inactive within this module?
editSee Template talk:WikiProject Cricket#edittemplateprotected, where an editor says 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. – 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 (MSGJ · talk) 11:56, 4 October 2024 (UTC)
invert parenthesis on inactive WikiProject bubble
editUser:Matrix made 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 (MSGJ · talk) 18:11, 9 October 2024 (UTC)
- @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(!) ping onewhen replying {user - talk? -
uselesscontributions} 18:13, 9 October 2024 (UTC)- I don't think it works. —Matrix(!) ping onewhen replying {user - talk? -
uselesscontributions} 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 (MSGJ · talk) 18:26, 9 October 2024 (UTC)
- @MSGJ: calm down mate it was an honest error :/ —Matrix(!) ping onewhen replying {user - talk? -
uselesscontributions} 18:41, 9 October 2024 (UTC) - @MSGJ: All right, I got it working now and checked with testcases, everything looks fine to you? —Matrix(!) ping onewhen replying {user - talk? -
uselesscontributions} 19:03, 9 October 2024 (UTC)- Please explain what "invert parenthesis" means? I cannot see any difference on the testcases — Martin (MSGJ · talk) 12:03, 10 October 2024 (UTC)
- I'm curious as well. I created {{WikiProject Occupations/sandbox}}, since that was the first inactive WP that came to mind. ~ Tom.Reding (talk ⋅dgaf) 13:37, 10 October 2024 (UTC)
- @MSGJ and 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 "(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(!) ping onewhen replying {user - talk? -
uselesscontributions} 16:34, 10 October 2024 (UTC)- I see no difference between the testcase & Wikipedia talk:Logos. Which skin(s) does your change affect? ~ Tom.Reding (talk ⋅dgaf) 17:27, 10 October 2024 (UTC)
- @Tom.Reding: Are you using Vector 2022 dark mode as was specified earlier? —Matrix(!) ping onewhen replying {user - talk? -
uselesscontributions} 18:18, 10 October 2024 (UTC)- @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. ~ Tom.Reding (talk ⋅dgaf) 17:34, 11 October 2024 (UTC)
- @Tom.Reding: I created an Imgur for you. Look carefully at the parenthesis saying "inactive". First is WT:Logos, second is testcases. —Matrix(!) ping onewhen replying {user - talk? -
uselesscontributions} 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 (MSGJ · talk) 07:47, 12 October 2024 (UTC)
- @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. —Matrix(!) ping onewhen replying {u - t? -
uselessc} 11:11, 30 October 2024 (UTC)
- @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. —Matrix(!) ping onewhen replying {u - t? -
- 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 (MSGJ · talk) 07:47, 12 October 2024 (UTC)
- @Tom.Reding: I created an Imgur for you. Look carefully at the parenthesis saying "inactive". First is WT:Logos, second is testcases. —Matrix(!) ping onewhen replying {user - talk? -
- @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. ~ Tom.Reding (talk ⋅dgaf) 17:34, 11 October 2024 (UTC)
- @Tom.Reding: Are you using Vector 2022 dark mode as was specified earlier? —Matrix(!) ping onewhen replying {user - talk? -
- I see no difference between the testcase & Wikipedia talk:Logos. Which skin(s) does your change affect? ~ Tom.Reding (talk ⋅dgaf) 17:27, 10 October 2024 (UTC)
- @MSGJ: Any objections to implementing this edit? —Matrix(!) ping onewhen replying {user - talk? -
uselesscontributions} 19:11, 11 October 2024 (UTC)- implementing now —Matrix(!) ping onewhen replying {user - talk? -
uselesscontributions} 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 (MSGJ · talk) 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. —Matrix(!) ping onewhen replying {u - t? -
uselessc} 11:14, 30 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. —Matrix(!) ping onewhen replying {u - t? -
- I see you went ahead with this change, despite unanswered questions from myself and Tom.Reding on this talk page — Martin (MSGJ · talk) 17:12, 17 October 2024 (UTC)
- @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. —Matrix(!) ping onewhen replying {u - t? -
uselessc} 11:13, 30 October 2024 (UTC)- @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. ~ Tom.Reding (talk ⋅dgaf) 12:01, 30 October 2024 (UTC)
- @Tom.Reding: The root cause of the black parenthesis is the following code: 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. —Matrix(!) ping onewhen replying {u - t? -
.wpb-header-bubbles { border-radius: .5em; padding: 0 .3em; margin-left: 0.5em; white-space: nowrap; font-weight: normal; color: black; }
uselessc} 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? Gonnym (talk) 13:16, 30 October 2024 (UTC)
- Bottom is after my change. —Matrix(!) ping onewhen replying {u - t? -
uselessc} 16:59, 30 October 2024 (UTC)
- Bottom is after my change. —Matrix(!) ping onewhen replying {u - t? -
- Just to be clear, in the image example you gave, is the top after your change or the bottom? Gonnym (talk) 13:16, 30 October 2024 (UTC)
- @Tom.Reding: The root cause of the black parenthesis is the following code:
- @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. ~ Tom.Reding (talk ⋅dgaf) 12:01, 30 October 2024 (UTC)
- @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. —Matrix(!) ping onewhen replying {u - t? -
- You still haven't explained what this does. We can't see any difference on the test cases — Martin (MSGJ · talk) 16:47, 16 October 2024 (UTC)
- implementing now —Matrix(!) ping onewhen replying {user - talk? -
- Please explain what "invert parenthesis" means? I cannot see any difference on the testcases — Martin (MSGJ · talk) 12:03, 10 October 2024 (UTC)
- @MSGJ: calm down mate it was an honest error :/ —Matrix(!) ping onewhen replying {user - talk? -
- I don't think it works. —Matrix(!) ping onewhen replying {user - talk? -
Importance assessment
editWould it be possible to make a way to suppress the importance assessment of List-class articles to Low-importance irregardless of the parameter. Vestrian24Bio (TALK) 16:25, 25 October 2024 (UTC)
- For info, this would implement the standard stated at WP:CRICIS, as also discussed at CFD Oct 20. – Fayenatic London 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
|class=list
you will automatically assign low importance, and it would be impossible to override that? — Martin (MSGJ · talk) 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. – Fayenatic London 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 (MSGJ · talk) 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 (MSGJ · talk) 21:21, 28 October 2024 (UTC)
- @Fayenatic london: if you still want to do this, then you can deploy that sandbox code and it should work fine now — Martin (MSGJ · talk) 20:59, 10 November 2024 (UTC)
- @MSGJ: thank you! Please clarify, do I just need to insert
|IMPORTANCE_SCALE = subpage
, 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. – Fayenatic London 22:23, 10 November 2024 (UTC)- You're quite right, I've changed the 2nd line to Low. And it's
|IMPORTANCE_SCALE=subpage
that you need. No idea what @Vestrian24Bio is doing in the sandbox. They seem to be adding a million task forces — Martin (MSGJ · talk) 10:36, 11 November 2024 (UTC)- The sandbox version is to add the newly created taskforces and some new notes as well. Vestrian24Bio (TALK) 12:34, 11 November 2024 (UTC)
- You're quite right, I've changed the 2nd line to Low. And it's
- @MSGJ: thank you! Please clarify, do I just need to insert
- 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. – Fayenatic London 21:05, 28 October 2024 (UTC)
Module work before next sync
editThe 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 (changes)
- Modified the class usage check to catch non-article usages of the
|class=
parameter and add them to the redundant_class category. - Converted two hardcoded categories to use the config file.
- Modified the class usage check to catch non-article usages of the
- Module:WikiProject banner/config/sandbox (changes)
- Added the two hardcoded category names to the config file.
- Module:WikiProject banner/templatepage/sandbox (changes)
- Added automatic category to templates of Wikipedia:GLAM, which were using a different naming convention.
- Module:Banner shell/sandbox (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 (changes)
- Added blp strings to config file.
- Module:WikiProject banner/sandbox/styles.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:
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 (MSGJ · talk) 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. 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 (MSGJ · talk) 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? ~ Tom.Reding (talk ⋅dgaf) 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 (MSGJ · talk) 09:50, 3 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? ~ Tom.Reding (talk ⋅dgaf) 10:51, 2 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 (MSGJ · talk) 22:31, 1 November 2024 (UTC)
- RE 3, Done — Martin (MSGJ · talk) 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 (MSGJ · talk) 23:05, 1 November 2024 (UTC)
- RE 5, see 4. RE 6, there are no changes to review here — Martin (MSGJ · talk) 23:08, 1 November 2024 (UTC)
Featured page status
editI 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. 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 (MSGJ · talk) 12:29, 4 November 2024 (UTC)
Auto classifying SIAs as List-class
editCurrently 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 (MSGJ · talk) 08:35, 1 November 2024 (UTC)
- First attempt at code is on the sandbox. Demonstration below — Martin (MSGJ · talk) 22:30, 7 November 2024 (UTC)
- @Mrfoogles: FYI — Martin (MSGJ · talk) 22:31, 7 November 2024 (UTC)
This set index article is rated List-class on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||||||
|
- 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 {{Wikiproject banner shell}}, {{Wikiproject <insert wikiproject here>}}, 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. 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 (MSGJ · talk) 10:04, 8 November 2024 (UTC)
- Oh, that should work then, just making sure Mrfoogles (talk) 15:53, 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 (MSGJ · talk) 10:04, 8 November 2024 (UTC)
- 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 {{Wikiproject banner shell}}, {{Wikiproject <insert wikiproject here>}}, 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. Mrfoogles (talk) 02:29, 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 (MSGJ · talk) 22:09, 9 November 2024 (UTC)
- This should now be done. Let me know if anything looks wrong — Martin (MSGJ · talk) 20:52, 10 November 2024 (UTC)
- @Martin Talk:Diamide seems to be broken, saying that it doesn't need a rating on the content assessment scale 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. Mrfoogles (talk) 03:44, 11 November 2024 (UTC)
- Yep, pages might need a purge — Martin (MSGJ · talk) 10:33, 11 November 2024 (UTC)
- Looks like it works now (Diamide now shows up as list class). Maybe some sort of caching thing. Mrfoogles (talk) 03:44, 11 November 2024 (UTC)
- @Martin Talk:Diamide seems to be broken, saying that it doesn't need a rating on the content assessment scale Mrfoogles (talk) 23:07, 10 November 2024 (UTC)
WP:VRT
editSince it's not a typical WikiProject, {{WikiProject VRT}} displays 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? ~ Tom.Reding (talk ⋅dgaf) 11:42, 2 November 2024 (UTC)
- I've added the PROJECT_LINK param. -- 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 (MSGJ · talk) 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. --Redrose64 🌹 (talk) 13:42, 3 November 2024 (UTC)
- Are you a bus spotter by any chance? — Martin (MSGJ · talk) 12:28, 4 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. --Redrose64 🌹 (talk) 13:42, 3 November 2024 (UTC)
- I've also changed the name to "Volunteer Response Team". VRT means nothing to most people — Martin (MSGJ · talk) 10:07, 3 November 2024 (UTC)
Rename
editPropose 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 (MSGJ · talk) 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? ~ Tom.Reding (talk ⋅dgaf) 11:22, 5 November 2024 (UTC)
- What about Category:WikiProject banners without a class parameter? ~ Tom.Reding (talk ⋅dgaf) 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 (MSGJ · talk) 12:31, 5 November 2024 (UTC)
- Ah, makes sense then. So pages without a class value will just filter unto various WikiProjects' unassessed cats? ~ Tom.Reding (talk ⋅dgaf) 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
|class=
(109), 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|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. ~ Tom.Reding (talk ⋅dgaf) 14:57, 5 November 2024 (UTC)- At the moment {{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 (MSGJ · talk) 15:20, 5 November 2024 (UTC)
- (edit conflict) - I just noticed Category:Unassessed articles, but the example is still valid:
- Live example:
- Talk:Jain Software is categorized in Category:Unassessed articles due to
{{WikiProject banner shell|class=}}
. - Talk:Jain Software is removed from Category:Unassessed articles if
{{WikiProject banner shell|class=|{{WikiProject AI Cleanup}}}}
(for example) is used. - The same is true with and without the text "|class=".
- Talk:Jain Software is categorized in Category:Unassessed articles due to
- So either the logic that populates Category:Unassessed articles needs to be more robust (resilient against non-class WikiProjects), or a new category created that accomplishes the same thing. ~ Tom.Reding (talk ⋅dgaf) 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 {{WP Caves}} (no
{{{class}}}
) is still an FA. ~ Tom.Reding (talk ⋅dgaf) 15:34, 5 November 2024 (UTC) - I like the idea of a non-diffusing cat like Category:All unassessed articles directly containing all unassessed articles, and each of those articles in their respective WikiProject-diffused cats (if they exist) within. ~ Tom.Reding (talk ⋅dgaf) 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 (MSGJ · talk) 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 (MSGJ · talk) 17:33, 16 November 2024 (UTC)
- Sounds good. Either cat is fine, as long as they're not both used. Reusing Category:Unassessed articles would probably be less work, but I'll leave that up to you. ~ Tom.Reding (talk ⋅dgaf) 14:27, 18 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 (MSGJ · talk) 17:33, 16 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 (MSGJ · talk) 07:47, 12 November 2024 (UTC)
- At the moment {{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 (MSGJ · talk) 15:20, 5 November 2024 (UTC)
- Come to think of it, this is not ideal (deferring to WikiProjects' unassessed cats). Since not all WikiProjects use
- Ah, makes sense then. So pages without a class value will just filter unto various WikiProjects' unassessed cats? ~ Tom.Reding (talk ⋅dgaf) 13:14, 5 November 2024 (UTC)
Inactive parameters
edit@Gonnym, regarding this edit to the sandbox module, there is a problem. Now you are passing all sorts of categories like |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 p.inactive
function. So I think this needs reverting. What was the aim of that change, and maybe there is another way to achieve it — Martin (MSGJ · talk) 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. 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 (MSGJ · talk) 18:16, 7 November 2024 (UTC)
Task force importance
editI 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 (MSGJ · talk) 11:51, 11 November 2024 (UTC)
Boilerplate text for A-class reviews
editFollowing a request from WikiProject Military history, I've added some code to Module:WikiProject banner/auxiliary/sandbox for a new parameter |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 (MSGJ · talk) 22:19, 14 November 2024 (UTC)
Could {{High-use}} be added to the automatic documentation if the template appears on the appropriate subpage of Module:Transclusion count/data? ~ Tom.Reding (talk ⋅dgaf) 14:56, 19 November 2024 (UTC)
- Working on Template:WikiProject Christianity/sandbox now — Martin (MSGJ · talk) 22:46, 19 November 2024 (UTC)
- Nice! ~ Tom.Reding (talk ⋅dgaf) 22:59, 19 November 2024 (UTC)
WP China & Tibet
editDo any other WPs show up as their own banner when set as a parameter of another like {{WikiProject China|tibet=yes}}
? ~ Tom.Reding (talk ⋅dgaf) 14:43, 28 November 2024 (UTC)
- I can't think of any others — Martin (MSGJ · talk) 16:42, 28 November 2024 (UTC)
Full admin protection?
edit@MSGJ and 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? — hike395 (talk) 22:29, 29 November 2024 (UTC)