Module talk:WikiProject banner/Archive 15: 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 142:
 
:I have applied a fix, hopefully will be resolved now &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 06:50, 21 June 2024 (UTC)
 
== Preview warning: unexpected parameter "attention" ==
 
I'm getting a red warning saying, {{Red|unexpected parameter "attention"}} while attempting the following:
: {{tlx|WikiProject Intertranswiki/OKA|attention{{=}}yes}}
The interesting thing is, that in preview mode it is properly generating the notice with the diamond caution sign and "immediate attention needed", as well as displaying the name of the hidden attention-needed category in the footer that would be populated if I hit Publish, but all of that with the Preview error at the same time.
 
Not sure if it's relevant, but the PROJECT param is {{pval|Intertranswiki/OKA task force}}, and a couple of redirects are involved:
* the project page {{no redirect|WP:WikiProject Intertranswiki/OKA task force}} is a redirect, pointing to [[WP:WikiProject Intertranswiki/OKA]]
* the template {{no redirect|Template:WikiProject Intertranswiki/OKA task force}} is a redirect, targeting {{tl|WikiProject Intertranswiki/OKA}}.
Have I bolloxed it all up with the redirects, somehow? Can someone help me understand what's going on? [[User:Mathglot|Mathglot]] ([[User talk:Mathglot|talk]]) 07:25, 2 July 2024 (UTC)
: Further data: I went ahead and saved the page with the Preview error anyway, at [[Draft talk:Contravention in French criminal law]] with the intention of pointing to the error here, but after publication the error was gone, and the banner message and hidden category look good. So far, so good; but {{para|attention}} is a valid parameter, so why does it say that it isn't in Preview? Preview mode still displays the error message now, if you edit it. [[User:Mathglot|Mathglot]] ([[User talk:Mathglot|talk]]) 07:36, 2 July 2024 (UTC)
:It's because you did not define the {{para|BANNER_NAME}} parameter, and so it uses by default Template:WikiProject+PROJECT which in this case yields [[Template:WikiProject Intertranswiki/OKA task force]] which is not the template but a redirect. I have added {{para|BANNER_NAME}} which I think has fixed it &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 08:07, 2 July 2024 (UTC)
:: {{u|MSGJ}}, Yes, it has! Thank you. Given the complexity of this Module, and the type of situations that might arise, I am considering adding a Troubleshooting section to the doc page, and this would be a good entry there. Or at least, where to look if you get that error message, would be a good start. Such a section might expand to cover other situations, as well. Thanks for your fixes to that template. [[User:Mathglot|Mathglot]] ([[User talk:Mathglot|talk]]) 10:35, 2 July 2024 (UTC)
:::In general though, this error should be a very rare edge case, as task forces should not have standalone banners as they should use the one of the project they belong to. In this situation, there isn't a project one at this moment. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 10:57, 2 July 2024 (UTC)
:::: {{u|Gonnym}}, thank you for your comment I did notice that the module had params like {{para|tf''N''}} for handling task forces, and I wondered how to proceed with that, given that the parent WikiProject didn't have its own banner, so I did the best I could. What I'm hearing, is, maybe this is too rare a case to be worth writing up as a troubleshooting case, and I accept that. But, what is the right path forward, here? Should Intertranswiki have its own banner, and then */OKA would use the {{para|tf''N''}} params? Or, is it good enough, the way things are, now? [[User:Mathglot|Mathglot]] ([[User talk:Mathglot|talk]]) 11:06, 2 July 2024 (UTC)
:::::I think that if there are not going to be any other task forces needing one, then don't bother changing it as it's already working. If another task force will need one then yes, they should be combined into one template. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 11:09, 2 July 2024 (UTC)