1,994 bytes added
, 21:45, 15 July 2021
{{Module rating |alpha<!-- Values: pre-alpha • alpha • beta • release • protected -- If a rating not needed/relevant, delete this template call -->}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{Sister project|project=mediawiki|text=[[mw:Help:Extension:Kartographer|Kartographer extension]]}}
{{Uses Wikidata|P625|P115|P18|P466|P1083}}
==Overview==
This module is used with the template {{tl|football map}} to simplify creation of maps with the '''<nowiki><mapframe></nowiki>''' tag provided by the [[mw:Help:Extension:Kartographer|Kartographer extension]].
The template takes the same parameters as <nowiki><mapframe></nowiki> and adds a number of markers using a series of |stadiumN parameters that are used to general the JSON data for the markers. The stadium data is either taken from an internal list or using Wikidata for the coordinates.
'''Examples:'''
*[[Template:Football map/demo]] — stadia of London football clubs (using data from module list)
*[[Template:Football map/demo2]]— stadia for the Russia World Cup in 2018 (using data supplied in template)
*[[Template:Football map/demo3]] — a selection of English stadia (using a mixture of all three data sources)
*[[Template:Football map/demo4]] — a map of the stadia in [[List of football stadiums in England]] (using Wikidata for data parameters)
*[[Template:Football map/demo5]] — a list of clubs and their stadium for the 2018-19 Premier League season (using Wikidata for data parameters)
*[[User:Jts1882/maps/stadiums]] — a user test page with some mapframe related information and some more examples
== Usage ==
<code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|''function_name''}}</code>
==Template documentation==
{{Template:Football map/doc}}
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- Categories below this line, please; interwikis at Wikidata -->
}}</includeonly>