Jump to content

Template talk:WikiProject banner shell/Archive 11

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Archive 5 Archive 9 Archive 10 Archive 11

To 1= or not to 1=?

While explicitly naming |1= is not required, it has been widely adopted for this template and the docs still prominently feature it. Since WP:PIQA conversions began a few days ago, I've noticed that two bots, User:Cewbot and User:Qwerfjkl (bot), are implementing competing formats, the former with and the latter without naming the parameter. Should we aim for consistency in this regard? If so, what is the preferred format? Yes, I realize that this is a completely comsetic question. Regards, IceWelder [] 14:33, 19 January 2024 (UTC)

It doesn't make any difference. The times when it would make a difference are:
  1. when the presence or absence of leading and trailing whitespace is significant
  2. when the parameter value contains an equals sign that is outside of template transclusions
Of these, (1) doesn't normally apply when the template has a Lua core, as this one does; and (2) won't apply to WPBS because there are no situations when the parameter content has anything outside template transclusions. --Redrose64 🌹 (talk) 14:41, 19 January 2024 (UTC)
If there is no difference, it seems to me that the bots should not be "correcting" this particular syntax. In particular, edits like this, where "fixing" |1= is the only change, are unnecessary and are just clogging our watchlists.— TAnthonyTalk 15:24, 19 January 2024 (UTC)
This seems to have been raised at User_talk:Qwerfjkl#Cosmetic_edits. -Kj cheetham (talk) 15:27, 19 January 2024 (UTC)
I can't get worried about it either way, but I guess without the 1= is slightly tidier — Martin (MSGJ · talk) 15:56, 19 January 2024 (UTC)
I can eliminate |1= if there is a consensus. I will follow User:Qwerfjkl (bot)'s practice and not to add "1=". Also the discussion about whether to choose between |blp= and |living= seems to be expired. There seems to be no consensus? Kanashimi (talk) 23:11, 19 January 2024 (UTC)
 Fixed Kanashimi (talk) 02:41, 20 January 2024 (UTC)
I certainly agree this doesn't really matter, but if both of these bots are doing it without, is there any benfit of getting WP:RATER to go without too? -Kj cheetham (talk) 11:56, 20 January 2024 (UTC)
The |1= has kind of bugged me for a while since most templates don't request it. Support not using it.   ~ Tom.Reding (talkdgaf)  16:15, 20 January 2024 (UTC)
Prehaps also noteworthy: AWB actively adds |1= unprompted. IceWelder [] 00:09, 22 January 2024 (UTC)
Late the conversation, but FYI, that only happens if you run AWB with "apply general fixes" enabled (which a lot of users do). But you can turn that off if you didn't want it to be applied automatically. The genfixes setting is not always desirable. Depends on the use case. ButlerBlog (talk) 20:14, 7 February 2024 (UTC)
Now edits like this are real watchlist-cloggers. I'm going to call WP:COSMETICBOT on that. --Redrose64 🌹 (talk) 21:49, 24 January 2024 (UTC)
Absolutely. There must be a way to avoid edits like this @Qwerfjkl — Martin (MSGJ · talk) 21:52, 24 January 2024 (UTC)
MSGJ, it's because the page was edited before the bot, so it no longer had anything to do, leading it to make a cosmetic edit. This shouldn't happen much. — Qwerfjkltalk 07:05, 25 January 2024 (UTC)
So you need to build in some detection to check that the page actually needs editing. Otherwise this kind of thing will happen a lot. If you look at the history of Talk:Troon railway station (1839-1892), the bot already edited the page on the same day, so why is it revisiting the same page? — Martin (MSGJ · talk) 08:39, 25 January 2024 (UTC)
MSGJ, I was running the job twice (once for testing purposes, the other as a regular bot run). These jobs overlapped, causing duplicate errors like this. User:Trappist the monk notified me of this at WP:BOTN so I killed the other job. This error should no longer occur. — Qwerfjkltalk 16:07, 25 January 2024 (UTC)
(please Reply to icon mention me on reply)— Qwerfjkltalk 16:08, 25 January 2024 (UTC)

Redirect

Having a problem with the article -izzle, which is a soft redirect. Tried tagging it as a redirect but this is not working. The banner shell said (incorrectly) that it was a redirect without a class parameter, but adding one has not removed it from Category:Unassessed articles. How do we tag it as a redirect. and remove it from this category? Hawkeye7 (discuss) 03:28, 21 February 2024 (UTC)

