This "commonscat" in the table refers to the "commonscat of the
monument", not the commonscat of the list.
I've been filling locally this paramater with a bot. The logic is: checking the
categories of the images in the list, if any of them is a subcategoy of the
"commonscat of the list" then probably this is the "commonscat of the
monument". If the monument has an article linked, the commonscat of the article is
fine as well.
Date: Wed, 16 Jan 2013 12:15:51 +0100
Subject: Re: [Wiki Loves Monuments] Commons categories now in the database
2013/1/13 Maarten Dammers <maarten(a)mdammers.nl>nl>:
I noticed quite a few Wikipedia's included a Commons link in their monument
lists (almost 40.000 entries at
went ahead and included a new field "commonscat" for each entry in the main
table. For existing entries I mapped it, for all the other lists I added
commonscat as a field. It's now being used by the categorization bot.
For example with
I told the bot that all images with id "5940" should be put in
haven't actually changed the template at the Dutch Wikipedia yet, that's
something for later.
Thank you for this improvement.
As you know Italian monuments' lists are organized by region, so every
sublist has a link to the Commons category [[Category:Cultural
heritage monuments in <region-name>]]. But in the database, under
"commoscat" says 0. Why is it like this? Am I missing something?
Another thing I have not completely understood is how can you tell the
category of single monuments (like the church above), for example in
the Italian list some monuments have a category on their own (see, for
example ) which is, obviously, more precise than the general
category "Cultural heritage monuments in <region-name>". Should we had
to these entries a commonscat field with the precise cat? is there a
way to tell the bot automatically which category is or we should do
this by hand?
Thanks again for you precious work.
Wiki Loves Monuments mailing list