Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Summary  





2 Description  



2.1  PhotoCat  





2.2  StaleReqphotoBot  







3 Limitations  














User:PhotoCatBot

















User page
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
User contributions
User logs
View user groups
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


Emergency block button

Administrators: Use this button if the bot is malfunctioning. (direct link)
Non-administrators can report a malfunctioning bot to Wikipedia:Administrators' noticeboard/Incidents.

Summary

[edit]

PhotoCatBot examines articles in Category:Wikipedia requested photographs and its subcategories, and updates photo request templates with more precise classifications. It also reviews reqphoto templates to see if they may no longer be needed, and flags them for human attention if so.

Description

[edit]

The bot's tasks include:

PhotoCat

[edit]

PhotoCat examines each article in Category:Wikipedia requested photographs. Upon finding an article bearing a {{reqphoto}}, {{photoreq}}, {{imagerequest}}, {{photo}} or similar template with no parameters, it will try to figure out what kind of picture is desired from examining other templates on the page, and will update the talk page templates appropriately.

A full list of the rules the bot uses can be found in the source code at User:PhotoCatBot/Src/photocat.py. Here is a summary:

StaleReqphotoBot

[edit]

As of April 2009, the PhotoCat runs a secondary task, StaleReqphotoBot. StaleReqphotoBot identifies uses of {{reqphoto}} that appear to be "stale" -- where the article page has one or more active images -- and adds them to a list of articles which may need to have {{reqphoto}} removed.

Specifically, StaleReqphotoBot walks through all articles in Category:Wikipedia requested photographs, and:

Articles satisfying both conditions are added to Category:Articles which may no longer need images.

The bot will not revisit any single article more often than once every six months. An article can be pre-emptively excluded from the bot by adding an "of=" parameter to the template to describe what sort of image is required. The bot will assume that the photo request is valid and will not modify the article.

Limitations

[edit]

The bot does not attempt to determine whether the article already has a photo that fulfills the request. I have thought about this but do not believe that it could be done safely in an automated way -- perhaps a semiautomatic bot could do it. As a result, the bot may sometimes add parameters to a {{reqphoto}} template on a talk page, even if that article now has an image. When that happens, please feel free to remove the unnecessary template.

Source code may be found at https://github.com/qwrrty/photocatbot and User:PhotoCatBot/Src/StaleReqphotoBot. Please feel free to suggest enhancements or bug fixes!


Retrieved from "https://en.wikipedia.org/w/index.php?title=User:PhotoCatBot&oldid=1018832597"

Categories: 
Inactive Wikipedia bots
All Wikipedia bots
Wikipedia bots which are exclusion compliant
Wikipedia bots with Python source code published
WikiProject Photography
 



This page was last edited on 20 April 2021, at 03:51 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki