Module:Location map/data/Thailand/doc

< Module:Location map‎ | data/Thailand
Revision as of 03:22, 16 July 2021 by Zoran (talk | contribs) (Pywikibot 6.4.0)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is the documentation page for Module:Location map/data/Thailand

Lua error: expandTemplate: template "coord" does not exist.

Module:Location map/data/Thailand is a location map definition used to overlay markers and labels on an equirectangular projection map of Thailand. The markers are placed by latitude and longitude coordinates on the default map or a similar map image.

Usage

These definitions are used by the following templates when invoked with parameter "Thailand":

Map definition

  • name = Thailand
    Name used in the default map caption
  • bottom = 5.4
    Latitude at bottom edge of map, in decimal degrees
  • left = 97.1
    Longitude at left edge of map, in decimal degrees
  • right = 106
    Longitude at right edge of map, in decimal degrees

Alternative map

The {{Location map}}, {{Location map many}}, and {{Location map+}} templates have parameters to specify an alternative map image. The map displayed as image1 can be used with the relief or AlternativeMap parameters. Examples may be found below or in the following:

Precision

Longitude: from West to East this map definition covers 8.9 degrees.

  • At an image width of 200 pixels, that is 0.0445 degrees per pixel.
  • At an image width of 1000 pixels, that is 0.0089 degrees per pixel.

Latitude: from North to South this map definition covers 15.2 degrees.

  • At an image height of 200 pixels, that is 0.076 degrees per pixel.
  • At an image height of 1000 pixels, that is 0.0152 degrees per pixel.

Examples using location map templates

Location map, using default map (image)

Template:Location map

{{Location map | Thailand
| width   = 150
| lat_deg = 13.752
| lon_deg = 100.494
| label   = Bangkok
}}

Template:Clear

Location map many, using relief map (image1)

Template:Location map many

=== Location map many, using relief map (image1) ===
{{Location map many | Thailand
| relief   = yes
| width    = 250
| caption  = Seven locations in Thailand
| lat1_deg = 13.752
| lon1_deg = 100.494
| label1   = Bangkok
| lat2_deg = 13.543
| lon2_deg = 100.270
| label2   = Samut Sakhon
| lat3_deg = 14.025
| lon3_deg = 99.530
| label3   = Kanchanaburi
| lat4_deg = 7.495
| lon4_deg = 99.075
| label4   = Ko Lanta Yai
| lat5_deg = 18.780
| lon5_deg = 98.981
| label5   = Chiang Mai
| lat6_deg = 16.838
| lon6_deg = 100.257
| label6   = Phitsanulok
| lat7_deg = 16.438
| lon7_deg = 102.810
| label7   = Khon Kaen
}}

Template:Clear

Location map+, using AlternativeMap

Template:Location map+

{{Location map+ | Thailand
| AlternativeMap = Thailand location map Topographic.png
| width   = 150
| caption = Two locations in Thailand
| places  =
  {{Location map~ | Thailand
  | lat_deg = 13.752
  | lon_deg = 100.494
  | label   = Bangkok
  }}
  {{Location map~ | Thailand
  | lat_deg = 7.017
  | lon_deg = 100.467
  | label   = Hat Yai
  }}
}}

Template:Clear

See also

Location map templates

Creating new map definitions