Template:Location/doc

The following templates are used to geo-code Commons images: In most of the cases camera location is preferred and most of the images should use the first two templates. However in some cases object location, indicating position of the main subject of the photograph, makes more sense, for example when providing location of a painting or sheet music. It can also be used to point to a nearby feature when giving the location of a plant or animal where an exact location is not appropriate (eg where you do not want to reveal the exact location of a rare plant).
 * Location           – used to provide camera location using degrees/minutes/seconds notation
 * Location dec       – used to provide camera location using decimal notation
 * Object location    – used to provide object location using degrees/minutes/seconds notation
 * Object location dec – used to provide object location using decimal notation

Those four templates output a Geo_(microformat) and add images to either Category:Media with locations or Category:Media with erroneous locations. See Geocoding for more details.

Examples
Note, that with above two templates, you should indicate camera position and not object position. To make clear what what was photographed add the  parameter using degrees or direction acronyms as shown on the compass. See Geocoding for more information.

Also note that the output of those two templates is identical despite of different inputs.

The syntax and output of Object location and Object location dec templates is the same, except for the word "Object" in the template name resulting in use of Object Location phrase instead of Camera Location in the output.

Parameters
Where:
 * is an ISO 3166-1 alpha 2 country code abbreviation, and
 * is a 2- or 3- characters ISO 3166-2 province/region/state code abbreviation (typically the same as a local postal code abbreviation).
 * is a 2- or 3- characters ISO 3166-2 province/region/state code abbreviation (typically the same as a local postal code abbreviation).


 * is a class descriptor about the object. It is defined by geohack.php and mapsources.php on ToolServer.Org and corresponding documentation can be found on en:WP:GEO. NOTE:   is hard-coded default value
 * is an information about which range the image covers, given in meters (1000 is 1 kilometer)
 * is either a compass rose point (up to four letters) or degree heading (zeropoint North, clockwise).

Translation
To create a new language version of all four templates, create a new subpage of Template:Location, cut and paste code below and translate terms on the right side of the equal signs which are not in { – } parenthesis. In case of GoogleMapLang parameter, which is used for setting default language at Google Maps website, see Google Language Tools for list of supported languages. Than click in a language of interest and check what 2 letter code is used:

 