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

Content deleted Content added
m Archiving 1 discussion(s) from Module talk:WikiProject banner) (bot
m Archiving 1 discussion(s) from Module talk:WikiProject banner) (bot
Line 750:
::::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)