<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://escforumwiki.com/index.php?action=history&amp;feed=atom&amp;title=Template%3ALocation_map%2Fdoc%2FConverting_map_definition_templates_to_modules</id>
	<title>Template:Location map/doc/Converting map definition templates to modules - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://escforumwiki.com/index.php?action=history&amp;feed=atom&amp;title=Template%3ALocation_map%2Fdoc%2FConverting_map_definition_templates_to_modules"/>
	<link rel="alternate" type="text/html" href="https://escforumwiki.com/index.php?title=Template:Location_map/doc/Converting_map_definition_templates_to_modules&amp;action=history"/>
	<updated>2026-04-08T00:42:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://escforumwiki.com/index.php?title=Template:Location_map/doc/Converting_map_definition_templates_to_modules&amp;diff=73521&amp;oldid=prev</id>
		<title>Santos: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://escforumwiki.com/index.php?title=Template:Location_map/doc/Converting_map_definition_templates_to_modules&amp;diff=73521&amp;oldid=prev"/>
		<updated>2018-03-17T19:26:59Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Converting definitions ==&lt;br /&gt;
This checklist lists the steps required to convert a location map definition from a template to a module. In this example, the definition will be called &amp;quot;Foobar&amp;quot;.&lt;br /&gt;
#Create [[Module:Location map/data/Foobar]] with the same values as [[Template:Location map Foobar]]. See [[Template:Location map/Creating a new map definition]] for more details on this step. Note that if a map contains formulas for x and/or y, all occurrences of &amp;lt;nowiki&amp;gt;{{{2}}} or {{{2|}}}&amp;lt;/nowiki&amp;gt; need to be changed to $1, and all occurrences of &amp;lt;nowiki&amp;gt;{{{3}}} or {{{3|}}}&amp;lt;/nowiki&amp;gt; need to be changed to $2.&lt;br /&gt;
#If [[Template:Location map Foobar]] is protected, protect or request protection of [[Module:Location map/data/Foobar]] at the same level.&lt;br /&gt;
#If any pages redirect to [[Template:Location map Foobar]], follow the steps under the [[#Converting redirects]] heading below for each of them.&lt;br /&gt;
#If [[Template:Location map Foobar/doc]] exists, move it to [[Module:Location map/data/Foobar/doc]] (without leaving a redirect if possible) and convert it following the instructions under the [[#Converting documentation]] heading below.&lt;br /&gt;
#If [[Template talk:Location map Foobar]] exists, move it to [[Module talk:Location map/data/Foobar]] (without leaving a redirect if possible).&lt;br /&gt;
#Blank [[Template:Location map Foobar]].&lt;br /&gt;
#Move [[Template:Location map Foobar]] to [[Module talk:Location map/data/Foobar/attribution]] (without leaving a redirect if possible), or request this move at [[WP:RM/TR]] if you&amp;#039;re unable to perform it yourself.&lt;br /&gt;
#Fully protect or request full protection of [[Module talk:Location map/data/Foobar/attribution]] indefinitely, since it&amp;#039;s only being kept for its history.&lt;br /&gt;
#Add the following to the top of [[Module talk:Location map/data/Foobar]], or create it with this content if it doesn&amp;#039;t exist:{{#tag:pre|&amp;lt;nowiki&amp;gt;{{tmbox&lt;br /&gt;
|type=notice&lt;br /&gt;
|text=Revision history for the template that was converted to [[Module:{{PAGENAME}}]] can be found at [{{fullurl:{{FULLPAGENAME}}/attribution|action=history}} {{FULLPAGENAME}}/attribution: Revision history].&lt;br /&gt;
}}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
#Update any links that point to [[Template:Location map Foobar]] to point to [[Module:Location map/data/Foobar]].&lt;br /&gt;
#Delete or request deletion of [[Template:Location map Foobar]] under CSD G6.&lt;br /&gt;
#Delete or request deletion of subpages or talk pages of [[Template:Location map Foobar]] under CSD G8.&lt;br /&gt;
&lt;br /&gt;
== Converting redirects ==&lt;br /&gt;
This checklist lists the steps required to convert a redirect to a location map definition from a template to a module. In this example, the redirect will be called &amp;quot;Foo&amp;quot; and will point to &amp;quot;Foobar&amp;quot;.&lt;br /&gt;
#Check if any pages use the redirect. If not, skip the rest of the steps and just request it be deleted under CSD G8 once the page it redirects to gets converted.&lt;br /&gt;
#Create [[Module:Location map/data/Foo]] with &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;return require(&amp;#039;Module:Location map/data/Foobar&amp;#039;)&amp;lt;/syntaxhighlight&amp;gt; as the content.&lt;br /&gt;
#If [[Template:Location map Foo]] is protected, protect or request protection of [[Module:Location map/data/Foo]] at the same level.&lt;br /&gt;
#Create [[Module:Location map/data/Foo/doc]] as a redirect to [[Module:Location map/data/Foobar/doc]].&lt;br /&gt;
#Delete or request deletion of [[Template:Location map Foo]] under CSD G6.&lt;br /&gt;
#Delete or request deletion of any subpages or talk pages of [[Template:Location map Foo]] under CSD G8.&lt;br /&gt;
&lt;br /&gt;
== Converting documentation ==&lt;br /&gt;
Replace the documentation page, except for comments, categories, etc. with a transclusion of [[Module:Location map/data/doc]]. To match the appearance of the old doc page, the following parameters are accepted:&lt;br /&gt;
*&amp;lt;tt&amp;gt;image&amp;lt;/tt&amp;gt; - the image displayed to the right of the introductory text. If omitted, no image is displayed.&lt;br /&gt;
*&amp;lt;tt&amp;gt;projection&amp;lt;/tt&amp;gt; - the type of projection the map uses. If omitted, defaults to &amp;quot;an [[equirectangular projection]]&amp;quot;.&lt;br /&gt;
*&amp;lt;tt&amp;gt;name&amp;lt;/tt&amp;gt; - the name to use in the introductory text. If omitted, defaults to the name specified in the map definition.&lt;br /&gt;
*&amp;lt;tt&amp;gt;examples&amp;lt;/tt&amp;gt; - the contents of the Examples section. The Examples header itself and the final {{tl|clear}} template are not required. If omitted, no examples section is displayed.&lt;br /&gt;
*&amp;lt;tt&amp;gt;see also&amp;lt;/tt&amp;gt; - additional links to display at the top of the See also section. If omitted, no additional links are displayed.&lt;br /&gt;
If any features are present in the old doc page that [[Module:Location map/data/doc]] does not support, please add support for them.&lt;br /&gt;
&lt;br /&gt;
Here is an example of a converted doc page:&lt;br /&gt;
{{#tag:pre|&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;!-- Categories and interwikis go at the bottom of this page. --&amp;gt;&lt;br /&gt;
{{Module:Location map/data/doc|image=&amp;lt;!-- [[File:|thumb|300px|Map of Sevastopol]] --&amp;gt;&lt;br /&gt;
|examples=&lt;br /&gt;
=== Location map, using default map (image) ===&lt;br /&gt;
{{Location map | Sevastopol&lt;br /&gt;
| width   = 250&lt;br /&gt;
| lat_deg = 44.5&lt;br /&gt;
| lon_deg = 33.6&lt;br /&gt;
| label   = Balaklava&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;pre style=&amp;quot;width:25em&amp;quot;&amp;gt;&lt;br /&gt;
{{Location map | Sevastopol&lt;br /&gt;
| width   = 250&lt;br /&gt;
| lat_deg = 44.5&lt;br /&gt;
| lon_deg = 33.6&lt;br /&gt;
| label   = Balaklava&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|see also=&lt;br /&gt;
* [[Template:Location map Crimea]]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- Categories and interwikis go here: --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&amp;lt;/nowiki&amp;gt;}}&lt;/div&gt;</summary>
		<author><name>Santos</name></author>
	</entry>
</feed>