<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AInfobox_mapframe%2Fdoc</id>
	<title>Template:Infobox mapframe/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AInfobox_mapframe%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Infobox_mapframe/doc&amp;action=history"/>
	<updated>2026-05-09T08:16:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://safernicotine.wiki/mediawiki/index.php?title=Template:Infobox_mapframe/doc&amp;diff=37511&amp;oldid=prev</id>
		<title>imported&gt;Paine Ellsworth: update /doc</title>
		<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Infobox_mapframe/doc&amp;diff=37511&amp;oldid=prev"/>
		<updated>2023-04-05T14:00:08Z</updated>

		<summary type="html">&lt;p&gt;update /doc&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&lt;br /&gt;
{{High-use}}&lt;br /&gt;
{{lua|Module:Infobox mapframe}}&lt;br /&gt;
{{Uses Wikidata|P625}}&lt;br /&gt;
{{Tracks Wikidata|P402|cat=Infobox mapframe without OSM relation ID on Wikidata}}&lt;br /&gt;
{{Sister project&lt;br /&gt;
|image=[[File:Openstreetmap logo.svg|40x40px]]&lt;br /&gt;
|text=This template uses the [[OpenStreetMap]] tag:&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;[https://wiki.openstreetmap.org/wiki/Key:wikidata wikidata]&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; (see [https://wiki.openstreetmap.org/wiki/Talk:Key:wikidata talk]; [https://taginfo.openstreetmap.org/keys/wikidata taginfo])&lt;br /&gt;
}}&lt;br /&gt;
{{Lua sidebar}}&lt;br /&gt;
&lt;br /&gt;
This template generates a mapframe map, suitable for infoboxes, with minimal user input. This template only works with single features (points, lines, or shapes); use {{tlx|maplink}} if more advanced options, such as displaying multiple features, are required.&lt;br /&gt;
&lt;br /&gt;
If coordinates are not supplied, they will be fetched from the page&amp;#039;s Wikidata item. In such cases, if {{para|point}} is not set, then a point feature marker is displayed at those coordinates {{em|unless}} the Wikidata item has an {{Q|P402}} specified.&lt;br /&gt;
*See [[:Category:Infobox mapframe without OSM relation ID on Wikidata]] for pages which have items without {{Q|P402}}&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; When in mainspace, parameter {{para|id}} is not required (except to use a different page&amp;#039;s data)&lt;br /&gt;
&lt;br /&gt;
===Basic===&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Infobox mapframe}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
When used without parameters, or with only {{para|id}}, the map will display either a shape, line, or point feature, depending on the data available on Wikidata and OpenStreetMap.&lt;br /&gt;
*If the Wikidata item does not specify a {{Q|P402}} value, then a point marker will be displayed by default in addition any OSM shape or line feature.&lt;br /&gt;
*If the Wikidata items does not specify a {{Q|P625}} or a {{Q|P3896}} value, then no map will be displayed&lt;br /&gt;
{{cot|Basic usage examples}}&lt;br /&gt;
Point feature (Wikidata coordinates):&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Infobox mapframe |id=Q7270550}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{Infobox mapframe |id=Q7270550}}&lt;br /&gt;
Line feature:&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Infobox mapframe |id=Q1318331}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{Infobox mapframe |id=Q1318331}}&lt;br /&gt;
Shape feature:&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Infobox mapframe |id=Q61}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{Infobox mapframe |id=Q61}}&lt;br /&gt;
{{cob}}&lt;br /&gt;
&lt;br /&gt;
===Using specified coordinates instead of Wikidata===&lt;br /&gt;
Point feature only, no shapes or lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Infobox mapframe |coord=}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
Point feature and shape/line feature if available:&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Infobox mapframe |wikidata=yes |coord=}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Specify coordinates using the {{tlx|Coord}} templates, e.g. {{para|coord|2={{tlx|Coord|32.1|S|116.2|E}}}}&lt;br /&gt;
*If {{para|coord}} is specified, then by default only that coordinate will be displayed (no line or shape features)&lt;br /&gt;
*If {{para|coord}} is specified and {{para|wikidata|yes}} is used, then those coordinate will be displayed, along with any line or shape features linked to the Wikidata item.&lt;br /&gt;
{{cot|Specified coordinates examples}}&lt;br /&gt;
Point feature (with coordinates specified, no shape/line feature from Wikidata item):&lt;br /&gt;
&amp;lt;pre&amp;gt;{{infobox mapframe |coord={{coord|31|56|S|115|58|E}} }}&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{infobox mapframe |id=Q45935 |coord={{coord|31|56|S|115|58|E}} }}&lt;br /&gt;
Point feature (with coordinates specified, along with shape/line feature from Wikidata item):&lt;br /&gt;
&amp;lt;pre&amp;gt;{{infobox mapframe |wikidata=yes |coord={{coord|31|56|S|115|58|E}} }}&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{infobox mapframe |id=Q45935 |wikidata=yes |coord={{coord|31|56|S|115|58|E}} }}&lt;br /&gt;
{{cob}}&lt;br /&gt;
&lt;br /&gt;
===Customizing which features are displayed===&lt;br /&gt;
====Inverse shape====&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Infobox mapframe |shape=inverse}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
Replace the shape with an inverse-shape (geomask) by setting {{para|shape|inverse}}&lt;br /&gt;
{{cot|Inverse shape example}}&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Infobox mapframe |id=Q61 |shape=inverse}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{Infobox mapframe |id=Q61 |shape=inverse}}&lt;br /&gt;
{{cob}}&lt;br /&gt;
&lt;br /&gt;
====Turn point marker on or off====&lt;br /&gt;
Force point marker to be displayed:&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Infobox mapframe |point=on}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
Prevent point marker from being displayed:&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Infobox mapframe |point=none}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Turn shape feature off====&lt;br /&gt;
Prevent shape feature from being displayed:&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Infobox mapframe |shape=none}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Turn line feature off====&lt;br /&gt;
Prevent line feature from being displayed:&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Infobox mapframe |line=none}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Show a geomask from a related Wikidata item===&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Infobox mapframe |geomask=}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
Set {{para|geomask}} to a Wikidata item id (Q-number), or property id (P-number) such as {{Q|P17}}&lt;br /&gt;
{{cot|Geomask examples}}&lt;br /&gt;
Use the item linked from the {{q|P17}} statement as a geomask:&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Infobox mapframe |id=Q3239281 |geomask=P17}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{Infobox mapframe |id=Q3239281 |geomask=P17}}&lt;br /&gt;
Use the item {{q|Q1199}} as a geomask:&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Infobox mapframe |id=Q3239281 |geomask=Q1199}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{Infobox mapframe |id=Q3239281 |geomask=Q1199}}&lt;br /&gt;
{{cob}}&lt;br /&gt;
&lt;br /&gt;
===Determine zoom from object length or area===&lt;br /&gt;
Use {{para|length_km}} or {{para|length_mi}} or {{para|area_km2}} or {{para|area_mi2}}&lt;br /&gt;
{{cot|Zoom from length/area examples}}&lt;br /&gt;
Determine zoom from object length in kilometres or miles&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Infobox mapframe |id=Q1318331 |length_km=5.6}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Infobox mapframe |id=Q1318331 |length_mi=3.5}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{Infobox mapframe |id=Q1318331 |length_km=5.6}}&lt;br /&gt;
Determine zoom from object area in square kilometres or square miles&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Infobox mapframe |id=Q100 |area_km2=232.14}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Infobox mapframe |id=Q100 |area_mi2=89.63}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{Infobox mapframe |id=Q100 |area_km2=232.14}}&lt;br /&gt;
{{cob}}&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
All parameters are optional.&lt;br /&gt;
&lt;br /&gt;
{{Infobox mapframe/doc/parameters|noprefix=yes|deprecated=yes}}&lt;br /&gt;
&lt;br /&gt;
==Examples for use within templates==&lt;br /&gt;
{{cot|Infobox hospital}}&lt;br /&gt;
{{tl|Infobox hospital}} (as of [https://en.wikipedia.org/w/index.php?title=Template:Infobox_hospital&amp;amp;oldid=919731352 5 October 2019])&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
|image3    = {{yesno|{{{mapframe|yes}}}|no=|yes={{Infobox mapframe&lt;br /&gt;
 |zoom={{{mapframe-zoom|}}}&lt;br /&gt;
 |frame-width={{{mapframe-width|}}}&lt;br /&gt;
 |frame-height={{{mapframe-height|}}}&lt;br /&gt;
 |marker={{{mapframe-marker|hospital}}}&lt;br /&gt;
 |marker-color={{{mapframe-marker-color|{{{mapframe-marker-colour|}}}}}}&lt;br /&gt;
 |frame-lat={{{mapframe-lat|{{{mapframe-latitude|}}}}}}&lt;br /&gt;
 |frame-long={{{mapframe-long|{{{mapframe-longitude|}}}}}}&lt;br /&gt;
 |stroke-color={{{mapframe-stroke-color|{{{mapframe-stroke-colour|}}}}}}&lt;br /&gt;
 }}&lt;br /&gt;
}}&lt;br /&gt;
|caption3 = {{yesno|{{{mapframe|yes}}}|no=|yes={{{mapframe-caption|}}}}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{cob}}&lt;br /&gt;
&lt;br /&gt;
{{cot|Infobox power station}}&lt;br /&gt;
{{tl|Infobox power station}} (as of [https://en.wikipedia.org/w/index.php?title=Template:Infobox_power_station&amp;amp;oldid=890573674 2 April 2019]):&lt;br /&gt;
&amp;lt;pre&amp;gt;| image2        = {{#ifeq:{{{location_map|}}}|no|&amp;lt;!-- --&amp;gt;|{{Infobox mapframe&lt;br /&gt;
                  |id                    = {{{qid|}}}&lt;br /&gt;
                  |coord                 = {{{coordinates|}}}&lt;br /&gt;
                  |frame-width           = {{Digits|1={{#if:{{{image_size|}}}|{{{image_size|}}}|300px}}}}&lt;br /&gt;
                  |marker                = industrial&lt;br /&gt;
                  |zoom                  = {{#if:{{{location_map_geomask|}}}|{{{location_map_zoom|}}}|{{{location_map_zoom|5}}}}}&lt;br /&gt;
                  |geomask               = {{#ifeq:{{{location_map_geomask|}}}|Yes|P17|&amp;lt;!-- --&amp;gt;}}&lt;br /&gt;
                  |geomask-stroke-width  = {{#ifeq:{{{location_map_geomask|}}}|Yes|0.5|&amp;lt;!-- --&amp;gt;}}&lt;br /&gt;
                  |geomask-stroke-colour = {{#ifeq:{{{location_map_geomask|}}}|Yes|#000000|&amp;lt;!-- --&amp;gt;}}&lt;br /&gt;
                  |geomask-fill          = {{#ifeq:{{{location_map_geomask|}}}|Yes|#BABABA|&amp;lt;!-- --&amp;gt;}}&lt;br /&gt;
                  }}}}&lt;br /&gt;
| caption2      = {{#ifeq:{{{location_map|}}}|no|&amp;lt;!-- --&amp;gt;|{{#if:{{{coordinates|}}}{{#property:P625}}|{{{location_map_caption|}}}}}}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{cob}}&lt;br /&gt;
&lt;br /&gt;
{{cot|Infobox Australian road}}&lt;br /&gt;
{{tl|Infobox Australian road}} (as of [https://en.wikipedia.org/w/index.php?title=Template:Infobox_Australian_road&amp;amp;oldid=918815119 5 October 2019]):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
| data3        = {{#ifexist:media:{{{location|}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;|[[File:{{{location}}}|270px|frameless|alt={{{location_alt|{{{loc_alt|{{{alt|}}}}}}}}}]]&amp;lt;!--&lt;br /&gt;
--&amp;gt;|{{{location|&amp;lt;!--&lt;br /&gt;
   --&amp;gt;{{yesno| {{{mapframe|yes}}}&amp;lt;!--&lt;br /&gt;
   --&amp;gt;|no=&amp;lt;!--&lt;br /&gt;
   --&amp;gt;|yes={{Infobox mapframe | length_km={{{length|}}} }}&amp;lt;!-- Tracking category:&lt;br /&gt;
    --&amp;gt;{{main other|{{#if:{{#property:P625}}|[[Category:Infobox Australian road articles with an infobox mapframe map|{{#if:{{{coordinates_a|}}}|π}}{{PAGENAME}}]]}}}}&amp;lt;!--&lt;br /&gt;
   --&amp;gt;}}&amp;lt;!--&lt;br /&gt;
 --&amp;gt;}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{cob}}&lt;br /&gt;
&lt;br /&gt;
==Template data==&lt;br /&gt;
{{template data header}}&lt;br /&gt;
{{collapse top|title=parameters|bg=#ddd}}&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;mapframe&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;alias&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;mapframe&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;=yes will create a map&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;no&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;mapframe-caption&amp;quot;: {},&lt;br /&gt;
		&amp;quot;mapframe-custom&amp;quot;: {},&lt;br /&gt;
		&amp;quot;qid&amp;quot;: {},&lt;br /&gt;
		&amp;quot;coordinates&amp;quot;: {},&lt;br /&gt;
		&amp;quot;mapframe-wikidata&amp;quot;: {},&lt;br /&gt;
		&amp;quot;mapframe-shape&amp;quot;: {},&lt;br /&gt;
		&amp;quot;mapframe-point&amp;quot;: {},&lt;br /&gt;
		&amp;quot;mapframe-line&amp;quot;: {},&lt;br /&gt;
		&amp;quot;mapframe-geomask&amp;quot;: {},&lt;br /&gt;
		&amp;quot;mapframe-switcher&amp;quot;: {},&lt;br /&gt;
		&amp;quot;mapframe-frame-width&amp;quot;: {},&lt;br /&gt;
		&amp;quot;mapframe-frame-height&amp;quot;: {},&lt;br /&gt;
		&amp;quot;mapframe-shape-fill&amp;quot;: {},&lt;br /&gt;
		&amp;quot;mapframe-shape-fill-opacity&amp;quot;: {},&lt;br /&gt;
		&amp;quot;mapframe-stroke-color&amp;quot;: {},&lt;br /&gt;
		&amp;quot;mapframe-stroke-width&amp;quot;: {},&lt;br /&gt;
		&amp;quot;mapframe-marker&amp;quot;: {},&lt;br /&gt;
		&amp;quot;mapframe-marker-color&amp;quot;: {},&lt;br /&gt;
		&amp;quot;mapframe-geomask-stroke-color&amp;quot;: {},&lt;br /&gt;
		&amp;quot;mapframe-geomask-stroke-width&amp;quot;: {},&lt;br /&gt;
		&amp;quot;mapframe-geomask-fill&amp;quot;: {},&lt;br /&gt;
		&amp;quot;mapframe-geomask-fill-opacity&amp;quot;: {},&lt;br /&gt;
		&amp;quot;mapframe-zoom&amp;quot;: {},&lt;br /&gt;
		&amp;quot;mapframe-length_km&amp;quot;: {},&lt;br /&gt;
		&amp;quot;mapframe-length_mi&amp;quot;: {},&lt;br /&gt;
		&amp;quot;mapframe-area_km2&amp;quot;: {},&lt;br /&gt;
		&amp;quot;mapframe-area_mi2&amp;quot;: {},&lt;br /&gt;
		&amp;quot;mapframe-frame-coordinates&amp;quot;: {}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
{{collapse bottom}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Wikipedia:Maps for Wikipedia]], a list of mapping tools available on Wikipedia&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Paine Ellsworth</name></author>
	</entry>
</feed>