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 "Foobar".
{{tmbox
|type=notice
|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].
}}
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 "Foo" and will point to "Foobar".
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.
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:
image - the image displayed to the right of the introductory text. If omitted, no image is displayed.
projection - the type of projection the map uses. If omitted, defaults to "an
equirectangular projection".
name - the name to use in the introductory text. If omitted, defaults to the name specified in the map definition.
examples - the contents of the Examples section. The Examples header itself and the final {{clear}} template are not required. If omitted, no examples section is displayed.
see also - additional links to display at the top of the See also section. If omitted, no additional links are displayed.
If any features are present in the old doc page that
Module:Location map/data/doc does not support, please add support for them.
Here is an example of a converted doc page:
<!-- Categories and interwikis go at the bottom of this page. -->
{{Module:Location map/data/doc|image=<!-- [[File:|thumb|300px|Map of Sevastopol]] -->
|examples=
=== Location map, using default map (image) ===
{{Location map | Sevastopol
| width = 250
| lat_deg = 44.5
| lon_deg = 33.6
| label = Balaklava
}}
<pre style="width:25em">
{{Location map | Sevastopol
| width = 250
| lat_deg = 44.5
| lon_deg = 33.6
| label = Balaklava
}}
</pre>
|see also=
* [[Template:Location map Crimea]]
}}
<includeonly>
<!-- Categories and interwikis go here: -->
</includeonly>