Template:Coord/doc/Transwiki guide: Difference between revisions

From Jonesipedia
Jump to navigation Jump to search
top: Typo fixing, replaced: maintainance → maintenance, sentance → sentence (2), typo(s) fixed: eror → error, the exact same → exactly the same, wikipedia → Wikipedia, danish → Danish using AWB
 
m 1 revision imported
 
(No difference)

Latest revision as of 18:28, 27 May 2021

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 bugzilla: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 "[[Geographic coordinate system|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.
  13. Translate the error message "Parameter" and "should be" in line 300. Please do not change the part where it says " ... v ... ".
  14. Find a good category instead of the category "[[Category:Pages with malformed coordinate tags]]" specified in line 307. This is a maintenance category.
  15. Translate the error message "latitude degrees < 0 with hemisphere flag" in line 403.
  16. Translate the same error message as above in line 406.
  17. Translate the error message "latitude degrees > 90" in line 421.
  18. Translate the error message "latitude degrees < -90" in line 424
  19. Translate the error message "latitude minutes >= 60" in line 427
  20. Translate the error message "latitude minutes < 0" in line 320
  21. Translate the error message "latitude seconds >= 60" in line 433
  22. Translate the error message "latitude seconds < 0" in line 436
  23. Translate the error message "longitude degrees >= 360" in line 439
  24. Translate the error message "longitude degrees <= -360" in line 442
  25. Translate the error message "longitude minutes >= 60" in line 445
  26. Translate the error message "longitude minutes < 0" in line 448
  27. Translate the error message "longitude seconds >= 60" in line 451
  28. Translate the error message "longitude seconds < 0" in line 454
  29. Save Module:Coordinates
  30. 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!