Jump to content

Template:Coord/doc/Transwiki guide

From Wikipedia, the free encyclopedia

In order to transwiki Template:Coord to another project copy Module:Coordinates and Module:Math to your wiki or import those modules.

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. 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]]". This wikilink appears before the coordinate itself.
  4. Translate the error message "Missing longitude" .
  5. Translate the error message "Error param was empty". Param in this sentence is short for parameter.
  6. Translate the message "Maps, aerial photos, and other data for this location" . This message is displayed when the mouse is hovering over the coordinate.
  7. Translate the same message as above. It serves exactly the same purpose as the one in point 6.
  8. Translate the word "Coordinates". This word is displayed as the first part of several errors, where the coordinate is incorrect.
  9. Translate the sentence "Extra unexpected parameters". 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 where it is mentioned again
  11. Translate the same message as above where it is mentioned again
  12. Translate the error message "Unknown argument format". 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". 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]]". This is a maintenance category.
  15. Translate the error message "latitude degrees < 0 with hemisphere flag".
  16. Translate the same error message as above where it is mentioned again.
  17. Translate the error message "latitude degrees > 90" .
  18. Translate the error message "latitude degrees < -90"
  19. Translate the error message "latitude minutes >= 60"
  20. Translate the error message "latitude minutes < 0"
  21. Translate the error message "latitude seconds >= 60"
  22. Translate the error message "latitude seconds < 0"
  23. Translate the error message "longitude degrees >= 360"
  24. Translate the error message "longitude degrees <= -360"
  25. Translate the error message "longitude minutes >= 60"
  26. Translate the error message "longitude minutes < 0"
  27. Translate the error message "longitude seconds >= 60"
  28. Translate the error message "longitude seconds < 0"
  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!