Hi, I want to request some feature of pywikipediabot. The purpose of this feature is to add or remove category on pages of first wikis based on pages on second wikis.
Sorry for bad english and bad explanation.
Input: * Target wikipedia code: ex: "id" (for id.wikipedia) * Target category name (targetcat): ex: "Kategori:Ilmuwan Amerika Serikat" (equivalent for en:Category:American scientists) * Source wikipedia code: ex: "en" (for en.wikipedia)
=Algorithm=
==Add== * Search category name (sourcecat) of target category on source wikipedia based on interwiki of "targetcat" * For all pages (P1) on source wikipedia having category "sourcecat" do: if (P1) has interwiki to target wikipedia (P2) and (P2) not categorized to "targetcat" then add category "targetcat" to P2.
==Remove== * Search category name (sourcecat) of target category on source wikipedia based on interwiki of "targetcat" * For all pages (P1) on source wikipedia having category "sourcecat" do: if (P1) has interwiki to target wikipedia (P2) and (P2) categorized to "targetcat" then remove category "targetcat" from P2.
This feature will make great help.
Regards Stanley
(Note, I've no idea if anything like this exists and don't have time to search atm)
You'd need some way to determine which cats are really about a subject and which are self refs describing the article. (Maybe __HIDDENCAT__ would be enough but you'd have to be very, very careful) Also be careful with cats like subcats of [[Category:Current_events]] where the cat is very likely to be out of date after some short period of time. (rerun the bot frequently on pages in that cat?)
Also, I'm guessing some wikis would require this to be supervised or manually assisted (each edit approved by human) so you'd need a botop that could make a significant time commitment.
--Jeremy
On Aug 19, 2008, at 12:25 AM, Stanley Wurangian wrote:
Hi, I want to request some feature of pywikipediabot. The purpose of this feature is to add or remove category on pages of first wikis based on pages on second wikis.
Sorry for bad english and bad explanation.
Input:
- Target wikipedia code: ex: "id" (for id.wikipedia)
- Target category name (targetcat): ex: "Kategori:Ilmuwan Amerika
Serikat" (equivalent for en:Category:American scientists)
- Source wikipedia code: ex: "en" (for en.wikipedia)
=Algorithm=
==Add==
- Search category name (sourcecat) of target category on source
wikipedia based on interwiki of "targetcat"
- For all pages (P1) on source wikipedia having category
"sourcecat" do: if (P1) has interwiki to target wikipedia (P2) and (P2) not categorized to "targetcat" then add category "targetcat" to P2.
==Remove==
- Search category name (sourcecat) of target category on source
wikipedia based on interwiki of "targetcat"
- For all pages (P1) on source wikipedia having category
"sourcecat" do: if (P1) has interwiki to target wikipedia (P2) and (P2) categorized to "targetcat" then remove category "targetcat" from P2.
This feature will make great help.
Regards Stanley