@Martin? — Qwerfjkltalk 19:01, 23 February 2024 (UTC)
We now have the ability to detect soft redirects in Module:Pagetype so I was planning to use that to automatically rate such pages as Redirect-class. I assume that would solve this problem. (But why did you say that banner shell incorrectly detected it as a redirect?) — Martin (MSGJ · talk) 23:20, 23 February 2024 (UTC)
Two problems here:
  1. The Rater tool does not allow me to set the class=Redirect in the banner shell. Is it missing metadata?
  2. Setting class=Redirect did not remove it from Category:Unassessed articles when set manually, so automatically rating it won't work without changing the banner shell.
Hawkeye7 (discuss) 09:42, 24 February 2024 (UTC)
I assumed point 1 was intentional because Redirect detection was automatic, but point 2 seems like an issue. It seems odd to me use of the text This redirect has not yet been rated on Wikipedia's content assessment scale. I thought "redirect" was the assessment? -Kj cheetham (talk) 10:48, 24 February 2024 (UTC)
I think the template is using Module:Pagetype for some of its logic, but not the part where it actually sets the class. I will try and sort this shortly — Martin (MSGJ · talk) 14:14, 24 February 2024 (UTC)
 Done — Martin (MSGJ · talk) 12:45, 1 March 2024 (UTC)

living vs blp

Is everyone okay with migrating all uses of the living parameter to blp? At the moment living is an alias for blp, but there are some articles that are using both, and the bots could tidy these up. — Martin (MSGJ · talk) 16:47, 15 February 2024 (UTC)

No objections, though noting I believe WP:RATER uses living. -Kj cheetham (talk) 16:50, 15 February 2024 (UTC)
As long as AWB doesn't remove them all a la https://en.wikipedia.org/w/index.php?title=Talk:Suzanne_Deutsch_de_la_Meurthe&diff=prev&oldid=1207780075 :-) -Kj cheetham (talk) 18:30, 15 February 2024 (UTC)
True. We have not had a response to our request at AWB yet — Martin (MSGJ · talk) 21:40, 15 February 2024 (UTC)
@MSGJ: Per Wikipedia talk:AutoWikiBrowser#Request to change banner shell general fixes, did you (or anyone else) file a Phabricator task for the AWB developers? GoingBatty (talk) 02:48, 22 February 2024 (UTC)
I haven't, and have never used Phabricator before. MSGJ, please could you handle that? Thank you. -Kj cheetham (talk) 19:21, 23 February 2024 (UTC)
Would there be any WP:COSMETIC concerns here? Sdkbtalk 21:49, 15 February 2024 (UTC)
I would hope this not be the only change, but if it could be done as part of PIQA then probably better to standardise. What we don't want is |blp=yes and |living=no which has happened — Martin (MSGJ · talk) 21:51, 15 February 2024 (UTC)
No objection then. Cheers, Sdkbtalk 22:38, 15 February 2024 (UTC)
On a related note, I just modified the documentation slightly (https://en.wikipedia.org/w/index.php?title=Template:WikiProject_banner_shell/doc&diff=prev&oldid=1209824156) to clarify this parameter should be used for all biographical articles, not just for living people. Please reword it if my change isn't clear. -Kj cheetham (talk) 18:59, 23 February 2024 (UTC)
I don't follow, @Kj cheetham. Is the idea that it should be used for non-living people? Or for non-person biographical articles of animals? The parameter is about WP:Biographies of living persons, which kinda spells out its scope in its title. Sdkbtalk 19:05, 23 February 2024 (UTC)
Good point about animals! It should be blp=yes for bios of living people, blp=no for bios of dead people. Effectively if the article is tagged with WikiProject Biography and doesn't have the blp/living parameter set it ends up in Category:Biography articles without living parameter. I think it needs to be worded clearer than I put it... -Kj cheetham (talk) 19:08, 23 February 2024 (UTC)
Ah, the ability to use it but set it to "no" was what I was missing. I took a stab at clarifying. Thanks, Sdkbtalk 19:37, 23 February 2024 (UTC)
Your wording is definitely clearer. I noticed you changed the TemplateData too to make it required - I wasn't sure about that because it's not required for all articles, and I don't know what impacts that change would have. -Kj cheetham (talk) 19:47, 23 February 2024 (UTC)
If the default is "no", and the parameter is marked as required and missing, I assume that's fine? -Kj cheetham (talk) 19:53, 23 February 2024 (UTC)
My brain is asleep today haha; self-reverted the TemplateData part. Sdkbtalk 21:01, 23 February 2024 (UTC)
Just need some more coffee. :-) -Kj cheetham (talk) 10:39, 24 February 2024 (UTC)

If I am understanding correctly, all or most of the living/blp parameters should have been transferred into the banner shell by now. Would it be worth setting up a tracking category to find which ones have not been? Then we can look at removing those parameters from {{WikiProject Biography}} — Martin (MSGJ · talk) 15:01, 3 March 2024 (UTC)

