Permanently protected template

Template:Attached KML

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Documentation icon Template documentation[view] [edit] [history] [purge]

This template displays links to the popular web mapping services Google and 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]

Simply placing the template in an article generates a box, as seen above. This is most appropriate in the External links section. In addition, the links can be placed near the top right of an article title, similar to coordinates by using one of the following options:

| display =

  • inline - Only displays the box (you can forego this, as box-only is the default)
  • title - Only displays the title links
  • inline,title - Displays the box as well as title links
  • title,inline - Same as above

Optionally:

| header =

  • default - no header in side box
  • short text to appear at the top of the side box when using display=inline (terminate with <br /> to force newline at end of header

| from =

Used to specify a different KML file to display.

This template is intended for linear features:

  • Rights-of-way
  • Walkways/paths
  • Roads
  • Rivers
  • Subway or train lines
  • Ship courses
  • Flight paths
  • Explorers journeys

and more...

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Attached KML

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

Template parameters
Parameter Description Type Status
Display mode display

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

Default
title,inline
Example
empty
Auto value
empty
string optional
Header header

Header to place on the Attached KML box

Default
empty
Example
empty
Auto value
empty
string optional
Use KML from this page from

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

Default
empty
Example
empty
Auto value
empty
wiki-page-name optional

See also