Template talk:Coor dms/Archive 3

Latest comment: 16 years ago by CBM in topic Hover text

Update for Coor d: span edit

To include geo markup, I'd like to add the following markup:

  • Current version (with previous update):

<span class="plainlinksneverexpand">[{{Coor URL}}{{{1}}}_{{{2}}}_{{{3}}}_{{{4}}}_{{{5}}} <span title="Maps, aerial photos, and other data for this location">{{{1}}}° {{{2}}} {{{3}}}° {{{4}}}</span>]</span>

  • New version

<span class="plainlinksneverexpand">[{{Coor URL}}{{{1}}}_{{{2}}}_{{{3}}}_{{{4}}}_{{{5}}} <span title="Maps, aerial photos, and other data for this location"><span class="geo"><span class="latitude">{{{1}}}° {{{2}}}</span> <span class="longitude">{{{3}}}° {{{4}}}</span></span></span>]</span> -- User:Docu

(previous comment by Docu (talk · contribs)) Please don't; as with your previous attempts, that's broken, and will not work. {{coord}} already supplies geo microformat capability, and additional functionality besides. It is intended to replace the coor * templates, as I thought you were aware. Andy Mabbett 14:14, 5 July 2007 (UTC)Reply
Do you have a specific issue with the edit? -- User:Docu
Yes. It will not work. Andy Mabbett 15:27, 5 July 2007 (UTC)Reply
(previous comment by Pigsonthewing (talk · contribs)). Can you propose something? -- User:Docu

<span class="plainlinksneverexpand">[{{Coor URL}}{{{1}}}_{{{2}}}_{{{3}}}_{{{4}}}_{{{5}}} <span class="geo"><span class="latitude" title="{{#ifeq:{{{2}}}|S|-|}}{{{1}}}">{{{1}}}° {{{2}}}</span> <span class="longitude" title="{{#ifeq:{{{4}}}|W|-|}}{{{3}}}">{{{3}}}° {{{4}}}</span></span>]</span>

Would this work? Test at Template:Coor d/Test, e.g. 27°46′56″N 82°40′03″W / 27.782254°N 82.667619°W / 27.782254; -82.667619 -- User:Docu
"Can you propose something?" - Yes, use {{Coord}} instead.
"Would this work?" - In the light of the far superior {{coord}}, which is intended to replace coor d, it's not worth the time to test it.
Andy Mabbett 16:28, 5 July 2007 (UTC)Reply
Thanks for stopping by and posting your Ceterum censeo. --- User:Docu
Please post in English. Andy Mabbett 16:44, 5 July 2007 (UTC)Reply
Test results at: Template talk:Coor d/Test. Works fine now (IMHO). -- User:Docu

Extra space edit

In Template:Coor dm, there is an extra space between the <span> and what's inside the span, making an extra space appearing when you put the template in parentheses like this: (36°24′S 148°37′E / 36.400°S 148.617°E / -36.400; 148.617) — Jeremy 01:54, 4 August 2007 (UTC)Reply

Fixed. Thank you. -- User:Docu

Uniformity edit

{{editprotected}} I noticed that Template:Geolinks-US-streetscale and its friends look very different from the range of servers that this template offer. I think that there should be more uniformity. In particular, I would like to see WikiMapia added to this template. I am aware that there may be some semantic issues with layout that differ between this template and the Geolinks on. And the Geolinks one add the link to the upper right-hand corner of the page, but surely the list of offered servers could be made more uniform. They do both point to Geohack, which has a comprehensive list, but this is more of a "user interface" uniformity thing.--SallyForth123 00:25, 5 August 2007 (UTC)Reply

This template does not link to any outside servers (except tools.wikimedia.de). Also, editprotected requests are for immediate changes to a specific page. Broader changes that require outside work should be suggested and the code should be written before putting up a editprotected request. Cheers. --MZMcBride 00:50, 5 August 2007 (UTC)Reply

Update to the three Coor templates edit

 Proposal withdrawn. Zab (talk) 17:32, 23 February 2008 (UTC)Reply

Proposed: the following updates to the Coor dms family of templates (acknowledging the existence of Template:Coord): Categorization based on rounded geo-coordinate location using the following code:

Template:Coor d edit

