Hi,
catlib.py tries to say if a category is hidden like this: hidden = re.search('__HIDDENCAT__', text)
But many wikis have already templates for that. See the interwikis at http://en.wikipedia.org/wiki/Template:Hidden_category for Wikipedias. Shall we list these templates within catlib.py, or what is the process? Is that a similar task than handling disambig templates in solve_disambiguation.py?
On 29 March 2012 14:54, Bináris wikiposta@gmail.com wrote:
catlib.py tries to say if a category is hidden like this: hidden = re.search('__HIDDENCAT__', text)
But many wikis have already templates for that. See the interwikis at http://en.wikipedia.org/wiki/Template:Hidden_category for Wikipedias. Shall we list these templates within catlib.py, or what is the process?
This is how we currently handle stuff like this, yes, as it's the only way we can get information from the wikitext. However, we also have an api, so see what you can do with that (but keep in mind this doesn't work for people using xml dumps).
Best, Merlijn
pywikipedia-l@lists.wikimedia.org