ಟೆಂಪ್ಲೇಟು:Coord/doc/Transwiki guide
ಗೋಚರ
< ಟೆಂಪ್ಲೇಟು:Coord | doc
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.
- 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.
- 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]]" in line 28. This wikilink appears before the coordinate itself.
- Translate the error message "Missing longtitude" at line 60.
- Translate the error message "Error param was empty" at line 160. Param in this sentance is short for parameter.
- 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.
- Translate the same message as above in line 187. It serves the exact same purpose as the one in point 6.
- Translate the word "Coordinates" in line 222. This word is displayed as the first part of several errors, where the coordinate is incorrect.
- Translate the sentance "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.
- Translate the same message as above in line 281.
- Translate the same message as above in line 289.
- Translate the eror 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.
- Translate the error message "Parameter" and "should be" in line 300. Please do not change the part where it says " ... v ... ".
- Find a good category instead of the category "[[Category:Pages with malformed coordinate tags]]" specified in line 307. This is an maintainance category.
- Translate the error message "latitude degrees < 0 with hemisphere flag" in line 403.
- Translate the same error message as above in line 406.
- Translate the error message "latitude degrees > 90" in line 421.
- Translate the error message "latitude degrees < -90" in line 424
- Translate the error message "latitude minutes >= 60" in line 427
- Translate the error message "latitude minutes < 0" in line 320
- Translate the error message "latitude seconds >= 60" in line 433
- Translate the error message "latitude seconds < 0" in line 436
- Translate the error message "longitude degrees >= 360" in line 439
- Translate the error message "longitude degrees <= -360" in line 442
- Translate the error message "longitude minutes >= 60" in line 445
- Translate the error message "longitude minutes < 0" in line 448
- Translate the error message "longitude seconds >= 60" in line 451
- Translate the error message "longitude seconds < 0" in line 454
- 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!