Template:Coord/doc/Transwiki guide

In order to transwiki Template:Coord to another project copy Module:Coordinates and Module:Math to your wiki. Do not try to import those modules, due to 45750.

Once you have done that, Template:Coord works, but may not be in your language. In order to translate the messages of this template, open up Module:Coordinates on your wiki and follow the instructions below.

If you do not need to translate anything for some reason, please do look at the "Category:Pages with malformed coordinate tags" in your wiki and check if any pages are in there. If they are, then please correct the errors those pages have.


 * 1) In line 24, after "geohack.php?", add the code 'language=' (without the hyphens) followed by your language code. For example, if you did transwiki the template to the Danish Wikipedia, the link should be '//tools.wmflabs.org/geohack/geohack.php?language=da&pagename='. This will ensure that the user interface in GeoHack will be in the language of your wiki.
 * 2) You might want to make an template called "GeoTemplate", if it does not exist. The template would contain links to map sites. This template is used in GeoHack - the site you go to when you click on the coordinate. See Template:GeoTemplate for an example.
 * 3) Change the wikilink " Coordinates " in line 28. This wikilink appears before the coordinate itself.
 * 4) Translate the error message "Missing longitude" at line 60.
 * 5) Translate the error message "Error param was empty" at line 160. Param in this sentence is short for parameter.
 * 6) Translate the message "Maps, aerial photos, and other data for this location" at line 166. This message is displayed when the mouse is hovering over the coordinate.
 * 7) Translate the same message as above in line 187. It serves exactly the same purpose as the one in point 6.
 * 8) Translate the word "Coordinates" in line 222. This word is displayed as the first part of several errors, where the coordinate is incorrect.
 * 9) Translate the sentence "Extra unexpected parameters" in line 272. This line is displayed as the latter part in an error, where the word "Coordinates" in point 8 is displayed as an prefix.
 * 10) Translate the same message as above in line 281.
 * 11) Translate the same message as above in line 289.
 * 12) Translate the error message "Unknown argument format" in line 293. This line is displayed as the latter part in an error, where the word "Coordinates" in point 8 is displayed as an prefix.


 * 1) Translate the error message "Parameter" and "should be"  in line 300. Please do not change the part where it says " ... v ... ".
 * 2) Find a good category instead of the category "  " specified in line 307. This is a maintenance category.
 * 3) Translate the error message "latitude degrees < 0 with hemisphere flag" in line 403.
 * 4) Translate the same error message as above in line 406.
 * 5) Translate the error message "latitude degrees > 90" in line 421.
 * 6) Translate the error message  "latitude degrees < -90" in line 424
 * 7) Translate the error message  "latitude minutes >= 60" in line 427
 * 8) Translate the error message  "latitude minutes < 0" in line 320
 * 9) Translate the error message  "latitude seconds >= 60" in line 433
 * 10) Translate the error message  "latitude seconds < 0" in line 436
 * 11) Translate the error message  "longitude degrees >= 360" in line 439
 * 12) Translate the error message  "longitude degrees <= -360" in line 442
 * 13) Translate the error message  "longitude minutes >= 60" in line 445
 * 14) Translate the error message  "longitude minutes < 0" in line 448
 * 15) Translate the error message  "longitude seconds >= 60" in line 451
 * 16) Translate the error message  "longitude seconds < 0" in line 454
 * 17) Save Module:Coordinates
 * 18) Go over the pages in the "Category:Pages with malformed coordinate tags", or the one you chose instead of it. Try to fix all the coordinates on those pages.

You are done!