This user is a bot run by Evad37 (talk).

It is used for helping to make many small changes that would take a long time for a person to do alone.

Administrators: if this bot isn't working right or is doing bad things, please stop it.

Introduction change

KML files contain map positions for various places, which may be shown as lines or shapes. The {{Attached KML}} template gives links to download or look at a KML file for an article. WikiMiniAtlas will also show the KML file on top of a map. As KML files cannot be uploaded directly (see Phab:T28059), they are stored as wikitext. Through the Wikidata property KML file (P3096), an article's Wikidata item can be linked to the item for its related KML file – which may be stored on any wiki connected to Wikidata. Most KML files are located at the English Wikipedia.

Overview change

This bot adds {{Attached KML}} to articles which have KML files available through Wikidata. The basic process is:

  1. Get a list of Wikidata items which have both a KML file and an article on English Wikipedia
  2. Remove articles which already have {{Attached KML}}, or should not have a KML file
  3. Use AWB to add {{Attached KML}} to the end of each article (prior to DEFAULTSORT, interwikis, categories and stub templates)

Problems change

If there is a problem with the KML file, you can:

  • Fix it on Wikidata (preferred) – if the KML file is not actually related to the article, then you can be bold and fix it! Go to the article's Wikidata item, and adjust the KML file (P3096) statement.
  • Use another KML file – add |wikidata= or |from= (see Template:Attached KML/doc)
  • Undo the change and make the article an exception – add {{No KML|reason=Specify a reason}}.[a] If {{No KML}} is not added, then the bot will again add {{Attached KML}} next time!
  • Tell the bot's owner – at User talk:KMLbot

Details change

Here's the full details:

Notes change

  1. The {{No KML}} template just adds [[Category:Pages which should not use KML from Wikidata]]; you can add this category directly if you want, but's its nicer to tell everyone why the KML from Wikidata shouldn't be used.