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 762:
:::::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 — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 08:55, 25 January 2024 (UTC)
::::::Sounds great. Thank you all! <span style="font-family:sans-serif">— <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 — Martin <small>([[User:MSGJ|MSGJ]] · [[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. — Martin <small>([[User:MSGJ|MSGJ]] · [[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]] — Martin <small>([[User:MSGJ|MSGJ]] · [[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 — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 19:00, 2 February 2024 (UTC)
|