This template displays links to the popular web mapping service Google (and previously Bing) on articles, and when coupled with the content of a KML file produces a route line on those maps. If the "KML file" offer is clicked on, a file index.php will be presented for download containing the KML content; such a file will be ignored by the Google Earth system unless renamed, to index.kml for example.

Usage

As KML files cannot currently be uploaded, the text of those files must be copied into a Wikipedia page:

Template:Attached KML/[Article Title]

KML files can also be stored on other wikis which are connected to Wikidata.

Normal

((Attached KML))

Simply placing the template in an article generates a box, as seen above - but using the article's related KML file (as found through Wikidata, if available). This is best placed in the External links section, or near the end of an article.

Other options

((Attached KML
|wikidata=
|from=
|display=
|header=
|title=
))


This template is intended for linear features:

and can also be used for polygon features, to highlight an area within a boundary (parks, towns, etc.)

Tracking categories

The following may be added via Module:Attached KML

See also

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Attached KML in articles based on its TemplateData.

TemplateData for Attached KML

A template to display the KML file attached to a page.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Display modedisplay

Use "title" for display at the top, "inline" for the box (default), or both (separated by a comma: "inline,title") for both.

Default
title,inline
Stringsuggested
Headerheader

Header to place on the Attached KML box

Stringoptional
Use KML from this pagefrom

The page to use the KML from, if not the page the template is placed on.

Page nameoptional
Use KML from this Wikidata itemwikidata

The Wikidata item id (Q-number) for KML file to be used, if not the KML for this page

Example
Q26267859
Unknownoptional
Titletitle

Title to show next to links (when using title display mode) if "Route map" is not suitable

Default
Route map
Example
Tornado damage survey map
Unknownoptional