Set index articles

I tried to rate a WP:WikiProject Military history article as a set index article in the WikiProject banner shell. Category:SIA-Class military history articles does exist, but it inexplicably defined it as a list-class article. Hawkeye7 (discuss) 20:08, 16 March 2024 (UTC)

@Martin. — Qwerfjkltalk 22:08, 16 March 2024 (UTC)
SIA is non-standard so cannot be used in the banner shell. Yes it's an alias to "List" on the standard scale. — Martin (MSGJ · talk) 22:22, 16 March 2024 (UTC)
Okay then. Hawkeye7 (discuss) 00:00, 17 March 2024 (UTC)

Possible bug?

What's gone wrong with Talk:Abu Bakr Rabee Ibn Ahmad Al-Akhawyni Bokhari still having WikiProjects saying they are Unassessed when |class=stub is in the banner shell? Is the length of the article title an issue at all? -Kj cheetham (talk) 19:52, 18 March 2024 (UTC)

Kj cheetham, fixed, there was a stray } which presumably messed up the pattern matching. — Qwerfjkltalk 19:57, 18 March 2024 (UTC)
Well spotted! Thank you. -Kj cheetham (talk) 20:02, 18 March 2024 (UTC)

living/blp on categories

Should |living=no/|blp=no be removed on category talks only, since there are no categorization changes whether or not they're used? I've seen them on a small-ish # of very old {{WP Years}}+{{WP Biography}} categories.

Presumably, |living=yes & |blp=yes should be kept even on categories, since the category is then added to Category:Noindexed pages?   ~ Tom.Reding (talkdgaf)  16:02, 8 March 2024 (UTC)

@Tom.Reding: If you remove those parameters from a talk page with {{WP Biography}}, then the talk page will appear on Category:Biography articles without living parameter until the parameter is readded. GoingBatty (talk) 17:33, 24 March 2024 (UTC)
@GoingBatty: that's true on article talks, but not for category talks. |living/blp=no seem to be useless on cats, so I've started removing them while doing more significant changes.   ~ Tom.Reding (talkdgaf)  19:27, 24 March 2024 (UTC)
@Tom.Reding: Thank you for setting me straight. GoingBatty (talk) 20:56, 24 March 2024 (UTC)

Module:Banner shell is currently calling Template:Banner holder. I'm not overly keen on a module calling a template, but in this case the module overrides most of the default functions of Banner holder. So I'm wondering if this template could be bypassed and its functionality merged into the module? Ping @Izno who was involved in some 2022 changes — Martin (MSGJ · talk) 14:53, 3 March 2024 (UTC)

Banner holder is intended to be 1) a generalization for WPBS, which you reimplemented in this module despite using the general name, and 2) a holder for tmboxes that aren't WikiProject banners. I don't see an issue merging it into the module, but it would be prudent to separate out the WikiProject-specific parts into their own part of the module and then call the holder function, which should be a public API. And given the name of the module, that function should probably be the "main" function, with the WikiProject specific portions in some p.wikiproject_shell. Izno (talk) 17:59, 3 March 2024 (UTC)
Okay let's merge it into the module. I don't think the name of the module and its functions are particularly important, but no opposition to your ideas. — Martin (MSGJ · talk) 12:54, 4 March 2024 (UTC)

Started in sandbox [1]. Lots more work and testing needed yet — Martin (MSGJ · talk) 21:55, 18 April 2024 (UTC)

Coding finished and I'm fairly happy with it. Further testing still to do. @Izno: would you mind checking the stylesheets because I'm not very knowledgeable on that aspect? I assume I can merge Template:Banner holder/styles.css and Template:WikiProject banner shell/styles.css into Module:Banner shell/styles.css? Are there any further improvements possible, for example the hard-coded styles on L-37 and L-200? I don't understand your comments at Module:Banner shell/styles.css#L-54 but can any improvements be made here? — Martin (MSGJ · talk) 18:42, 19 April 2024 (UTC)
I didn't get any response from Izno, but it passed all my tests so  deployed — Martin (MSGJ · talk) 10:01, 21 April 2024 (UTC)

One issue I've just noticed. It no longer makes the small banners large when inside the shell - (see Template:Banner holder/doc#Examples). This is supposed to be done by Module:Banner shell/styles.css#L-25 but not sure why it's not working now — Martin (MSGJ · talk) 10:08, 21 April 2024 (UTC)

