Template:Football map/doc

This template uses  to display interactive maps of football stadia, using data supplied from the template, from Wikidata, and/or from lists defined in module subpages. The markers for each stadium have a popup window with information on the stadium (e.g. image, description, capacity, etc).

Examples: Test examples
 * Template:Football map/demo &mdash; stadia of London football clubs (using data from module list)
 * Template:Football map/demo2&mdash; stadia for the Russia World Cup in 2018 (using data supplied in template)
 * Template:Football map/List of football stadiums in England &mdash; a map of the stadia in List of football stadiums in England (using Wikidata for data parameters)
 * Template:Football map/demo5 &mdash; a list of clubs and their stadium for the 2018-19 Premier League season (using Wikidata for data parameters)
 * Template:Football map/demo3 &mdash; a selection of English stadia (using a mixture of all three data sources)
 * Template:Football map/demo4 &mdash; a test version of the map of the stadia in List of football stadiums in England (using Wikidata for data parameters)
 * User:Jts1882/maps/stadiums &mdash; a user test page with some mapframe related information and some more examples

Usage
The simplest use of the template requires the basic mapframe parameters and a list of football stadia or football clubs.

Mapframe parameters


 * and  &mdash; set the dimensions of the map on the page
 * &mdash; sets the position on the page (left, right, center)
 * and  &mdash; the coordinates of the map centre
 * &mdash; a zoom factor with a value between 0 (whole world) to 19 (very local). See examples for typical values
 * &mdash; a description of the map displayed as a footer.
 * &mdash; to produce a frameless map (e.g. for an infobox).

For more further information see Kartographer extension.

Stadium and club lists

A  map can display markers for a number of geographical features, or a football stadia for this template. It takes the data in JSON format, but this template creates the JSON data from the parameters in the template. At its simplest, it needs a list of stadia or clubs set with the following parameters.


 * &mdash; a list of stadia with index N. The name must point to a valid Wikipedia page title.
 * &mdash; a list of football clubs with index N. Wikidata is used to get the name of the home stadium.

Stadia and clubs can be mixed, but each index can only be used once. The maximum index is currently 200.

See below for more on customising the markers.

Sources of data

Each marker needs the coordinates for its location. These can be provided in the template or got automatically from a list maintained in the module or from Wikidata. Parameters provided by the template have priority, followed those in the module lists and Wikidata.


 * &mdash; makes Wikidata the first choice for data source. Values can be overridden by those set in the template parameters.
 * &mdash; makes the lists of data in the module the first choice for data source. Values can be overridden by those set in the template parameters.
 * &mdash; only uses data provided by the template.


 * and  &mdash; the coordinates of each stadium with the index specified
 * &mdash; an image to display in the popup, entered in the form File:The Hive Stadium 3.jpg
 * a description to display in the popup. This can contain any wiki markup, within reason.

Markers

The default markers:
 * &mdash; the size of the marker (small, medium, large )
 * &mdash; the color of the marker (red, green, #0050d0, etc)
 * &mdash; the marker can take numbers, letters or custom symbols
 * use  to number the markers (default)
 * use  to use a sequence of letters in the markers
 * use **use,  , etc to use a custom symbol (see mw:Help:Extension:Kartographer/IconsList of icons for more)

The markers for any feature can be customised using a parameter with the index matching the feature name:
 * &mdash; the size of the marker (small, medium, large). This is particularly useful for showing two stadia very close together (e.g. Goodison and Anfield), when making the one behind larger and/or on in front small makes them both easier to resolve. There is no control over the relative positions, which are set by   (more northerly ones first)
 * &mdash; the color of the marker (red, green, #0050d0, etc)
 * &mdash; the marker can take numbers, letters or custom symbols.