<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3AInfobox_mapframe%2Fdoc</id>
	<title>Module:Infobox mapframe/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3AInfobox_mapframe%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Infobox_mapframe/doc&amp;action=history"/>
	<updated>2026-04-22T00:24:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Infobox_mapframe/doc&amp;diff=136939&amp;oldid=prev</id>
		<title>imported&gt;Frietjes: /* Automatic maps in infoboxes */ looks like these are also valid</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Infobox_mapframe/doc&amp;diff=136939&amp;oldid=prev"/>
		<updated>2021-06-21T23:27:51Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Automatic maps in infoboxes: &lt;/span&gt; looks like these are also valid&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Module rating|beta}}&lt;br /&gt;
{{Lua sidebar}}&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;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
Module that automatically makes a mapframe suitable for an infobox automatically, with minimal user input.&lt;br /&gt;
&lt;br /&gt;
===Generic usage===&lt;br /&gt;
Just use the template {{tl|Infobox mapframe}}, following the documentation there. This module may also be imported to another Lua module.&lt;br /&gt;
&lt;br /&gt;
===Automatic maps in infoboxes===&lt;br /&gt;
:&amp;#039;&amp;#039;Example edits: [https://en.wikipedia.org/w/index.php?title=Template%3AInfobox_prison&amp;amp;type=revision&amp;amp;diff=962824818&amp;amp;oldid=782742135 Template:Infobox prison], [https://en.wikipedia.org/w/index.php?title=Template%3AInfobox_prison%2Fdoc&amp;amp;type=revision&amp;amp;diff=962825435&amp;amp;oldid=768262729 Template:Infobox prison/doc]&amp;#039;&amp;#039;&lt;br /&gt;
Edit the infobox template (or its sandbox).&lt;br /&gt;
Add lines like the following examples to the infobox. Replace numbers ({{kbd|4}}, or {{kbd|97}} to {{kbd|99}}), with the appropriate number based on how many other image or data parameters are already present.&lt;br /&gt;
{|style=width:100%&lt;br /&gt;
|-&lt;br /&gt;
! If placing near the top of infobox !! If placing at/near the bottom of the infobox&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;pre&amp;gt;&lt;br /&gt;
| image4     = {{#invoke:Infobox mapframe|auto}}&lt;br /&gt;
| caption4   = {{#invoke:Infobox mapframe|autocaption}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|&amp;lt;pre&amp;gt;&lt;br /&gt;
| header97   = {{#if:{{{mapframe|}}}|Location}}&lt;br /&gt;
| data98     = {{#invoke:Infobox mapframe|auto}}&lt;br /&gt;
| data99     = {{#invoke:Infobox mapframe|autocaption}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
If the template has a &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:&amp;lt;/nowiki&amp;gt;[[Module:Check for unknown parameters|Check for unknown parameters]]&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, add the following parameters:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
| mapframe | mapframe-caption | mapframe-custom | mapframe-id | mapframe-coord | mapframe-wikidata | mapframe-point | mapframe-shape | mapframe-frame-width | mapframe-frame-height | mapframe-shape-fill | mapframe-shape-fill-opacity | mapframe-stroke-color | mapframe-stroke-colour | mapframe-stroke-width | mapframe-marker | mapframe-marker-color | mapframe-marker-colour | mapframe-geomask | mapframe-geomask-stroke-color | mapframe-geomask-stroke-colour | mapframe-geomask-stroke-width | mapframe-geomask-fill | mapframe-geomask-fill-opacity | mapframe-zoom | mapframe-length_km | mapframe-length_mi | mapframe-area_km2 | mapframe-area_mi2 | mapframe-frame-coordinates | mapframe-frame-coord | mapframe-switcher | mapframe-height | mapframe-width &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Once this is done, the above parameters will be available to users of the template.&lt;br /&gt;
* Defaults values for these parameters can also be specified in the {{kbd|#invoke}} calls above, e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Infobox mapframe|auto|mapframe-marker=library}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; means that the library marker will be used, unless a different value is passed in to the template.&lt;br /&gt;
* The maps are off by default, which means maps will not be displayed unless {{para|mapframe|yes}} is present in the template call. To turn maps on by default, in the {{kbd|#invoke}} calls above add {{para|onByDefault|yes}} – which means maps will be displayed unless {{para|mapframe|no}} is present in the template call. {{kbd|onByDefault}} can also be set to a conditional, such as if another parameters is present, e.g. {{para|onByDefault|2=&amp;lt;nowiki&amp;gt;{{#if:{{{pushpin_map|}}}|no|yes}}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
* Add the new parameters to the document. You can use {{tlx|Infobox mapframe/doc/parameters}}. Specify default values (if any are used in the {{kbd|#invoke}} calls) using by adding parameters in the form {{tt|{{!}}}}&amp;#039;&amp;#039;parameter-name&amp;#039;&amp;#039;{{tt|{{=}}}}&amp;#039;&amp;#039;value&amp;#039;&amp;#039;. The default output is shown here collapsed:&lt;br /&gt;
{{cot}}&lt;br /&gt;
{{Infobox mapframe/doc/parameters}}&lt;br /&gt;
{{cob}}&lt;br /&gt;
*Parameters can also be added to the TemplateData can also be added by copy-pasting from {{edit|Template:Infobox mapframe/doc/templatedata|Template:Infobox mapframe/doc/templatedata}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Wikipedia:Mapframe maps in infoboxes]]&lt;br /&gt;
* [[Module:Mapframe]] &amp;amp; [[Template:Maplink]]&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox | |&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;Frietjes</name></author>
	</entry>
</feed>