Module:Message box/tmbox.css#L-81 isn't being changed back to 100%, it seems. – Hilst [talk] 11:31, 21 April 2024 (UTC)
Could it be the order of the definitions? Before it was <templatestyles src="Module:Message box/tmbox.css"/><templatestyles src="Banner holder/styles.css"/> and now it's the other way round <templatestyles src="Banner holder/styles.css"/><templatestyles src="Module:Message box/tmbox.css"/>. Perhaps the overriding definition needs to come later? — Martin (MSGJ · talk) 14:19, 21 April 2024 (UTC)
That's probably what's causing it. In any case, you could always just throw in a few !importants :V – Hilst [talk] 14:28, 21 April 2024 (UTC)
I switched the order in the sandbox and that seems to have fixed it. This is why I asked Izno to check! — Martin (MSGJ · talk) 14:29, 21 April 2024 (UTC)

Spacing change?

Is it just me, or does this template suddenly have a lot less space between the contents and the border? jlwoodwa (talk) 01:00, 22 April 2024 (UTC)

Probably related to the above. I have switched the order of the definitions. Please confirm (after a purge) if that is looking normal again? — Martin (MSGJ · talk) 07:16, 22 April 2024 (UTC)

Add tracking categories

@MSGJ Can you help add some tracking categories of {{WPBS}}?

  1. Disambiguation pages or redirect pages are assigned classes.
  2. Contains incorrect attribute values, e.g. living=no}.

If we already have such tracking categories, please let me know, thanks. Kanashimi (talk) 08:07, 6 February 2024 (UTC)

Hi Kanashimi
  1. It should be impossible to assign classes to non-articles. Or rather, the template will just ignore those classes. Do you mean you want to find these incorrect parameters to remove? Wouldn't that be classes as a cosmetic edit, if the parameter is being ignored anyway?
  2. Do you want me to track any values which are not valid as "yes" or "no"? That would be everything except yes, y, true, t, on, 1, no, n, false, f, off, 0. Yes that should be possible.
— Martin (MSGJ · talk) 09:24, 6 February 2024 (UTC)
  1. GoingBatty mentioned that for these type of articles, the robot needn't inherit the class. I think if there is a tracking category like this, the robot can just delete the class.
  2. Yes, Ipigott mentioned that wrong parameter values could cause template errors. If there is such a tracking category, I think the robot can help to correct them.
Kanashimi (talk) 09:38, 6 February 2024 (UTC)

MSGJ Thinking of tracking categories, is there one like Category:WikiProject banners without banner shells but just for articles (well article talk pages), i.e. not userspace or draftspace, etc. Would it be useful...? I'm thinking partly to see how much the PIQA bots have left to do in that area. Thanks. -Kj cheetham (talk) 16:53, 15 February 2024 (UTC)

Not yet, but would be simple enough to set up. Alternatively, shall we propose adding the banner shell to other namespaces too? That is kind of out of scope of PIQA, but it seems that it has been universally accepted in article space, so editors might expect to see them in other namespaces too — Martin (MSGJ · talk) 14:58, 3 March 2024 (UTC)
@Kj cheetham I created Category:Articles with WikiProject banners but without a banner shell — Martin (MSGJ · talk) 20:57, 24 March 2024 (UTC)

I notice that Talk:48th Brigade (United Kingdom) is tracked as not having a banner shell, but it does have a banner shell — Martin (MSGJ · talk) 14:57, 3 March 2024 (UTC)

 Fixed — Martin (MSGJ · talk) 20:58, 24 March 2024 (UTC)

Invalid parameters

Code on Module:Banner shell/sandbox for tracking any invalid values of |blp=, |living=, |blpo=, |activepol=, |collapsed= or |category= and will place them in Category:Pages using WikiProject banner shell with invalid parameters — Martin (MSGJ · talk) 16:07, 3 March 2024 (UTC)

Code deployed — Martin (MSGJ · talk) 20:40, 6 March 2024 (UTC)

Anyone else want to lend a hand at Category:Pages using WikiProject banner shell with invalid parameters and we can get these cleaned up — Martin (MSGJ · talk) 08:03, 13 March 2024 (UTC)

I've fixed about 70 of the 100-odd talk pages in the category, mostly those with either simple typos in the living/blp parameter values, or those where an {{Image requested}} tag was mistakenly in the banner shell. There's about 27 remaining, most of which are where the blp status is unknown or conflicting. Harryboyles 09:20, 13 March 2024 (UTC)

Just to let people know that Category:Pages using WikiProject banner shell with invalid parameters is now tracking invalid uses of the |class= parameter. Basically anything other than stub/start/c/b/ga/a/fa/fl will end up in this category (sorted under "Z") — Martin (MSGJ · talk) 09:18, 23 April 2024 (UTC)