Talk:KML files

From Meta, a Wikimedia project coordination wiki

Idea: Multi-wiki KML bot[edit]

For each wiki that:

the bot should:

  1. Add a Template:Attached KML (Q6690822) transclusion for each mainspace page which BOTH has a wikidata item with a KML file (P3096) statement AND does not already have a Template:Attached KML (Q6690822) transclusion
    The bot should be exclusion compliant, and leave a meaningful edit summary with that info (or linking to an explanation) so that it doesn't get into edit wars or get itself blocked.
  2. Check the subpages (excluding /doc and /testcases) of Template:Attached KML (Q6690822), and for any without Wikidata items, create items with instance of (P31):Wikimedia KML file (Q26267864)
  3. For each subpage which get an item created, check if the corresponding mainspace page (with the same name as the subpage) exists and has a Template:Attached KML (Q6690822) transclusion:
    If it does, then add a KML file (P3096) statement to the page's item (which may need to be created), linking to the newly created item for the kml subpage
    If it doesn't, then manual review is required - perhaps the bot could generate a report in its userspace, or perhaps just rely on these cases being picked up by this Wikidata constraint)

- Evad37 (talk) 14:13, 25 August 2016 (UTC)[reply]

Notified enwiki bot requests, wikidata bot requests - Evad37 (talk) 04:14, 27 August 2016 (UTC)[reply]

This is likely possible (at least the non-Wikidata part of it) using AWB. There's only a few wikis that require approval to use AWB, at least that I know of - I know I was able to use AWB on dewiki and a few others with no issues (though on dewiki, you have to beware of adding to the pending changes backlog). (I'm not anti-bot, but I find that it's often quicker to do it oneself rather than waiting for someone to create the bot, or figuring out how to do it myself and then going through all the approvals, especially since this being crosswiki, it would need to be approved by each wiki, where the process can take a while). --Rschen7754 03:44, 27 August 2016 (UTC)[reply]
Yeah, either AWB and/or a userscript is probably more likely to happen, or to happen quickly, and would require less "paperwork" / approvals, but the advantage of a bot would be it running every day (or week, or other appropriate frequency) on all wikis where it is approved. Anyway, this task is just at the idea stage at the moment, as it can only begin after Module:Attached KML (Q26689774) is deployed. - Evad37 (talk) 04:00, 27 August 2016 (UTC)[reply]