Template:Location map/doc: Difference between revisions
Appearance
-) Removed wrong documentation |
m →Parameters: (=) Typos (^○^ |
||
| (One intermediate revision by the same user not shown) | |||
| Line 4: | Line 4: | ||
== Maps Supported == | == Maps Supported == | ||
This template will work for all 50 states and the District of Columbia. To use more than one point, use the [[Template:Location map many| Location map many template]]. | |||
== Parameters == | == Parameters == | ||
:<code><nowiki>mapname</nowiki></code> - the name of the map | :<code><nowiki>mapname</nowiki></code> - the name of the map | ||
:<code><nowiki>width</nowiki></code> - the width of the map in pixels (do not include "px") | :<code><nowiki>width</nowiki></code> - the width of the map in pixels (do not include "px") | ||
:<code><nowiki>label</nowiki></code> - the | :<code><nowiki>label</nowiki></code> - the name of the point | ||
:<code><nowiki>coordinates</nowiki></code> - the | :<code><nowiki>coordinates</nowiki></code> - the coordinates of the point | ||
==Optional parameters== | ==Optional parameters== | ||
Latest revision as of 06:35, 18 December 2020
| Uses Lua: |
| Parts of this documentation were copied from the English Wikipedia article on this module. Note that the documentation could have been edited since copying. |
The Location map template is helpful for creating static maps on the wiki.
Maps Supported
This template will work for all 50 states and the District of Columbia. To use more than one point, use the Location map many template.
Parameters
mapname- the name of the mapwidth- the width of the map in pixels (do not include "px")label- the name of the pointcoordinates- the coordinates of the point
Optional parameters
Reference wikipedia's documentation for additional parameters.
Icons
| Icon | Name |
|---|---|
| Red pog.svg | |
| Yellow pog.svg | |
| Blue pog.svg | |
| Purple pog.svg | |
| Red Arrow Up.svg | |
| Red Arrow Right.svg | |
| Red Arrow Down.svg | |
| Red Arrow Left.svg |
Finding Coordinates
Do you not know how to find coordinates for an object? This should help:
- Understand that for coordinates in North America, longitude should generally be between -130 and -60 and latitude should generally be between 50 and 20
- Use a search engine to find the coordinates. For example, "Boca Raton Community High School coordinates".
- Get the coordinates from a search result.
- Make sure longitude (the bigger number) is negative and latitude (the smaller number) is positive
- Discard anything regarding "N", "E", "S", "W" and make sure your coordinates are simply a decimal number (no ', ", or ° characters)
Examples
| Code | Result |
|---|---|
{{Location map | Florida
| width = 250
| float = right
| label = Boca Raton Community High School
| coordinates = {{coord|26.362254|-80.116757}}
}}
|
|
{{Location map | Florida
| width = 400
| float = none
| caption = Boca's location in FL
| label = Boca Raton Community High School
| coordinates = {{coord|26.362254|-80.116757}}
| mark = Purple pog.svg
}}
|
|
{{Location map | Florida
| width = 400
| float = none
| caption = Boca's location in FL
| label = Boca Raton Community High School
| coordinates = {{coord|26.362254|-80.116757}}
| background = yellow
| position = bottom
}}
|