<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://70.231.62.181/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="http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Module%3AInfobox_mapframe%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Module:Infobox_mapframe/doc&amp;action=history"/>
	<updated>2026-04-23T07:47:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>http://70.231.62.181/index.php?title=Module:Infobox_mapframe/doc&amp;diff=16121050&amp;oldid=prev</id>
		<title>imported&gt;Zackmann08: /* Automatic maps in infoboxes */ Updating documentation to reflect new functionality</title>
		<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Module:Infobox_mapframe/doc&amp;diff=16121050&amp;oldid=prev"/>
		<updated>2025-11-18T20:39:00Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Automatic maps in infoboxes: &lt;/span&gt; Updating documentation to reflect new functionality&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Module rating|release}}&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:Mapframe|Module:InfoboxImage|Module:Infobox dim|Module:Yesno|Module:Arguments}}&lt;br /&gt;
{{Lua sidebar}}&lt;br /&gt;
&lt;br /&gt;
This module implements {{tl|Infobox mapframe}}.&lt;br /&gt;
&lt;br /&gt;
See [[Template:Infobox mapframe/testcases]] for tests.&lt;br /&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|autoWithCaption}}&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|autoWithCaption}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
If the template has a call to {{mlx|Check for unknown parameters|check}}, simply add {{para|mapframe_args|y}} to the call and the various mapframe args will automatically be included.&lt;br /&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.&lt;br /&gt;
&amp;lt;pre&amp;gt;{{#invoke:Infobox mapframe&lt;br /&gt;
  | autoWithCaption&lt;br /&gt;
  | mapframe-marker = library&lt;br /&gt;
}}&amp;lt;/pre&amp;gt;&lt;br /&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. &lt;br /&gt;
*: 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.&lt;br /&gt;
*: {{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 template documentation.&lt;br /&gt;
*: You can use {{tlx|Infobox mapframe/doc/parameters}}.&lt;br /&gt;
*: If any default values are modified in the {{kbd|#invoke}} calls, add them as 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;.&lt;br /&gt;
*: 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, which can be copied and pasted from the relevant parts of {{edit|Template:Infobox mapframe/doc|Template:Infobox mapframe/doc}}&lt;br /&gt;
*For a list of available markers, see [[mw:Help:Extension:Kartographer/Icons]]&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;
&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;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Module documentation pages]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Zackmann08</name></author>
	</entry>
</feed>