This template uses <mapframe> 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

Usage change

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

Mapframe parameters

  • |width= and |height= — set the dimensions of the map on the page
  • |align= — sets the position on the page (left, right, center)
  • |latitude= and |longitude= — the coordinates of the map centre
  • |zoom= — a zoom factor with a value between 0 (whole world) to 19 (very local). See examples for typical values
  • |text= — a description of the map displayed as a footer.
  • |frameless= — to produce a frameless map (e.g. for an infobox).

For more further information see Kartographer extension.

Stadium and club lists

A Mapframes 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.

  • |stadiumN= — a list of stadia with index N. The name must point to a valid Wikipedia page title.
  • |clubN= — 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.

  • |wikidata= — makes Wikidata the first choice for data source. Values can be overridden by those set in the template parameters.
  • |moduledata= — 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.
  • |templatedata= — only uses data provided by the template.
  • |latitudeN= and |longitudeN= — the coordinates of each stadium with the index specified
  • |imageN= — an image to display in the popup, entered in the form File:The Hive Stadium 3.jpg
  • |descriptionN= a description to display in the popup. This can contain any wiki markup, within reason.

Markers

The default markers:

  • |size= — the size of the marker (small, medium, large )
  • |color= — the color of the marker (red, green, #0050d0, etc)
  • |symbol= — the marker can take numbers, letters or custom symbols

The markers for any feature can be customised using a parameter with the index matching the feature name:

  • |sizeN= — 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 <mapframe> (more northerly ones first)
  • |colorN= — the color of the marker (red, green, #0050d0, etc)
  • |symbolN= — the marker can take numbers, letters or custom symbols.