Wikipedia:Bot requests/Archive 87
Archive 80 | ← | Archive 85 | Archive 86 | Archive 87 |
Bot Request to Add Vezina Trophy Winners Navbox to Relevant Player Pages
I would like to request a bot to automatically add the {{Vezina Trophy Winners}} template to all player pages that are currently listed in the Category:Vezina Trophy winners.
The template is already created and can be found at: Template:Vezina Trophy Winners.
Details:
1. The bot should check all pages within Category:Vezina Trophy winners.
2. For each page, if the {{Vezina Trophy Winners}} template is not already present, the bot should add it to the bottom of the page.
3. The template should be placed in the Navboxes section (before any categories or external links) on each player’s page.
Rationale:
This will ensure consistency and streamline the process of displaying the relevant information across all Vezina Trophy winners’ pages without having to manually add the template to each page. This will also make it easier to update the navbox in the future without needing to edit each individual page.
Please let me know if more information or clarification is needed. Thank you! 108.51.96.36 (talk) 23:46, 18 October 2024 (UTC)
- Oppose this request as per consensus at WP:NHL not to have such navboxes. Please consider discussing at the WikiProject. Flibirigit (talk) 00:15, 19 October 2024 (UTC)
- Just noting that the template has been deleted. Primefac (talk) 12:23, 19 October 2024 (UTC)
altering certain tags on protected pages?
I recently read a comment from someone regarding them seeing the {{expand}} tag in an article, and wanting to go ahead and work on the section, only to discover that it was protected and they could not do so. Their feeling, which is understandable, is that it was discouraging to reply to a request for help, only to find that their help was not welcome. There is of course usually a lock icon on the page but not everyone knows to look for that or what it means.
I note that User:MusikBot II removes templates from pages where protection has just expired, and is an adminbot and can therefore also edit protected pages. I'm curious if it seems feasible/wise to have it (or some other bot) make some sort of modification to the expand template, and perhaps other similar templates, to reflect the current protection level and suggest using the talk page to propose edits? And of course it would undo those edits upon the expiration of protection. (as always with the caveat that I know nothing about bot coding) Pinging @MusikAnimal: as bot maintainer, but any and all feedback is of course welcome. Just Step Sideways from this world ..... today 22:25, 6 October 2024 (UTC)
- @Just Step Sideways: Another way would be to have the {{expand}} tag automatically detect the protection level (which I know is possible, but I wouldn't know how to implement it) and alter its message. Rusty 🐈 22:37, 6 October 2024 (UTC)
- Yes, altering the template would be better; templates like {{rcat shell}} already have this functionality using magic words. I'll paste the relevant code below if someone wants to sandbox something. Obviously it will be different to make it inline but the general gist of using the #switch will be the same. For example, a #switch in {{Expand section}} could change the text from "You can help by adding to it" to "You can make an edit request to improve it". Primefac (talk) 10:30, 7 October 2024 (UTC)
- {{if IP}}, {{if autoconfirmed}}, and {{if extended confirmed}} should also be useful here. jlwoodwa (talk) 03:36, 14 October 2024 (UTC)
PROTECTIONLEVEL code |
---|
{{#switch: {{PROTECTIONLEVEL:edit}}
|sysop={{pp-protected|small=yes}}{{R fully-protected|embed=yes}}
|templateeditor={{pp-protected|small=yes}}{{R template protected|embed=yes}}
|extendedconfirmed={{pp-protected|small=yes}}{{R extended-protected|embed=yes}}
|autoconfirmed={{pp-protected|small=yes}}{{R semi-protected|embed=yes}}
| <!--Not protected, or only semi-move-protected-->
}}
|
- I agree automating this without the bot is preferable. The bot can and does add protection templates to pages like this, but I believe it didn't here because this template was protected long before the bot was introduced. — MusikAnimal talk 15:35, 7 October 2024 (UTC)
- This is why I ask instead of actually trying to do these things. I'm a bit nervous about editing templates that are in use on thousands of pages, that's really not my thing, but if this could be implemented that would be awesome. Just Step Sideways from this world ..... today 21:19, 16 October 2024 (UTC)
- We could do something like this (see code), which only covers the cases of semi and extended protection, but that would probably work well enough for articles. Rusty 🐈 13:32, 17 October 2024 (UTC)
- JSS, I'm happy to code something up, if you have one or two templates that would be "best" to add this functionality to I can see about implementing it; just noting there are a dozen or so similar templates which may need to be updated, so I'd rather do a trial on the more widely-used ones to see how well it works. Primefac (talk) 15:55, 17 October 2024 (UTC)
- {{Expand section}} and {{Missing information}} seem like good candidates. Just Step Sideways from this world ..... today 20:35, 19 October 2024 (UTC)
- Done, I ended up creating {{Protected page maintenance message}} to allow for easier coding across multiple pages; feel free to tweak things as I was just throwing stuff together quick before I head out for a bit. Primefac (talk) 14:47, 20 October 2024 (UTC)
- {{Expand section}} and {{Missing information}} seem like good candidates. Just Step Sideways from this world ..... today 20:35, 19 October 2024 (UTC)
- JSS, I'm happy to code something up, if you have one or two templates that would be "best" to add this functionality to I can see about implementing it; just noting there are a dozen or so similar templates which may need to be updated, so I'd rather do a trial on the more widely-used ones to see how well it works. Primefac (talk) 15:55, 17 October 2024 (UTC)
- We could do something like this (see code), which only covers the cases of semi and extended protection, but that would probably work well enough for articles. Rusty 🐈 13:32, 17 October 2024 (UTC)
Replace merged WikiProject template with parent project + parameter
WikiProject Reference works has been merged as a task force of WikiProject books. The referencework= parameter has been added to the Template:WikiProject Books banner template to indicate if it applies to the task force, so now all usages of the former Template:WikiProject Reference works need to be replaced with the books template with the task force parameter. When something similar was done with a previous project, it was done by bot (though I forgot what bot), could this be done again? Or is there another efficient way to do this? Also, there will be some duplicates, since some are tagged with both. The books project doesn't use importance and many articles tagged with ref works don't have it so the importance parameter on the old banner should be discarded not transferred. Thanks! PARAKANYAA (talk) 16:58, 16 October 2024 (UTC)
- I can help with this. – DreamRimmer (talk) 14:09, 17 October 2024 (UTC)
- Same; my bot is set up to handle these, and I thought it was TheSandBot that actually had a specific task for this but maybe it was actually Kiranbot... Looks like ~1500 pages where it will need to be folded into the Books banner, after which it can just be converted into a wrapper and autosubst by AnomieBOT. Primefac (talk) 16:00, 17 October 2024 (UTC)
- Thanks for the info. Please feel free to handle this. As there wasn't a response in a reasonable time, I thought I should step in to help. – DreamRimmer (talk) 16:29, 17 October 2024 (UTC)
- @Primefac Your bot did the job perfectly, thank you! Sorry for the annoyance, but could you do the same with another merged-into-task force project? WP:TERROR was mostly inactive, and the very few active editors reached a consensus to merge, see this discussion.
{{WikiProject Terrorism}}
should be folded into the {{WikiProject Crime and Criminal Biography}}
banner (I added the task force and importance parameters to the crime banner). WP:TERROR has importance parameters, but the attention= and infobox= parameters were never maintained and most of the articles tagged with them have had their issues addressed so those can probably be discarded as the crime banner doesn't have them. I promise this is the last one hahaha. PARAKANYAA (talk) 19:46, 19 October 2024 (UTC)- I'll put it on my list. Primefac (talk) 20:58, 19 October 2024 (UTC)
- Done. Primefac (talk) 10:04, 21 October 2024 (UTC)
- I'll put it on my list. Primefac (talk) 20:58, 19 October 2024 (UTC)
- Same; my bot is set up to handle these, and I thought it was TheSandBot that actually had a specific task for this but maybe it was actually Kiranbot... Looks like ~1500 pages where it will need to be folded into the Books banner, after which it can just be converted into a wrapper and autosubst by AnomieBOT. Primefac (talk) 16:00, 17 October 2024 (UTC)