Template:Location map data documentation: Difference between revisions
m (Text replacement - "longitude" to "longitude") |
m (Text replacement - "latitude" to "latitude") |
||
| Line 2: | Line 2: | ||
{{{image|}}} | {{{image|}}} | ||
'''{{#titleparts:{{FULLPAGENAME}}|3}}''' is a location map definition used to overlay markers and labels on {{{projection|an [[equirectangular projection]]}}} map of {{{name|[[{{#invoke:Location map|data|{{#titleparts:{{FULLPAGENAME}}|1|3}}|name}}]]}}}. The markers are placed by | '''{{#titleparts:{{FULLPAGENAME}}|3}}''' is a location map definition used to overlay markers and labels on {{{projection|an [[equirectangular projection]]}}} map of {{{name|[[{{#invoke:Location map|data|{{#titleparts:{{FULLPAGENAME}}|1|3}}|name}}]]}}}. The markers are placed by latitude and longitude coordinates on the default map or a similar map image. | ||
== Usage == | == Usage == | ||
| Line 51: | Line 51: | ||
* <code>'''y''' = {{#invoke:Location map|data|{{#titleparts:{{FULLPAGENAME}}|1|3}}|y}}</code> | * <code>'''y''' = {{#invoke:Location map|data|{{#titleparts:{{FULLPAGENAME}}|1|3}}|y}}</code> | ||
*: An expression to calculate a location on the map via its | *: An expression to calculate a location on the map via its latitude; evaluates as 0 along the top edge and 100 along the bottom edge | ||
}}{{#if:{{#invoke:Location map|data|{{#titleparts:{{FULLPAGENAME}}|1|3}}|mark}}| | }}{{#if:{{#invoke:Location map|data|{{#titleparts:{{FULLPAGENAME}}|1|3}}|mark}}| | ||
Latest revision as of 11:31, 31 January 2025
| This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
Usage
This page is a template which generates documentation for location map data modules having names starting with "Module:Location map/data/", such as Module:Location map/data/Morocco. It is used each module's documentation page, such as Module:Location map/data/Morocco/doc.
Parameters
The following parameters are taken by Template:Location map data documentation:
| Parameter | Description |
|---|---|
image
|
An additional image to display (other than the one the location map uses) on the right side of the documentation page. If not specified, no additional image is displayed. |
projection
|
The type of projection the location map uses. If not specified, "an [[equirectangular projection]]" is used. |
name
|
The name to display in the map's documentation. The name is unlinked by default. If not specified, the actual name of the location map is used. |
examples
|
A section containing examples of the location map's usage. A {{clear}} template is automatically placed at the end of the examples. If not specified, no examples are output. |
see also
|
Additional links to place in the "See also" section. |
All information about the map will be automatically taken from the map's definition itself.