Wikipedia talk:WikiProject Geographical coordinates

From Wikipedia, the free encyclopedia
Jump to: navigation, search
WikiProject Geographical coordinates
WikiProject icon WikiProject Geographical coordinates is of interest to WikiProject Geographical coordinates, which encourages the use of geographical coordinates in Wikipedia. If you would like to participate, please visit the project page, where you can join the project and see a list of open tasks.
 
WikiProject Microformats
WikiProject Geographical coordinates is part of, or of interest to, WikiProject Microformats, which encourages the deployment of microformats in Wikipedia, and documents them in the article space. If you would like to participate, visit the project page.
 

To do[edit]

edit·history·watch·refresh Stock post message.svg To-do list for Wikipedia:WikiProject Geographical coordinates:

Find coordinates for[edit]

Use Maybe-Checker: verify and/or add coordinates to articles in categories likely to need coordinates.

Articles are also listed on WolterBot's cleanup listings (User:WolterBot/Cleanup statistics)

See also: Wikipedia:Obtaining geographic coordinates

Tag articles needing coordinates[edit]

{{coord missing|country name}} is added to articles needing coordinates. This makes them available for the previous step.

Fix[edit]

As of February 18, 2017 16:47 (UTC) Refresh
User reported errors:

no pages or subcategories
0 pages
no pages or subcategories
0 pages
no pages or subcategories
0 pages

Formatting errors:

no pages or subcategories
0 pages
no pages or subcategories
0 pages

More[edit]

  • Provide advice on the use of {{Attached KML}} on the WP:GEO page.
  • Make better examples, also showing use of decimals and scale.
  • Create an export to OpenStreetmap of all points in the database
  • Add an attribute for other planets and the moon and probably also star maps.
  • Extend NASA World Wind support to include layers (by type) and labels.
  • Rewrite the article Geographic coordinate system linked from many coordinates. Related articles: latitude, longitude.
  • Convert existing data to templates
    • Identify special formats not yet converted, e.g. E12 23 54 N23 34 52
  • Clean up / reduce redundancy in U.S. city articles (rambot/smackbot generated), see past discussion
  • Suggestions for extensions at mw:Summer of Code 2009#MediaWiki core and new extensions
  • Discuss, summarise and specify a set of changes to geohack, such as type list revision, support for linear features, bug fixes, &c

How to extract longitude degrees from a Coord template?[edit]

I have been working on converting Infobox templates as part of Wikipedia:Coordinates in infoboxes. I have come across a technical issue that I need help with. A couple of infoboxes, such as Template:Infobox Municipality PT, test the value of |longd= (longitude degrees) in order to decide which map to display in the infobox. It's very clever, but I haven't figured out how to replicate it using {{Coord}}. Here's a simplified version of the current code:

| pushpin_map             = {{#if: {{{longd|}}} | {{#ifexpr: {{{longd}}} > -10 | Portugal  | {{#ifexpr: {{{longd}}} < -24 | Portugal Azores | Portugal Madeira }} }} }}

My question is: Assuming that we deprecate and remove the latd/longd parameters and replace them with the {{Coord}} template, how do I implement this test in the infobox? Any links, ideas, or tips are appreciated. I poked through the archives for this talk page, but it's a tricky thing to search for. – Jonesey95 (talk) 00:40, 23 January 2017 (UTC)

Special:ExpandTemplates can show the output of {{coord}} and then string search can be used, e.g. with Module:String#match. It relies on the exact output format of {{coord}}. I tested {{Coord|57|18|22|N|4|27|32|E}}. It produces a string which includes <span class="geo">57.30611; 4.45889</span>. The second number can be captured with {{#invoke:String|match|s={{{coordinates}}}|pattern=<span class="geo">.-; (.-)</span>}}Test output: 4.45889. I haven't examined whether all {{coord}} calls with valid parameters will output the expected string. If we use this in templates then we should make a separate template like {{extract longd}} so the code can be adapted in a single place. PrimeHunter (talk) 12:08, 24 January 2017 (UTC)
Jonesey95 and PrimeHunter, try {{#invoke:coordinates|coord2text|{{Coord|57|18|22|N|4|27|32|E}}|lat}} and {{#invoke:coordinates|coord2text|{{Coord|57|18|22|N|4|27|32|E}}|long}}. Frietjes (talk) 15:59, 24 January 2017 (UTC)
That works. I didn't know we already had this. No need for me to reinvent the wheel. PrimeHunter (talk) 16:14, 24 January 2017 (UTC)
Thank you! As far as I can tell, it works great. I put that code into two templates after testing it in my sandbox and in the sandbox for one of the templates. Ironically, it appears that the longd test is not actually being used in any live pages, but I didn't want to remove it and silently break some obscure page that I could not find. – Jonesey95 (talk) 05:21, 25 January 2017 (UTC)
Is this going to be added to the coords documentation so we can find it in future?--ClemRutter (talk) 09:32, 25 January 2017 (UTC)
ClemRutter, as far as I can tell two new functions were added to the module on behalf of Jc86035, namely coord2text and coordinsert. I would think that they place to document these would be in the documentation for Module:Coordinates, perhaps with a pointer from Template:coord? Frietjes (talk) 14:26, 25 January 2017 (UTC)
I took a stab at a rough draft at Module:Coordinates, with a link from Template:coord. I probably used words like "function" wrong, so feel free to correct my text; I figured that something was better than nothing. I think there are specific parameters (type/scale/dim/globe/region/source) that can and can't be inserted with coordinsert, but I don't remember what they are. – Jonesey95 (talk) 22:11, 25 January 2017 (UTC)
I have added a little too. --ClemRutter (talk) 01:14, 26 January 2017 (UTC)

Lowest elevation in Antarctica?[edit]

There's an interesting puzzle at List of elevation extremes by country. IP User 202.87.162.173 (talk · contribs) listed Deep Lake, in the Vestfold Hills, as the lowest elevation in Antarctica, providing [1] as a reference. That reference is (IMO) reliable to verify that Deep Lake is at -50m elevation, but remains silent as to whether that is the lowest elevation in Antarctica. I have been unable to find any source that verifies that Deep Lake is the deepest in Antarctica, so the claim is probably original research. However, I have been unable to find a deeper verified elevation (which is weak support for the claim).

To make things more complex, various reliable sources (such as the CIA World Factbook) list the Bentley Subglacial Trench at −2,540 m (−8,330 ft) as the lowest point in Antarctica. Of course, that point is covered with thousands of meters of ice. Wikipedia consensus seems to define surface elevation above ice, rather than below. This seems to match the commonly-held definition of elevation.

What to do? I am stymied. Comments welcome at Talk:List of elevation extremes by country. —hike395 (talk) 03:32, 24 January 2017 (UTC)