<includeonly>{{ #ifeq: {{{1|x}}}|x| [[Category:{{{category|Places}}} on Earth]] | [[Category:{{{category|Places}}} near {{ #expr: {{{1}}} round 0}}°{{ #ifeq: {{ #expr: {{{1}}} round 0 }} | 0 | |{{{2}}} }} {{ #expr: {{{3}}} round 0 }}°{{ #ifeq: {{ #expr: {{{3}}} round 0 }} | 180 | | {{ #ifeq: {{ #expr: {{{3}}} round 0 }} | 0 | | {{{4}}} }} }}]] }}</includeonly>

Template:Coor dm edit

<includeonly>{{ #ifeq: {{{1|x}}}|x| [[Category:{{{category|Places}}} on Earth]] | [[Category:{{{category|Places}}} near {{ #expr: {{{1}}} round 0}}°{{ #ifeq: {{ #expr: {{{1}}} round 0 }} | 0 | |{{{3}}} }} {{ #expr: {{{4}}} round 0 }}°{{ #ifeq: {{ #expr: {{{4}}} round 0 }} | 180 | | {{ #ifeq: {{ #expr: {{{4}}} round 0 }} | 0 | | {{{6}}} }} }}]] }}</includeonly>

Template:Coor dms edit

<includeonly>{{ #ifeq: {{{1|x}}}|x| [[Category:{{{category|Places}}} on Earth]] | [[Category:{{{category|Places}}} near {{ #expr: {{{1}}} round 0}}°{{ #ifeq: {{ #expr: {{{1}}} round 0 }} | 0 | |{{{4}}} }} {{ #expr: {{{5}}} round 0 }}°{{ #ifeq: {{ #expr: {{{5}}} round 0 }} | 180 | | {{ #ifeq: {{ #expr: {{{5}}} round 0 }} | 0 | | {{{8}}} }} }}]] }}</includeonly>

Discussion edit

  Resolved

This change will add categories like this: Category:Places near 0° 100°W (always rounded off). The impact of this will be most noticeable near cities or other heavily populated areas. The problem of being near the equator, prime meridian, or date line is handled by dropping the directional modifier.

I do not believe that this addition violates WP:CAT (specifically WP:OCAT) because this would amount to a unified scheme of categorizing articles based on an accepted measure (geo coordinates).

Caveats include the fact that a Template:coord version doesn't exist yet. I see how it could be done, and I *could* write it, but I have no way of testing without importing the entire coord tree. Is there an easier way to sandbox templates? There is also a debatable issue of what to use instead of the Category:Places on Earth. Maybe no category if there are no coordinates?

One final thing. The modification allows the word Places to be changed using the category parameter. However, doing so is borderline WP:OCAT, so I am open to discussion about that one.

A live version with doc stub is available here. Thank you for your consideration. Zab (talk) 12:18, 19 February 2008 (UTC)Reply

You might want to bring this up in WT:GEO, the talk page for the WikiProject whose banner is at the top of this page. -- SEWilco (talk) 15:57, 19 February 2008 (UTC)Reply
It is an interesting idea, but the purpose is obviously to find locations near one location. You might check if the existing list of map services includes a map of all Wikipedia coordinates. Ah, yes. Click on a coordinate and look at the section "Systems with Wikipedia data". -- SEWilco (talk) 16:04, 19 February 2008 (UTC)Reply
What actually inspired me was that those maps seem to rely on dumps or other delayed information (coordinates added are not immediately available), and I was looking for something quicker. This could be an interesting effect in the news articles, for example. I feel that the categories are more practical and can be easily read with WP:API. As for posting over at the Geo project, I will do just that. Zab (talk) 04:31, 20 February 2008 (UTC)Reply

This has been proposed before (and rejected); see Wikipedia:Categorization of location, and the associated CfD discussion. You may want to check that proposal. -- Eugène van der Pijll (talk) 09:12, 22 February 2008 (UTC)Reply

Fair enough. I will explore other alternatives. Zab (talk) 17:27, 23 February 2008 (UTC)Reply

Possible bug in this template edit

Please examine the coordinates for Naval Air Station Alameda. You will find the page has coordinates (on the top right) that are incorrectly stated. It claims that the N/S component is 122 Degrees. That is incorrect. It is also outputting a space in the link before the first number. Magnus tells me this breaks the lookup tool causing it to use 0N, 0W. Will (Talk - contribs) 19:25, 2 April 2008 (UTC)Reply

Hover text edit

{{editprotected}} I'm not sure where to put my concern. When I put my cursor over the globe in this, the first s of the "show location on an interactive map" needs to be capitalized. Thanks! SpencerT♦C 18:54, 19 April 2008 (UTC)Reply

I've looked for ten minutes, but I honestly can't find where this is defined. Anyone more familiar with the system konw where to find it? It does definitely need to be fixed. Happymelon 14:07, 21 April 2008 (UTC)Reply
The source code for that is meta:MediaWiki:Wikiminiatlas.js. You can tell that the tooltip is being set by javascript by noting that the text of it doesn't appear in the HTML source code of the page. Then it's just a matter of figuring out which javascript it is.
I don't think the lowercase letter is really a big deal - it's relatively normal not to capitalize tooltips. But if you'd like it changed, you'll have to ask on meta, since it will take a meta admin to edit that page. — Carl (CBM · talk) 18:37, 21 April 2008 (UTC)Reply