Template:Coord/doc/Transwiki guide
Appearance
< Template:Coord | doc
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.
- 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.
- 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.
- Change the wikilink "[[Geographic coordinate system|Coordinates]]". This wikilink appears before the coordinate itself.
- Translate the error message "Missing longitude" .
- Translate the error message "Error param was empty". Param in this sentence is short for parameter.
- Translate the message "Maps, aerial photos, and other data for this location" . This message is displayed when the mouse is hovering over the coordinate.
- Translate the same message as above. It serves exactly the same purpose as the one in point 6.
- Translate the word "Coordinates". This word is displayed as the first part of several errors, where the coordinate is incorrect.
- 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.
- Translate the same message as above where it is mentioned again
- Translate the same message as above where it is mentioned again
- 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.
- Translate the error message "Parameter" and "should be". Please do not change the part where it says " ... v ... ".
- Find a good category instead of the category "[[Category:Pages with malformed coordinate tags]]". This is a maintenance category.
- Translate the error message "latitude degrees < 0 with hemisphere flag".
- Translate the same error message as above where it is mentioned again.
- Translate the error message "latitude degrees > 90" .
- Translate the error message "latitude degrees < -90"
- Translate the error message "latitude minutes >= 60"
- Translate the error message "latitude minutes < 0"
- Translate the error message "latitude seconds >= 60"
- Translate the error message "latitude seconds < 0"
- Translate the error message "longitude degrees >= 360"
- Translate the error message "longitude degrees <= -360"
- Translate the error message "longitude minutes >= 60"
- Translate the error message "longitude minutes < 0"
- Translate the error message "longitude seconds >= 60"
- Translate the error message "longitude seconds < 0"
- Save Module:Coordinates
- 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!