Cannabis Ruderalis

Content deleted Content added
ClueBot III (talk | contribs)
m Fixing links to archived content. (BOT)
MSGJ (talk | contribs)
Line 1: Line 1:
{{Talk header|noarchives=yes|search=no}}
{{WPCouncil}}
{{WPCouncil}}
{{notice|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.}}
{{central
{{to do|collapsed=yes}}
| text = all core talkpages redirect here.
{{/happysad}}
* [[Template talk:WPBannerMeta/hooks|WPBannerMeta/hooks]] have their own talkpages.
* There is also a subpage about banner [[Template:WPBannerMeta/Conversion|conversion]].
}}{{/happysad}}
{{User:MiszaBot/config
{{User:MiszaBot/config
| algo = old(28d)
| algo = old(60d)
| archive = Template talk:WPBannerMeta/Archive %(counter)d
| archive = Module talk:WikiProject banner/Archive %(counter)d
| counter = 11
| counter = 14
| maxarchivesize = 150K
| maxarchivesize = 150K
| archiveheader = {{Aan}}
| archiveheader = {{Aan}}
Line 17: Line 14:
{{archives|index=/Archive index|bot=lowercase sigmabot III|age=28|auto=short}}
{{archives|index=/Archive index|bot=lowercase sigmabot III|age=28|auto=short}}


== [[Template:Etymology section]] ==
__TOC__
== FYI ==


Template uses custom code to implement a custom quality rating, but it does not do it in the usual way with a custom mask. I'm not sure what to do with this template so dropping it here in case others have an idea. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 23:15, 23 February 2024 (UTC)
I added a [[WP:AALERTS]]-related warning concerning mergers and moves in
:@[[User:Kanashimi|Kanashimi]], @[[User:Qwerfjkl|Qwerfjkl]]: please could you not remove any class parameter from this template until we figure out the best way to code it? It is using a custom mask, but not in the usual way. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 20:56, 2 March 2024 (UTC)
::[[User:MSGJ|Martin]], I've stopped my bot, it's run on the vast majority of pages.<span id="Qwerfjkl:1709413119615:Module_talkFTTCLNWikiProject_banner" class="FTTCmt"> —&nbsp;[[User:Qwerfjkl|<span style="background:#1d9ffc; color:white; padding:5px; box-shadow:darkgray 2px 2px 2px;">Qwerfjkl</span>]][[User talk:Qwerfjkl|<span style="background:#79c0f2;color:white; padding:2px; box-shadow:darkgray 2px 2px 2px;">talk</span>]] 20:58, 2 March 2024 (UTC)</span>
:::Okay, wow. I didn't realise you had already finished! &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 20:59, 2 March 2024 (UTC)
::::[[User:MSGJ|Martin]], yes, we've totally emptied the main two categories (in the main talk namepace). Around 4-5 million pages, I think.<span id="Qwerfjkl:1709413295958:Module_talkFTTCLNWikiProject_banner" class="FTTCmt"> —&nbsp;[[User:Qwerfjkl|<span style="background:#1d9ffc; color:white; padding:5px; box-shadow:darkgray 2px 2px 2px;">Qwerfjkl</span>]][[User talk:Qwerfjkl|<span style="background:#79c0f2;color:white; padding:2px; box-shadow:darkgray 2px 2px 2px;">talk</span>]] 21:01, 2 March 2024 (UTC)</span>
::::Yes, we've already processed a round of major categories. But I'm still on the task of removing obsolete parameters. I suggest adding {{tl|Etymology section}} to [[:Category:WikiProjects using a non-standard quality scale]] first. [[User:Kanashimi|Kanashimi]] ([[User talk:Kanashimi|talk]]) 22:53, 2 March 2024 (UTC)
:How is that template not appearing in [[:Category:WikiProject banners with non-standard names]]? [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 13:33, 3 March 2024 (UTC)
::The current logic is <code>(args.PROJECT_NAME=='WikiProject '..project or not args.PROJECT_NAME) and current_page.rootPageTitle.prefixedText~='Template:WikiProject ' .. project</code> In this case the project name is not WikiProject PROJECT and it is not undefined &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 13:56, 3 March 2024 (UTC)
:::Maybe adjust this so we check either if {{para|PROJECT_NAME}} is equal to "WikiProject {{var|project}}" OR the template name does not start with "WikiProject"? Since we standardized on "WikiProject {{var|project}}" for these templates, there really shouldn't be many with non-standard valid names I think, unless I missed something. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 15:23, 3 March 2024 (UTC)
::::This banner isn't for a WikiProject. Perhaps that issue should be corrected instead? [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 17:53, 3 March 2024 (UTC)
:::::Isn't it part of linguistics project? &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 19:22, 3 March 2024 (UTC)
::::::A task force of that project, yes. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 22:11, 3 March 2024 (UTC)
:::::::I usually nominate task force banners to merge with their project banner but because this had manual code in it I left it alone for now as I didn't investigate what that code does and if indeed it needs manual code. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 06:52, 4 March 2024 (UTC)
::::::::I think I'll start by removing the custom code and attempting to use the standard methods. If that works then we can look at the next step &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 18:31, 4 March 2024 (UTC)
:::::::::Conclusion: it is easy to convert it, but some categories would need to be renamed. Test cases at [[Template:Etymology section/testcases]]. I have also dropped a note on [[Wikipedia talk:WikiProject Linguistics]]. Also, there are only {{PAGESINCAT:Etymology Task Force etymologies}} pages using this template so it was never really adopted on any scale &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 18:47, 4 March 2024 (UTC)
::::::::::Maybe after merging with {{tl|WikiProject Linguistics}}, the syntax can be changed to something similar to this:
::::::::::* {{tlx|WikiProject Linguistics|etymology{{=}}yes|etymology-section{{=}}good}}
::::::::::* {{tlx|WikiProject Linguistics|etymology{{=}}yes|etymology-section{{=}}incomplete}}
::::::::::* {{tlx|WikiProject Linguistics|etymology{{=}}yes|etymology-section{{=}}missing}}
::::::::::* {{tlx|WikiProject Linguistics|etymology{{=}}yes|etymology-section{{=}}unassessed}}
::::::::::so instead of a new set of unique classes, it will just be another parameter that will trigger the placement in the category. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 10:02, 6 March 2024 (UTC)
:::::::::::Sounds like a good plan. I also think we could rename [[:Category:Articles with mid-importance etymologies]] to [[:Category:Mid-importance etymology articles]] or similar &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 10:30, 6 March 2024 (UTC)
:::::::::::I feel like those are just other ways to grade each article with a class, which we have examples of for task forces. Good would put it in B, incomplete C or start, unassessed is missing a grade, and missing is probably equivalent to unassessed ultimately... [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 17:17, 6 March 2024 (UTC)
::::::::::::That's also a good point. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 07:19, 7 March 2024 (UTC)
:::::::::::::Missing etymology might just be like {{para|needs-infobox}} I guess, but the rest all have direct analogs to our rating system. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 16:32, 7 March 2024 (UTC)
Due to the lack of any response at the project talk page, it seems no one is interested in this template, so I have just removed the non-standard assessments altogether. If this gets reverted then we can look at methods to preserve the assessments in a more standard way &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 09:15, 3 April 2024 (UTC)


== Execution time ==
*{{tl|WPBannerMeta/locwarning}}


I've recently been looking into the execution time of this module due to a couple of lua timeout errors occassionally popping up on larger pages with a lot of banner templates (e.g. [[:Talk:List of common misconceptions|1]], [[:Talk:Roman Empire|2]], [[:Talk:World War II|3 (not entirely wpb's fault)]]). I've already proposed a change to a module this module uses which should solve the issue well enough, but I think it's still worth looking into optimising this code.
*{{tl|WPBannerMeta/templatepage}}


I've noticed that this module can call Pagetype (which is intensive in comparison to most things required) on the same page up to (but not always) 3 times while handling a banner (see lines 161, 299, and 327). Considering 2 of them are caused by calling class_mask (definitely a duplicate pagetype call we don't need to make), I feel like it should be possible to reduce the max calls to 2, but the functionality of some of this module is beyond me (no clue what FQS means to start with), so I'm not confident I could optimise this myself without breaking some sort of functionality. Could someone consider taking a look at this? [[User:Aidan9382|Aidan9382]] <sub>([[User talk:Aidan9382|talk]])</sub> 22:16, 21 March 2024 (UTC)
<span style="font-variant:small-caps; whitespace:nowrap;">[[User:Headbomb|Headbomb]] {[[User talk:Headbomb|t]] · [[Special:Contributions/Headbomb|c]] · [[WP:PHYS|p]] · [[WP:WBOOKS|b]]}</span> 16:46, 14 August 2018 (UTC)


:I guess it should be possible to reduce the calls to pagetype to 1. I'll have a look when I get a chance &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 22:38, 21 March 2024 (UTC)
== Infobox No ==
:Okay please have a look at my changes in the sandbox. There would need to be a minor change to [[Module:Banner shell]] at the same time &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 12:32, 22 March 2024 (UTC)
::No comment on functionality, but I imagine there are testcases for this module in terms of that (though unless there was some sort of super specific scenario where the main function specifically but not the class mask wanted to ignore disambiguation, I doubt anything is broken). Thanks to this change and a change in a different module, the sandbox version is now running about ''6.5 times faster'' than the live version in the worst case scenario (significantly large pages, all 3 pagetype calls - I'm using [[Talk:List of common misconceptions]] for my testcases), which is a huge improvement, so thanks for doing that. I'd recommend updating banner shell before this module whenever that happens so there isn't a small window where stuff breaks. [[User:Aidan9382|Aidan9382]] <sub>([[User talk:Aidan9382|talk]])</sub> 17:04, 22 March 2024 (UTC)
:::Great. I've implemeneted your changes to pagetype. I will have a look to see if any other changes are needed to banner shell and then probably do that one later today. Can I ask how you came across [[Talk:List of common misconceptions]] and discovered the issue? By the way, when we have resolved all the [[:Category:Articles with conflicting quality ratings|conflicting article ratings]], I hope we will be able to improve efficiency by just doing the quality assessment once (on the banner shell) rather than having to it on each individual banner &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 19:30, 22 March 2024 (UTC)
::::I came across that talk page since my bot, which handles bad archive values in {{[[User:MiszaBot/config]]}} as one of its tasks, kept throwing warnings for pages that had appeared in a tracking category despite having what it (correctly) thought was the already right input (you can see the result of me purging some of the pages to temporarily remove the timeout in [[Special:Diff/1214818416]]). I just removed templates and used show preview till I found what was responsible for the majority of the execution time, which is why I've been improving the execution time of multiple modules recently. [[User:Aidan9382|Aidan9382]] <sub>([[User talk:Aidan9382|talk]])</sub> 19:39, 22 March 2024 (UTC)
:::::New code deployed, so hopefully that reduces the lag on these pages &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 21:06, 24 March 2024 (UTC)
::::::Thanks, stuff's looking ''much'' better now (not even 2s on the misconceptions page compared to over 6s before the updates). [[User:Aidan9382|Aidan9382]] <sub>([[User talk:Aidan9382|talk]])</sub> 21:28, 24 March 2024 (UTC)


== Documentation ==
Wanted to see if someone could help me out. I've noticed a few pages with <code>infobox=no</code> that are still getting categorized into "Needs infobox" categories. In looking at the source code, it seems that these should not be categorized but I think I'm missing something... Anyone able to provide some insight? --'''[[User:Zackmann08|<span style="color:#00ced1">Zack</span><span style="color:#007F94">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange;">What I been doing</span>]]</sub>) 22:34, 3 October 2018 (UTC)
:{{replyto|Zackmann08}} Which pages are these? It will depend upon the coding within the individual infobox template. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 22:58, 3 October 2018 (UTC)
::{{ping|Redrose64}} thanks for the response. One example would be [[Talk:Battle, East Sussex]] which uses {{tl|WikiProject UK geography}}. Sounds like what you're saying is that the issue doesn't actually lie here with {{tl|WPBannerMeta}} but with the way that particular template (in this case {{Tl|WikiProject UK geography}}) is calling the template? --'''[[User:Zackmann08|<span style="color:#00ced1">Zack</span><span style="color:#007F94">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange;">What I been doing</span>]]</sub>) 23:04, 3 October 2018 (UTC)
:::Read the '''Deprecated parameters''' section of the documentation for {{tl|WikiProject UK geography}}. The parameter is behaving as described in the docs. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 23:11, 3 October 2018 (UTC)
::::{{ping|WOSlinker}} ah ok! Thank you for pointing me to that. It is a bit bass-ackwards, but really appreciate you pointing me to the right place. I figured I was just missing something so thank you much! --'''[[User:Zackmann08|<span style="color:#00ced1">Zack</span><span style="color:#007F94">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange;">What I been doing</span>]]</sub>) 23:22, 3 October 2018 (UTC)
:::::{{ping|Zackmann08}} That's probably why it was deprecated. There's only seems to be about [https://en.wikipedia.org/w/index.php?title=Special:Search&limit=50&offset=0&profile=all&search=insource%3A%2F%5C%7C+%2Ainfobox+%2A%5C%3D+%2Ano%2F+hastemplate%3A%22WikiProject+UK+geography%22 38] that need updating to the ''needs-infobox'' parameter format or removing if the infobox is there now. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 08:44, 4 October 2018 (UTC)


There is a piece of automatically generated documentation on [[Template:WikiProject Military history]] that says "This project has opted out of project-independent quality assessments and is using a custom class mask." The Project has ''not'' opted out of project-independent quality assessments. Can we delete "has opted out of project-independent quality assessments"? I am unsure where this is done. [[User:Hawkeye7|<span style="color:#800082">Hawkeye7</span>]] [[User_talk:Hawkeye7|<span style="font-size:80%">(discuss)</span>]] 00:07, 1 April 2024 (UTC)
== Links from redirects? ==


:The military history project has opted out of PIQA. That is the only way to support the custom quality scale. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 09:10, 1 April 2024 (UTC)
[[Special:WhatLinksHere/Canadian Open Wireless and Mobile Communications Engineering Journal]] shows that [[Talk:Canadian Open Wireless and Mobile Communications Engineering Journal]] links to [[Canadian Open Wireless and Mobile Communications Engineering Journal]].
::What would be the effect of adopting the PIQA? [[User:Hawkeye7|<span style="color:#800082">Hawkeye7</span>]] [[User_talk:Hawkeye7|<span style="font-size:80%">(discuss)</span>]] 17:43, 1 April 2024 (UTC)
:::Losing all the custom logic in [[Template:WikiProject Military history/class]] &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 09:09, 3 April 2024 (UTC)
::::Does that include the A-class logic or just the B-class logic? [[User:Hawkeye7|<span style="color:#800082">Hawkeye7</span>]] [[User_talk:Hawkeye7|<span style="font-size:80%">(discuss)</span>]] 18:12, 3 April 2024 (UTC)
:::::You'd certainly lose AL, BL and CL, probably several of the others; you might be left with just the standard scale (FA, A, GA, B, C, Start, Stub, FL, List). --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 19:01, 3 April 2024 (UTC)


== PROJECT_STATUS parameter ==
However, I can't find any such links on either [[Talk:Canadian Open Wireless and Mobile Communications Engineering Journal]], or {{tl|WP Journals}}. What gives?


The module currently has an undocumented parameter for the status of a project, which will add a CSS class to the outer table. For example if you set {{para|PROJECT_STATUS|semiactive}} then it will add <code>class="semi-active-project"</code>. Does anyone know if this has any purpose or is used by any tools? It either needs documenting properly or removing &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 11:53, 24 April 2024 (UTC)
Does something in the metabanner need to make use of {{tl|linkless exists}}? Possibly [[Module:Pagetype]]? <span style="font-variant:small-caps; whitespace:nowrap;">[[User:Headbomb|Headbomb]] {[[User talk:Headbomb|t]] · [[Special:Contributions/Headbomb|c]] · [[WP:PHYS|p]] · [[WP:WBOOKS|b]]}</span> 23:09, 12 October 2018 (UTC)
:{{ping|Headbomb}} Thanks for the ping. The talk page uses {{tl|WikiProject Academic Journals}} which uses {{tl|WPBannerMeta}}. That and its subpages do a few #ifexist: checks but only on pages such as [[WP:WikiProject Academic Journals]], and there's no #invoke: for a direct module call. Those subpages do use several other complex templates which may record a spurious wikilink. I agree that {{tl|Pagetype}} is the most likely candidate. Someone could test that theory by pretending to edit the module and previewing the talk page with the pagetype call removed. (I can't do this myself, as the modules are protected.)
:As you've noticed, [[Module:Linkless]] is currently up for deletion. If done carefully, that could still allow {{tl|linkless exists}} to keep working, but deleting the module-level interface would prevent other modules such as Pagetype from calling it.
:However, I don't think that Linkless can help us here. Pagetype is not just checking for existence but reading the page to find out whether it is, for example, a redirect. I don't know any way to do that without recording a wikilink. Even if we found a way, I'm not sure that it would be a good idea: we do want the talk page banner to update if its counterpart in the main namespace changes type. [[User:Certes|Certes]] ([[User talk:Certes|talk]]) 23:58, 12 October 2018 (UTC)


:The rendering of the banner changes also, [https://en.wikipedia.org/w/index.php?search=template%3A+insource%3A%22PROJECT_STATUS%22&title=Special%3ASearch&ns0=1 see uses]. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 16:45, 25 April 2024 (UTC)
::Well, ideally, we'd want the banner to update, but without creating a link record. Because that's pretty annoying. <span style="font-variant:small-caps; whitespace:nowrap;">[[User:Headbomb|Headbomb]] {[[User talk:Headbomb|t]] · [[Special:Contributions/Headbomb|c]] · [[WP:PHYS|p]] · [[WP:WBOOKS|b]]}</span> 00:07, 13 October 2018 (UTC)
::The rendering of inactive banners is not triggered by the PROJECT_STATUS parameter. It's produced by a different ("inactive") function of the module &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 08:58, 26 April 2024 (UTC)
:::Sadly, I don't think that's possible. Updating the banner requires the link record. As I understand it, when a page (such as the redirect in main namespace) changes, MediaWiki runs a query similar to "what links here" to work out which other pages depend on it, and updates them. No link means no update. [[User:Certes|Certes]] ([[User talk:Certes|talk]]) 00:51, 13 October 2018 (UTC)
:This parameter was added in 2021 after [[Module talk:WikiProject banner/Archive_13#Protected edit request on 8 February 2021|this request]] by [[User:MJL]]. The rationale given was "The change adds a new class to the banner which would allow users to hide inactive WikiProject at their own discretion". &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 09:01, 26 April 2024 (UTC)
::::It's not possible. --[[User:Izno|Izno]] ([[User talk:Izno|talk]]) 01:03, 13 October 2018 (UTC)
Here are my thoughts:
* It is understandable that some editors wish to hide inactive banners, and the <code>inactive-project</code> class should continue to be applied to inactive banners.
* I do not see the value of <code>active-project</code> or <code>semi-active-project</code> and I don't believe anyone is using these.
* The {{para|PROJECT_STATUS}} parameter can be dropped from active project banners
* For inactive banners, there may be some utility in allowing {{para|PROJECT_STATUS|defunct}} to be defined instead of the default {{para|PROJECT_STATUS|inactive}}. So this parameter should continue to be supported for inactive banners.
* Other statuses listed at [[Wikipedia:Inactive WikiProjects]] such as "dormant", "revivable", "dead", "stillborn" will not be supported unless there is a specific request for this.
&mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 11:16, 29 April 2024 (UTC)


:::::At least not until {{phab|T14019}} is dealt with. <span style="font-variant:small-caps; whitespace:nowrap;">[[User:Headbomb|Headbomb]] {[[User talk:Headbomb|t]] · [[Special:Contributions/Headbomb|c]] · [[WP:PHYS|p]] · [[WP:WBOOKS|b]]}</span> 01:17, 13 October 2018 (UTC)
:@[[User:MSGJ|MSGJ]]: I'd agree with what you've laid out there. &#8211;<span style="font-family:CG Times, times">[[User:MJL|<span style="color:black">MJL</span>]]&thinsp;[[User talk:MJL|‐'''Talk'''‐]]<sup>[[User:MJL/P|]]</sup></span> 18:30, 29 April 2024 (UTC)
::Out of interest, did you use personal CSS to hide these banners, or are you aware of users who have done so? &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 20:27, 29 April 2024 (UTC)
:{{done}} &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 11:20, 9 May 2024 (UTC)


== Deletion of Template:WPBannerMeta/taskforce caused a table error at Template:WPBannerMeta/hooks/taskforces/taskforce ==
== Proposed extension to usage of project banners ==


Deletion of {{tl|WPBannerMeta/taskforce}} has caused a table error at {{tl|WPBannerMeta/hooks/taskforces/taskforce}}. I don't know what was in that deleted page, so I don't know what to insert into the latter page's noinclude tags to work around this error. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 13:33, 26 April 2024 (UTC)
Comments please, on [[Wikipedia:Village pump (idea lab)/Archive 26#Semi-automate DELSORT based on Project tags]]. Thanks, [[User:Cabayi|Cabayi]] ([[User talk:Cabayi|talk]]) 14:10, 31 October 2018 (UTC)

:It wasn't being used, so I have deleted it under G8 &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 13:54, 26 April 2024 (UTC)
::It looks like {{tl|WPBannerMeta/hooks/taskforces/templatepage}} may also have become unused and deleteable. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 14:32, 27 April 2024 (UTC)
:::I believe it is only [[Template:WikiProject Indian roads]], [[Template:WikiProject U.S. Roads]] and possibly some other roads projects that are using this depcrecated code now &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 14:22, 30 April 2024 (UTC)

== Classifying subpages in main talk ==
{{moved to|Template talk:Pagetype}}
All pages not in article space are automatically detected as being non-articles. But Gonnym pointed out that we have some subpages in Main talk space (e.g. [[Talk:Multiverse (Marvel Cinematic Universe)/FAQ]]) which should also be classified as non-articles. The types I have seen are FAQ pages like the above, or talk archive pages. It is not clear how we should classify them (e.g. Project-class) or just use the default NA-class for these types of page. Does anyone have any opinion? &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 17:50, 6 May 2024 (UTC)

:I'd say that talk archive can be NA like regular talk. /FAQ (and maybe /GA) ideally should be project but if that is an issue then NA can work also (or allow manual override with the normal class parameter). [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 08:15, 7 May 2024 (UTC)
::I think I would prefer to treat all these subpages in the same way, rather that try to guess what they are based on the name of the page &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 11:10, 7 May 2024 (UTC)

== Moving notes to banner shell ==

There is some talk on [[Template talk:WikiProject banner shell#needs-infobox, and related|Template talk:WikiProject banner shell]] about moving certain commonly used notes (e.g. attention needed, infobox needed, image needed) to the banner shell, to avoid multiple projects having to replicate the same parameter. Any comments over there please &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 15:09, 21 May 2024 (UTC)

== Outdated code/hooks ==

I am working through the remaining templates using the [[:Category:WPBannerMeta hooks|old hooks]].
* [[Template:WikiProject Australian Roads]] - {{done}}
* [[Template:WikiProject Indian roads]] - {{done}}
* [[Template:WikiProject U.S. Roads]] - tricky
If anyone knows of any more please add to the list &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 15:29, 23 May 2024 (UTC)

Revision as of 16:47, 23 May 2024

WikiProject iconCouncil
WikiProject iconThis module relates to the WikiProject Council, a collaborative effort regarding WikiProjects in general. If you would like to participate, please visit the project discussion page.

Template uses custom code to implement a custom quality rating, but it does not do it in the usual way with a custom mask. I'm not sure what to do with this template so dropping it here in case others have an idea. — Martin (MSGJ · talk) 23:15, 23 February 2024 (UTC)[reply]

@Kanashimi, @Qwerfjkl: please could you not remove any class parameter from this template until we figure out the best way to code it? It is using a custom mask, but not in the usual way. — Martin (MSGJ · talk) 20:56, 2 March 2024 (UTC)[reply]
Martin, I've stopped my bot, it's run on the vast majority of pages. — Qwerfjkltalk 20:58, 2 March 2024 (UTC)[reply]
Okay, wow. I didn't realise you had already finished! — Martin (MSGJ · talk) 20:59, 2 March 2024 (UTC)[reply]
Martin, yes, we've totally emptied the main two categories (in the main talk namepace). Around 4-5 million pages, I think. — Qwerfjkltalk 21:01, 2 March 2024 (UTC)[reply]
Yes, we've already processed a round of major categories. But I'm still on the task of removing obsolete parameters. I suggest adding {{Etymology section}} to Category:WikiProjects using a non-standard quality scale first. Kanashimi (talk) 22:53, 2 March 2024 (UTC)[reply]
How is that template not appearing in Category:WikiProject banners with non-standard names? Gonnym (talk) 13:33, 3 March 2024 (UTC)[reply]
The current logic is (args.PROJECT_NAME=='WikiProject '..project or not args.PROJECT_NAME) and current_page.rootPageTitle.prefixedText~='Template:WikiProject ' .. project In this case the project name is not WikiProject PROJECT and it is not undefined — Martin (MSGJ · talk) 13:56, 3 March 2024 (UTC)[reply]
Maybe adjust this so we check either if |PROJECT_NAME= is equal to "WikiProject project" OR the template name does not start with "WikiProject"? Since we standardized on "WikiProject project" for these templates, there really shouldn't be many with non-standard valid names I think, unless I missed something. Gonnym (talk) 15:23, 3 March 2024 (UTC)[reply]
This banner isn't for a WikiProject. Perhaps that issue should be corrected instead? Izno (talk) 17:53, 3 March 2024 (UTC)[reply]
Isn't it part of linguistics project? — Martin (MSGJ · talk) 19:22, 3 March 2024 (UTC)[reply]
A task force of that project, yes. Izno (talk) 22:11, 3 March 2024 (UTC)[reply]
I usually nominate task force banners to merge with their project banner but because this had manual code in it I left it alone for now as I didn't investigate what that code does and if indeed it needs manual code. Gonnym (talk) 06:52, 4 March 2024 (UTC)[reply]
I think I'll start by removing the custom code and attempting to use the standard methods. If that works then we can look at the next step — Martin (MSGJ · talk) 18:31, 4 March 2024 (UTC)[reply]
Conclusion: it is easy to convert it, but some categories would need to be renamed. Test cases at Template:Etymology section/testcases. I have also dropped a note on Wikipedia talk:WikiProject Linguistics. Also, there are only 145 pages using this template so it was never really adopted on any scale — Martin (MSGJ · talk) 18:47, 4 March 2024 (UTC)[reply]
Maybe after merging with {{WikiProject Linguistics}}, the syntax can be changed to something similar to this:
so instead of a new set of unique classes, it will just be another parameter that will trigger the placement in the category. Gonnym (talk) 10:02, 6 March 2024 (UTC)[reply]
Sounds like a good plan. I also think we could rename Category:Articles with mid-importance etymologies to Category:Mid-importance etymology articles or similar — Martin (MSGJ · talk) 10:30, 6 March 2024 (UTC)[reply]
I feel like those are just other ways to grade each article with a class, which we have examples of for task forces. Good would put it in B, incomplete C or start, unassessed is missing a grade, and missing is probably equivalent to unassessed ultimately... Izno (talk) 17:17, 6 March 2024 (UTC)[reply]
That's also a good point. Gonnym (talk) 07:19, 7 March 2024 (UTC)[reply]
Missing etymology might just be like |needs-infobox= I guess, but the rest all have direct analogs to our rating system. Izno (talk) 16:32, 7 March 2024 (UTC)[reply]

Due to the lack of any response at the project talk page, it seems no one is interested in this template, so I have just removed the non-standard assessments altogether. If this gets reverted then we can look at methods to preserve the assessments in a more standard way — Martin (MSGJ · talk) 09:15, 3 April 2024 (UTC)[reply]

Execution time

I've recently been looking into the execution time of this module due to a couple of lua timeout errors occassionally popping up on larger pages with a lot of banner templates (e.g. 1, 2, 3 (not entirely wpb's fault)). I've already proposed a change to a module this module uses which should solve the issue well enough, but I think it's still worth looking into optimising this code.

I've noticed that this module can call Pagetype (which is intensive in comparison to most things required) on the same page up to (but not always) 3 times while handling a banner (see lines 161, 299, and 327). Considering 2 of them are caused by calling class_mask (definitely a duplicate pagetype call we don't need to make), I feel like it should be possible to reduce the max calls to 2, but the functionality of some of this module is beyond me (no clue what FQS means to start with), so I'm not confident I could optimise this myself without breaking some sort of functionality. Could someone consider taking a look at this? Aidan9382 (talk) 22:16, 21 March 2024 (UTC)[reply]

I guess it should be possible to reduce the calls to pagetype to 1. I'll have a look when I get a chance — Martin (MSGJ · talk) 22:38, 21 March 2024 (UTC)[reply]
Okay please have a look at my changes in the sandbox. There would need to be a minor change to Module:Banner shell at the same time — Martin (MSGJ · talk) 12:32, 22 March 2024 (UTC)[reply]
No comment on functionality, but I imagine there are testcases for this module in terms of that (though unless there was some sort of super specific scenario where the main function specifically but not the class mask wanted to ignore disambiguation, I doubt anything is broken). Thanks to this change and a change in a different module, the sandbox version is now running about 6.5 times faster than the live version in the worst case scenario (significantly large pages, all 3 pagetype calls - I'm using Talk:List of common misconceptions for my testcases), which is a huge improvement, so thanks for doing that. I'd recommend updating banner shell before this module whenever that happens so there isn't a small window where stuff breaks. Aidan9382 (talk) 17:04, 22 March 2024 (UTC)[reply]
Great. I've implemeneted your changes to pagetype. I will have a look to see if any other changes are needed to banner shell and then probably do that one later today. Can I ask how you came across Talk:List of common misconceptions and discovered the issue? By the way, when we have resolved all the conflicting article ratings, I hope we will be able to improve efficiency by just doing the quality assessment once (on the banner shell) rather than having to it on each individual banner — Martin (MSGJ · talk) 19:30, 22 March 2024 (UTC)[reply]
I came across that talk page since my bot, which handles bad archive values in {{User:MiszaBot/config}} as one of its tasks, kept throwing warnings for pages that had appeared in a tracking category despite having what it (correctly) thought was the already right input (you can see the result of me purging some of the pages to temporarily remove the timeout in Special:Diff/1214818416). I just removed templates and used show preview till I found what was responsible for the majority of the execution time, which is why I've been improving the execution time of multiple modules recently. Aidan9382 (talk) 19:39, 22 March 2024 (UTC)[reply]
New code deployed, so hopefully that reduces the lag on these pages — Martin (MSGJ · talk) 21:06, 24 March 2024 (UTC)[reply]
Thanks, stuff's looking much better now (not even 2s on the misconceptions page compared to over 6s before the updates). Aidan9382 (talk) 21:28, 24 March 2024 (UTC)[reply]

Documentation

There is a piece of automatically generated documentation on Template:WikiProject Military history that says "This project has opted out of project-independent quality assessments and is using a custom class mask." The Project has not opted out of project-independent quality assessments. Can we delete "has opted out of project-independent quality assessments"? I am unsure where this is done. Hawkeye7 (discuss) 00:07, 1 April 2024 (UTC)[reply]

The military history project has opted out of PIQA. That is the only way to support the custom quality scale. — Martin (MSGJ · talk) 09:10, 1 April 2024 (UTC)[reply]
What would be the effect of adopting the PIQA? Hawkeye7 (discuss) 17:43, 1 April 2024 (UTC)[reply]
Losing all the custom logic in Template:WikiProject Military history/class — Martin (MSGJ · talk) 09:09, 3 April 2024 (UTC)[reply]
Does that include the A-class logic or just the B-class logic? Hawkeye7 (discuss) 18:12, 3 April 2024 (UTC)[reply]
You'd certainly lose AL, BL and CL, probably several of the others; you might be left with just the standard scale (FA, A, GA, B, C, Start, Stub, FL, List). --Redrose64 🌹 (talk) 19:01, 3 April 2024 (UTC)[reply]

PROJECT_STATUS parameter

The module currently has an undocumented parameter for the status of a project, which will add a CSS class to the outer table. For example if you set |PROJECT_STATUS=semiactive then it will add class="semi-active-project". Does anyone know if this has any purpose or is used by any tools? It either needs documenting properly or removing — Martin (MSGJ · talk) 11:53, 24 April 2024 (UTC)[reply]

The rendering of the banner changes also, see uses. Izno (talk) 16:45, 25 April 2024 (UTC)[reply]
The rendering of inactive banners is not triggered by the PROJECT_STATUS parameter. It's produced by a different ("inactive") function of the module — Martin (MSGJ · talk) 08:58, 26 April 2024 (UTC)[reply]
This parameter was added in 2021 after this request by User:MJL. The rationale given was "The change adds a new class to the banner which would allow users to hide inactive WikiProject at their own discretion". — Martin (MSGJ · talk) 09:01, 26 April 2024 (UTC)[reply]

Here are my thoughts:

  • It is understandable that some editors wish to hide inactive banners, and the inactive-project class should continue to be applied to inactive banners.
  • I do not see the value of active-project or semi-active-project and I don't believe anyone is using these.
  • The |PROJECT_STATUS= parameter can be dropped from active project banners
  • For inactive banners, there may be some utility in allowing |PROJECT_STATUS=defunct to be defined instead of the default |PROJECT_STATUS=inactive. So this parameter should continue to be supported for inactive banners.
  • Other statuses listed at Wikipedia:Inactive WikiProjects such as "dormant", "revivable", "dead", "stillborn" will not be supported unless there is a specific request for this.

— Martin (MSGJ · talk) 11:16, 29 April 2024 (UTC)[reply]

@MSGJ: I'd agree with what you've laid out there. –MJLTalk 18:30, 29 April 2024 (UTC)[reply]
Out of interest, did you use personal CSS to hide these banners, or are you aware of users who have done so? — Martin (MSGJ · talk) 20:27, 29 April 2024 (UTC)[reply]
 Done — Martin (MSGJ · talk) 11:20, 9 May 2024 (UTC)[reply]

Deletion of Template:WPBannerMeta/taskforce caused a table error at Template:WPBannerMeta/hooks/taskforces/taskforce

Deletion of {{WPBannerMeta/taskforce}} has caused a table error at {{WPBannerMeta/hooks/taskforces/taskforce}}. I don't know what was in that deleted page, so I don't know what to insert into the latter page's noinclude tags to work around this error. – Jonesey95 (talk) 13:33, 26 April 2024 (UTC)[reply]

It wasn't being used, so I have deleted it under G8 — Martin (MSGJ · talk) 13:54, 26 April 2024 (UTC)[reply]
It looks like {{WPBannerMeta/hooks/taskforces/templatepage}} may also have become unused and deleteable. – Jonesey95 (talk) 14:32, 27 April 2024 (UTC)[reply]
I believe it is only Template:WikiProject Indian roads, Template:WikiProject U.S. Roads and possibly some other roads projects that are using this depcrecated code now — Martin (MSGJ · talk) 14:22, 30 April 2024 (UTC)[reply]

Classifying subpages in main talk

All pages not in article space are automatically detected as being non-articles. But Gonnym pointed out that we have some subpages in Main talk space (e.g. Talk:Multiverse (Marvel Cinematic Universe)/FAQ) which should also be classified as non-articles. The types I have seen are FAQ pages like the above, or talk archive pages. It is not clear how we should classify them (e.g. Project-class) or just use the default NA-class for these types of page. Does anyone have any opinion? — Martin (MSGJ · talk) 17:50, 6 May 2024 (UTC)[reply]

I'd say that talk archive can be NA like regular talk. /FAQ (and maybe /GA) ideally should be project but if that is an issue then NA can work also (or allow manual override with the normal class parameter). Gonnym (talk) 08:15, 7 May 2024 (UTC)[reply]
I think I would prefer to treat all these subpages in the same way, rather that try to guess what they are based on the name of the page — Martin (MSGJ · talk) 11:10, 7 May 2024 (UTC)[reply]

Moving notes to banner shell

There is some talk on Template talk:WikiProject banner shell about moving certain commonly used notes (e.g. attention needed, infobox needed, image needed) to the banner shell, to avoid multiple projects having to replicate the same parameter. Any comments over there please — Martin (MSGJ · talk) 15:09, 21 May 2024 (UTC)[reply]

Outdated code/hooks

I am working through the remaining templates using the old hooks.

If anyone knows of any more please add to the list — Martin (MSGJ · talk) 15:29, 23 May 2024 (UTC)[reply]

Leave a Reply