Module talk:WikiProject banner/Archive 14: Difference between revisions

Content deleted Content added
m Archiving 2 discussion(s) from Module talk:WikiProject banner) (bot
m Archiving 1 discussion(s) from Module talk:WikiProject banner) (bot
 
(8 intermediate revisions by 2 users not shown)
Line 166:
I am thinking about adding the B-class checklist to the module so [[Template:WPBannerMeta/hooks/bchecklist|the hook]] will not be required. This could automatically display whenever the parameters {{para|b1}}, {{para|b2}}, etc. are passed. It will need to be a bit clever in order not to display twice on banners which are using the hook, e.g. do not display the checklist if {{para|HOOK_ASSESS}} is defined. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 12:48, 23 June 2023 (UTC)
:Could anyone who is good with CSS tell me what I need to do to get the [show] buttons to align in the example below? It's driving me crazy. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 14:03, 28 June 2023 (UTC)
<syntaxhighlight lang=wikitext>{{WPBannerMeta/test|category=no|class=c|b1=|b2=n|b3=y|b4=y|b5=na|b6=jo|attention-needed=y|needs-infobox=y}}</syntaxhighlight>
::It's the margin and padding, but the two rows do it in different ways - one via <code>style=</code> attributes, the other through classes and stylesheets. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 20:41, 28 June 2023 (UTC)
 
Line 621:
::I see the problem has now been fixed.--[[User:Ipigott|Ipigott]] ([[User talk:Ipigott|talk]]) 06:46, 19 December 2023 (UTC)
:::No idea what caused it, but don't think it was template-related &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 09:19, 19 December 2023 (UTC)
 
== Merge of B-class checklist ==
 
I am planning to make [https://en.wikipedia.org/w/index.php?title=Module:WikiProject_banner/auxiliary/sandbox&diff=prev&oldid=1190568391 this change] tp the B-class checklist code, to allow the deprecation of [[Template:WikiProject Military history/bchecklist]]. Pinging @[[User:DFlhb|DFlhb]] for any comment. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 17:02, 18 December 2023 (UTC)
 
:Looks fine to me - [[User:DFlhb|DFlhb]] ([[User talk:DFlhb|talk]]) 18:57, 19 December 2023 (UTC)
 
==Discussion at [[:Template talk:WikiProject banner shell#Duplicate banner templates category|Template talk:WikiProject banner shell §&nbsp;Duplicate banner templates category]]==
[[File:Symbol watching blue lashes high contrast.svg|25px|link=|alt=]]&nbsp;You are invited to join the discussion at [[:Template talk:WikiProject banner shell#Duplicate banner templates category|Template talk:WikiProject banner shell §&nbsp;Duplicate banner templates category]]. &zwj;—&zwj;[[User:A smart kitten|a&nbsp;smart kitten]]<sub>[<nowiki/>[[User talk:A smart kitten|meow]]]</sub> 01:23, 26 December 2023 (UTC)<!-- [[Template:Please see]] -->
 
== WP US not hooking into PageAssessments ==
 
[[Template:WikiProject United States]] appears to use this banner template, but it doesn't seem to be hooking into PageAssessments for its subprojects. I started a [[Template talk:WikiProject United States#Compatibility with CleanupWorklistBot|discussion at the appropriate spot]] three months ago, but nobody is answering it. This is causing incomplete data in the CleanupWorklistBot-generated lists, specifically [https://bambots.brucemyers.com/cwb/alpha/Louisville.html importance and class aren't showing up]. Can this be fixed somehow, or am I going to have to consider withdrawing projects I maintain from WP US just to get a banner that performs as it should? [[User:StefenTower|<span style="color: green;">'''Stefen <span style="white-space: nowrap;">Tower<sub>s among the rest!</sub></span>'''</span>]] <sup>[[User talk:StefenTower|Gab]] • [[Special:Contributions/StefenTower|Gruntwerk]]</sup> 18:58, 4 January 2024 (UTC)
 
:I believe it is working correctly. I chose a random example [[Digital Equipment Corporation]] and you can see the subproject Massachusetts at the bottom of [https://en.wikipedia.org/w/api.php?action=query&prop=pageassessments&titles=Digital%20Equipment%20Corporation&pasubprojects=true this]. If you still think there is an error, can you provide an example that does not work? &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 20:01, 4 January 2024 (UTC)
::I linked to the example. They're not showing up in the CleanupWorklistBot results, which draws from PageAssessments. [[User:StefenTower|<span style="color: green;">'''Stefen <span style="white-space: nowrap;">Tower<sub>s among the rest!</sub></span>'''</span>]] <sup>[[User talk:StefenTower|Gab]] • [[Special:Contributions/StefenTower|Gruntwerk]]</sup> 20:02, 4 January 2024 (UTC)
:::A random example from that page is [[1792 Bourbon]] and the output is [https://en.wikipedia.org/w/api.php?action=query&prop=pageassessments&titles=1792%20Bourbon&pasubprojects=true here]. I suspect the problem is with that tool, not with this module. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 20:04, 4 January 2024 (UTC)
::::Hrrrm, thanks. I had no idea how to check this area as it's completely outside my knowledge set. Well, back to the bot developer. :) [[User:StefenTower|<span style="color: green;">'''Stefen <span style="white-space: nowrap;">Tower<sub>s among the rest!</sub></span>'''</span>]] <sup>[[User talk:StefenTower|Gab]] • [[Special:Contributions/StefenTower|Gruntwerk]]</sup> 20:07, 4 January 2024 (UTC)
:::::I would ask the question whether [[User:CleanupWorklistBot]] is designed to work with subprojects, and if not could that functionality be added &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 20:08, 4 January 2024 (UTC)
::::::OK, this is now cleared up and bot's code has been changed to cover this. Thank you for your assistance! [[User:StefenTower|<span style="color: green;">'''Stefen <span style="white-space: nowrap;">Tower<sub>s among the rest!</sub></span>'''</span>]] <sup>[[User talk:StefenTower|Gab]] • [[Special:Contributions/StefenTower|Gruntwerk]]</sup> 20:38, 5 January 2024 (UTC)
 
== Class colours ==
 
We are currently using two sets of colours for the quality classes. The main set comes from [[Module:Class]] and a separate set of paler colours which were developed in response to concerns about contrast and accessibility, and are used for the assessment "bubbles", which you see in the nested version.
{| class="wikitable"
!Class
!Standard
!Pale
|-
!FA
|style="background:#9cbdff"|
|style="background:#BED3FF"|
|-
!A
|style="background:#66ffff"|
|style="background:#C0FFFF"|
|-
!GA
|style="background:#66ff66"|
|style="background:#C0FFC0"|
|-
!B
|style="background:#b2ff66"|
|style="background:#DFFFBF"|
|-
!C
|style="background:#ffff66"|
|style="background:#FFFFBE"|
|-
!Start
|style="background:#ffaa66"|
|style="background:#FFDBBF"|
|-
!Stub
|style="background:#ffa4a4"|
|style="background:#FFC0C0"|
|-
!List
|style="background:#c7b1ff"|
|style="background:#D2C0FF"|
|-
!NA
|style="background:#f5f5f5"|
|style="background:#F5F5F5"|
|-
!Unassessed
|style="background:#dcdcdc"|
|style="background:#dcdcdc"|
|}
I was going to suggest that we settle on using the pale set for both? &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 19:51, 17 December 2023 (UTC)
:Examples below show current and proposed.
{{WPBS|category=no|
{{WikiProject Cycling/sandbox|class=start|importance=low|demo_page=Talk:Downingtown Country Club}}
{{WikiProject Cycling|class=start|importance=low|demo_page=Talk:Downingtown Country Club}}
}}
:&mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 13:09, 18 December 2023 (UTC)
:Colours have now been updated. Should be do the same for the importance colours? &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 17:34, 19 December 2023 (UTC)
::I'd support that. The accessibility reasons that drove paler colours for the bubbles, also apply to other places those colours are used - [[User:DFlhb|DFlhb]] ([[User talk:DFlhb|talk]]) 14:25, 20 December 2023 (UTC)
:::I was also wondering whether we could just put "Start" and "Low" in the bubble, rather than "Start-class" and "Low-importance". The full wording is available in the expanded version of the banner anyway. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 15:28, 20 December 2023 (UTC)
::::No opinion, I'll let others chime in on that [[User:DFlhb|DFlhb]] ([[User talk:DFlhb|talk]]) 17:26, 20 December 2023 (UTC)
 
===Importance colours ===
{| class="wikitable"
!Importance
!Standard
!Pale
|-
!Top
|style="background:#ff97ff"|
|style="background:#FFBFFF"|
|-
!High
|style="background:#ffacff"|
|style="background:#FFCCFF"|
|-
!Mid
|style="background:#ffc1ff"|
|style="background:#FFD9FF"|
|-
!Low
|style="background:#ffd6ff"|
|style="background:#FFE7FF"|
|-
!Bottom
|style="background:#ffebff"|
|style="background:#FFEBFF"|
|-
!NA
|style="background:#f5f5f5"|
|style="background:#F5F5F5"|
|-
!Unknown
|style="background:#dcdcdc"|
|style="background:#dcdcdc"|
|}
I notice that Bottom-importance is indistinguishable from Low-importance in the pale colours. Can a paler version of Bottom be used? &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 11:16, 3 January 2024 (UTC)
 
:These paler importance colours are now in use &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 07:48, 6 January 2024 (UTC)
 
== Possible room for improvement in the unknown parameter check ==
 
I don't know why I had to [https://en.wikipedia.org/w/index.php?title=Template%3AWikiProject_European_Microstates&diff=1195022260&oldid=1195003018 do this] (add pipes to parameter names) to have the template recognize the parameters as valid in the parameter check. See [https://en.wikipedia.org/w/index.php?diff=1195022358&oldid=1194955701#Andorra-importance this discussion]. Is there any documentation about how this module determines which parameters are valid? – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 23:38, 11 January 2024 (UTC)
 
:Coincidentally, a change was made to the sandbox earlier today which should resolve this &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 23:40, 11 January 2024 (UTC)
::Groovy. Thanks. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 00:15, 12 January 2024 (UTC)
:::Super. I'll note that the /doc currently has both (piped and un-piped) as examples, which led to my own confusion (see the edits previous to Jonesey's). [[User:Primefac|Primefac]] ([[User talk:Primefac|talk]]) 07:24, 12 January 2024 (UTC)
::::The unpiped form is generally not a good idea.
::::First consider the situation when the template code has the pipe in a line like <syntaxhighlight lang=wikitext> |tf 1 importance={{{Andorra-importance|}}}</syntaxhighlight> If that template is transcluded, it makes no difference whether the {{para|Andorra-importance}} parameter is absent from a transclusion, e.g. {{tlx|WikiProject European Microstates}} with no parameters, or is present but blank, e.g. {{tlx|WikiProject European Microstates|2=Andorra-importance=}} - in both cases the {{para|tf 1 importance}} parameter inside the template is fed an empty string.
::::Now consider the situation when the template code lacks the pipe - i.e. <syntaxhighlight lang=wikitext> |tf 1 importance={{{Andorra-importance}}}</syntaxhighlight> If that template is transcluded, it does make a difference whether the {{para|Andorra-importance}} parameter is absent from a transclusion, or is present but blank. When it is present but blank, the {{para|tf 1 importance}} parameter inside the template is fed an empty string, as expected. But when the {{para|Andorra-importance}} parameter is absent from a transclusion, e.g. {{tlx|WikiProject European Microstates}} with no parameters, the ''literal'' value <code><nowiki>{{{Andorra-importance}}}</nowiki></code> is passed through {{para|tf 1 importance}}. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 18:09, 12 January 2024 (UTC)
 
== PageAssessments on banners not using assessments ==
 
There is some discussion on [[:meta:User talk:Community Tech bot#Popular pages not updating|User talk:Community Tech bot]] with suggestions that banners should be populating the PageAssessments database even if they are not using any quality or importance ratings. This is the first I've heard of this. Does anyone know about this? &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 11:07, 19 January 2024 (UTC)
 
:[https://en.wikipedia.org/w/index.php?title=Module:WikiProject_banner/sandbox&diff=prev&oldid=1197141198 This] would be an easy fix - I'm just not convinced that we ever did this in the previous version of this template. Any reasons not to do this? &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 11:18, 19 January 2024 (UTC)
::I was wrong. The previous code was <code><nowiki>{{#assessment:{{{PROJECT}}}|{{#ifeq:{{str right|{{{class|¬¬}}}|1}}|¬||{{str right|{{{class|}}}|1}}}}|{{#ifeq:{{{importance|¬}}}|¬||{{{importance}}}}}}}</nowiki></code> so we did call this for every project. I will make the fix &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 19:26, 19 January 2024 (UTC)
:::{{done}} &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 21:05, 20 January 2024 (UTC)
::::@[[User:MSGJ|MSGJ]] Thanks for making this change! I see now [[Special:PageAssessments]] has [https://en.wikipedia.org/wiki/Special:PageAssessments?project=Classical+music&namespace=0&page_title= results for 'Classical music']. WikiProject [https://en.wikipedia.org/wiki/Special:PageAssessments?project=U.S.+Roads&namespace=0&page_title= U.S. Roads] now does too, but evidently not the subprojects such as [https://en.wikipedia.org/wiki/Special:PageAssessments?project=U.S.+Roads%2FCalifornia&namespace=0&page_title= U.S. Roads/California]. This issue seems to date back to March 2023, not August, so it's likely a separate issue. At quick glance, [https://en.wikipedia.org/w/index.php?title=Template%3AWikiProject_U.S._Roads&diff=1145411468&oldid=1134222819 this series of edits] (and possibly the subsequent use of the module) could be the cause. Any ideas? Also pinging @[[User:Fredddie|Fredddie]]. Thanks and regards, <span style="font-family:sans-serif">&mdash; <span style="font-weight:bold">[[User:MusikAnimal|<span style="color:black; font-style:italic">MusikAnimal</span>]] <sup>[[User talk:MusikAnimal|<span style="color:green">talk</span>]]</sup></span></span> 23:28, 24 January 2024 (UTC)
:::::I think I've fixed U.S. Roads with the following [https://en.wikipedia.org/w/index.php?title=Template:WikiProject_U.S._Roads/taskforce&diff=prev&oldid=1198750999 edit]. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 23:59, 24 January 2024 (UTC)
:::::PageAssessments will not be used for task forces unless the TF_n_NAME parameter is defined for each task force, so I guess this is missing for the U.S. Roads project. This project's banner is on my to-do list as it contains lots of outdated stuff, so I will hopefully get to it soon. In the meantime WOSlinker's kludge should work &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 08:55, 25 January 2024 (UTC)
::::::Sounds great. Thank you all! <span style="font-family:sans-serif">&mdash; <span style="font-weight:bold">[[User:MusikAnimal|<span style="color:black; font-style:italic">MusikAnimal</span>]] <sup>[[User talk:MusikAnimal|<span style="color:green">talk</span>]]</sup></span></span> 19:03, 25 January 2024 (UTC)
 
== Alternative way of triggering task forces ==
 
Some projects, including US Roads discussed above, have a different way of triggering task forces, where the ''value'' of a parameter defines the task force rather than the ''name'' of the parameter. For example {{para|AL|yes}} uses the name of the parameter "AL" to define the task force; this is the way that most banners work. US Roads uses {{para|state1|AL}} or {{para|state2|AL}}, etc. and the value of the parameter "AL" defines the task force. This is currently really hard to code using this module, so I am thinking about other possibilities.
 
For example we could use {{para|TF_PARAMETER_PREFIX|state}} with {{para|tf 1|AL}} (or maybe a different parameter like {{para|tf 1 value|AL}} would be more sensible). Then the module could check all parameters of the form {{para|state1}}, {{para|state2}}, {{para|state3}}, etc. and if any of those have value "AL" then the task force is triggered.
 
I'm just brainstorming at the moment, so any ideas would be good &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 10:08, 31 January 2024 (UTC)
 
:In that specific template, is there anything that is blocking converting {{para|state{{var|n}}}} uses ({{para|state20|AL}}) to just use {{para|AL|yes}}? [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 15:32, 31 January 2024 (UTC)
::Do you mean a bot run to change these over? Yes, that could be possible alternative if the project was okay with that. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 15:54, 31 January 2024 (UTC)
:::Yes. It seems much more trouble adding and supporting code that only one project uses instead of fixing that project's code to use the same style that every other project does. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 18:18, 31 January 2024 (UTC)
::::I've made the suggestion at [[Template talk:WikiProject U.S. Roads]] &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 18:31, 31 January 2024 (UTC)
:::::An unpromising response over there. I feel it wouldn't be difficult to add this functionality to the module, without adding any overhead to existing uses. It could also be useful in other banners, e.g. Canada Roads &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 19:00, 2 February 2024 (UTC)
 
== More page types ==
 
Now [[Module:Pagetype]] has the ability to detect two more types of page: soft redirects and set index articles. I proposed to make use of this by:
* Automatically assessing soft redirects as Redirect-class, in any namespace;
* Automatically assessing set index articles as List-class in article space, ''if no valid class is defined''. (There are sometimes SIAs which are mischaracterised, so it would be useful to be able to override the default.)
Thoughts? &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 18:59, 2 February 2024 (UTC)
 
:Code for this is now on [[Module:WikiProject banner/sandbox]] and [[Module:Banner shell/sandbox]]. Requested by @[[User:PARAKANYAA|PARAKANYAA]] and @[[User:Hawkeye7|Hawkeye7]]. Have also taken the time to merge in the code from [[Module:Class mask]]. Needs a lot more testing though ... &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 20:11, 25 February 2024 (UTC)
::Switching to use the sandbox version moved the article from [[:Category:Unassessed articles]] to [[:Category:NA-Class articles]] but I think it should be in [[:Category:Redirect-Class articles]]. [[User:Hawkeye7|<span style="color:#800082">Hawkeye7</span>]] [[User_talk:Hawkeye7|<span style="font-size:80%">(discuss)</span>]] 20:43, 25 February 2024 (UTC)
:::Please tell me which page you are testing on? Redirect-class will generally be used if the project has created the corresponding category, otherwise it falls back to NA-class &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 20:45, 25 February 2024 (UTC)
:::: The page in question is [[-izzle]]. I have left it using the sandbox version so you can see it. Originally it had the banner shell but was not tagged for a project; I don't know how many of these are out there. As noted, Sandbox version switched it from [[:Category:Unassessed articles]] to [[:Category:NA-Class articles]]. Then, in response to your comment, I added a project template, {{tl|WikiProject English Language}}. This is a standard template that uses [[Module:WikiProject banner]]. This caused a switch. It is now listed as [[:Category:Unassessed English Language articles]] despite the fact that the {{tl|WikiProject banner shell/sandbox}} template has a Class=Redirect card. No error is reported. I think it should have gone into [[:Category:NA-Class English Language articles]] although it would be better still to create the Redirect category. [[User:Hawkeye7|<span style="color:#800082">Hawkeye7</span>]] [[User_talk:Hawkeye7|<span style="font-size:80%">(discuss)</span>]] 21:03, 26 February 2024 (UTC)
:::::It's because {{tl|WikiProject English Language}} is using the live code and not the sandbox code that I have changed. If you have a look now, I have added the sandbox version and it is using [[:Category:NA-Class English Language articles]]. (If [[:Category:Redirect-Class English Language articles]] existed then it would use that, but it doesn't so falls back to NA-Class.) Hope this all makes sense &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 22:14, 26 February 2024 (UTC)
 
:Most tests are working well (see [[Module talk:WikiProject banner/testcases]]). There is one apparent issue. I proposed above that set index articles could be manually assessed but will default to List-class. This is indeed possible, but this manual assessment would not be inherited by banners inside the banner shell (inheriting only happens if the article is otherwise unassessed by the banner, but in this situation it will not be unassessed because it will default to list-class). So I think the only two options are:
:* Automatic assessment of SIAs as list-class: no ability to override manually
:* No auto-assessment of SIAs: each one will need to be assessed individually (this is the status quo)
:Not sure if anyone has an opinion of this? &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 19:30, 26 February 2024 (UTC)
::I suspect the status quo is better (manual is better than incorrect automatic), but the cost of such errors appears to be low, so I don't hold the opinion strongly. — [[User:Hike395|hike395]] ([[User talk:Hike395|talk]]) 09:08, 27 February 2024 (UTC)
:::I don't really mind either way. A few comments:
:::* [[Wikipedia:Content assessment]] makes it clear that a SIA should be assessed as List-class.
:::* If editors are trying to change that, it's probably because it's not really an SIA, in which case the template on the article should probably be changed.
:::* A common issue is that editors try to rate them as Disambig-class instead. This causes issues because Disambig-class is automatically detected, and only when specific disambiguation templates are used on the article. Auto-assessing these as List-class might prevent this issue.
:::So we can either keep status quo (probably more straightforward) or we can start auto-assessing and be ready to revert if any problems/complaints arise. If no complaints, then it means it was the correct thing to do. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 12:28, 28 February 2024 (UTC)
No further comments so I have implemented the code (''without'' the SIA detection for now) &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 12:49, 1 March 2024 (UTC)
 
This is fine by me. My concern was articles being marked as unassessed when they were not. I think at redirect and disambig should be standard grades, but that a a debate for another place and time. [[User:Hawkeye7|<span style="color:#800082">Hawkeye7</span>]] [[User_talk:Hawkeye7|<span style="font-size:80%">(discuss)</span>]] 21:00, 1 March 2024 (UTC)
 
==Discussion about centralizing TemplateData for WikiProject banners==
[[File:Symbol watching blue lashes high contrast.svg|25px|link=|alt=]]&nbsp;You are invited to join the discussion at [[:User talk:Evad37/rater.js#Aliases|User talk:Evad37/rater.js §&nbsp;Aliases]]. <span style="border:3px outset;border-radius:8pt 0;padding:1px 5px;background:linear-gradient(6rad,#86c,#2b9)">[[User:Sdkb|<span style="color:#FFF;text-decoration:inherit;font:100% Lucida Sans">Sdkb</span>]]</span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 17:50, 14 February 2024 (UTC)<!-- [[Template:Please see]] -->
 
:Not sure why Izno said it was impossible. I have made central documentation for a different module (see [[Module:Wikidata_table#L-650]]) that includes TemplateData for all its wrappers, and that seems to work well. Don't see why it couldn't be done here too &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 20:08, 14 February 2024 (UTC)
::Please respond at the original discussion, per [[WP:TALKFORK]]. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 04:11, 16 February 2024 (UTC)
:::It's a user talk page. Fine for brainstorming ideas, but if you want to progress anything then this is the page for that discussion ): &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 14:51, 16 February 2024 (UTC)
::::A user talk page for a widely used gadget/script. I think that page is preferable for the purposes of continuing an ongoing discussion.
::::As for why I said it was impossible, I am always happy to be proven wrong. What is certainly impossible is doing it without parsing the wikitext of the template in Lua, or a separate JSON page (at which point you might as well just plug in the TemplateData directly), or any of a variety of other things which are functionally equivalent to "you can't transclude <nowiki><templatedata></nowiki> and then extend a transclusion with the things that differ meaningfully". But now that you've split the discussion willfully, guess Sdkb will never know. :) [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 21:51, 16 February 2024 (UTC)
:::::I'm not a fan of talk forks like this, but thanks to the miracles of [[mw:Talk pages project/Notifications|modern technology]] I'm plenty aware 🙂 <span style="border:3px outset;border-radius:8pt 0;padding:1px 5px;background:linear-gradient(6rad,#86c,#2b9)">[[User:Sdkb|<span style="color:#FFF;text-decoration:inherit;font:1em Lucida Sans">Sdkb</span>]]</span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 22:19, 16 February 2024 (UTC)
:::::If you see what I did at [[Module:Wikidata table]], I think it would be very feasible to do something similar in this module. But I'm struggling to understand the purpose, because I thought TemplateData is only used by Visual Editor which is only used in mainspace, whereas this template is used on talk pages. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 23:18, 23 February 2024 (UTC)
::::::Rater appears to use TemplateData based on Ctrl + F in the minified source at [[User:Evad37/rater/app.js]]. And no, it is not solely a tool for VE. Either way, centralized TemplateData ''doesn't'' work with the actual TemplateData editor. Which may or may not be fine, but is an additional hurdle for users who might wish to modify the descriptions of certain parameters further. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 00:18, 24 February 2024 (UTC)
:::::::Yeah, adding on to Izno's reply, my understanding is that TemplateData was originally created for the VisualEditor, but that it now has other applications like the Rater script. And I'd expect further applications in the future as we create new scripts/tools, so I think it's best to always create TemplateData so that there will be machine-readable standardized information for any script/tool that wants to use it. Cheers, <span style="border:3px outset;border-radius:8pt 0;padding:1px 5px;background:linear-gradient(6rad,#86c,#2b9)">[[User:Sdkb|<span style="color:#FFF;text-decoration:inherit;font:1em Lucida Sans">Sdkb</span>]]</span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 00:33, 25 February 2024 (UTC)
::::::::I personally find it very useful to have the parameters listed in the visual editor for WikiProject banner templates. I have added several TemplateDatas to several of the documentation pages and I would love to see it implemented universally. I have no clue how to go about doing it though. [[User:It is a wonderful world|It is a wonderful world]] ([[User talk:It is a wonderful world|talk]]) 21:19, 8 March 2024 (UTC)
:::::::::As discussed above, visual editor is of no use to this template/module because it only exists on talk pages. The only use so far described, is possibly the Rater script. If there were more uses, it might make adding this more of a priority &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 20:05, 10 March 2024 (UTC)
::::::::::Apologies, when I said "visual editor", what I really meant was the "Insert a template" puzzle piece button at the top of the visual and source editor. [[User:It is a wonderful world|It is a wonderful world]] ([[User talk:It is a wonderful world|talk]]) 21:51, 10 March 2024 (UTC)
:::::::::::Ooh, the [[mw:Help:Extension:TemplateWizard]]. I can't believe I've never noticed this or used it before. Okay, I will add this task to my to-do list or perhaps someone will get to it before me &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 22:28, 10 March 2024 (UTC)
::::::::::::Thank you very much. It's not a top priority obviously but it would be nice. [[User:It is a wonderful world|It is a wonderful world]] ([[User talk:It is a wonderful world|talk]]) 06:52, 11 March 2024 (UTC)
Proof of concept: try using {{tl|WikiProject Norway/sandbox}} on a random talk page with the TemplateWizard. Only the class parameter is supported yet &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 22:18, 11 March 2024 (UTC)
 
:Yes, this is exactly what I was envisioning. Thank you. [[User:It is a wonderful world|It is a wonderful world]] ([[User talk:It is a wonderful world|talk]]) 05:51, 12 March 2024 (UTC)
::First iteration of this is now live. It will only work when {{para|DOC|auto}}. It can be improved further but let me know what you think so far? &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 11:12, 15 March 2024 (UTC)
:::Just been testing it on WikiProject Zimbabwe and WikiProject Water Sports, and it works very well for me on both. Though, on WikiProject Zimbabwe, it has an example and information dialogue for the <code>needs-infobox</code> parameter, but not for the <code>needs-photo</code> parameter. Thank you. [[User:It is a wonderful world|It is a wonderful world]] ([[User talk:It is a wonderful world|talk]]) 13:23, 15 March 2024 (UTC)
::::Yeah it's not finished yet. You can add a description in [[Module:WikiProject banner/templatepage/sandbox#L-669|line 669]] of the code if you wish &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 16:59, 15 March 2024 (UTC)
:::Looks good. Following [[Wikipedia:TemplateData/Tutorial#Completing_the_template_data_information]] I'd change the "string" types to "line" and maybe mark the class as "deprecated" instead of "suggested" as we're moving it to the banner? [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 18:34, 15 March 2024 (UTC)
::::Both good idea and {{done}} on the sandbox. The type:line doesn't seem to make any difference to the template wizard. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 22:10, 15 March 2024 (UTC)