Template talk:Populate category

From Wikimedia Commons, the free media repository
Jump to: navigation, search

I hope you don't mind my edit- no offence is intended. I have tried to clean up the English, using my skills as a native speaker. I do understand the problems with modal verbs and preposition usage! I have been involved with programming and documentation since about 1970. So I learn a system by re-documenting it- and as I didn't write the system I often need to ask stupid questions.

I think putting in the syntax makes it clearer.

I don't understand this The images should either be in one of the parent categories of the category to work on or in one of the subcategories of Category:Media needing categories.

Is this line needed? Is this a restriction? Will the bot only work if the image is in a parent category, or one of the subcategories of Category:Media needing categories?

one of the parent categories of the category to work on . Sorry- which category, the receiving category? And, why?

Now onto the description of the bots action.

  • With already categorized files (where? and do we mean images?) the bot adds the category (where?) and then filters the categories(what does this mean? is it the same as diffuse?,(. Is this a warning ?) this might cause the image to end up in one of the subcategories of the working (receiving) category. —Preceding unsigned comment added by ClemRutter (talk • contribs) 12:14, 20 September 2008 (UTC)
Hi ClemRutter, i should have checked the template, but i was busy doing other things. The template needs some serious improvement in style and documentation. To answer your first question: Yes, this is a restriction. The bot will only find images to work on if the image matches the following criteria (in pseudocode): The image is in (gallery1 OR gallery2 OR... galleryN) AND (category1 OR category2 OR ... galleryN OR Media_needing_categories_as_of%). category1-categoryN are the parent categories of the receiving category (the category tagged with {{populate category}}). Why? To prevent errors and vandalism. For the images which do match the criteria:
  1. The image is uncategorized: place it in the receiving category
  2. The image is in one of the parent categories: add the recieving category and filter the categories. The filtering program removes overcategorization, so if one of the subcategories of the receiving category was already on the image, the receiving category will be removed.

You can find the source here. Multichill (talk) 10:36, 20 September 2008 (UTC) Hit an edit conflict- so arrogantly overwrote! Does this do the job?ClemRutter (talk) 15:45, 20 September 2008 (UTC)