Cannabis Ruderalis

Content deleted Content added
Line 58: Line 58:
Any objections if I apply [//en.wikipedia.org/w/index.php?title=Template:Coord/sandbox&diff=601271807&oldid=582620630 this edit]? It's needed because [[Template:Mars Quads - By Name]] uses {{tl|coord}} on pages where it's transcluded, filling the database with bogus points. [[User:MaxSem|Max Semenik]] ([[User talk:MaxSem|talk]]) 23:45, 25 March 2014 (UTC)
Any objections if I apply [//en.wikipedia.org/w/index.php?title=Template:Coord/sandbox&diff=601271807&oldid=582620630 this edit]? It's needed because [[Template:Mars Quads - By Name]] uses {{tl|coord}} on pages where it's transcluded, filling the database with bogus points. [[User:MaxSem|Max Semenik]] ([[User talk:MaxSem|talk]]) 23:45, 25 March 2014 (UTC)
:{{done}} since no objections were voiced. [[User:MaxSem|Max Semenik]] ([[User talk:MaxSem|talk]]) 09:15, 2 April 2014 (UTC)
:{{done}} since no objections were voiced. [[User:MaxSem|Max Semenik]] ([[User talk:MaxSem|talk]]) 09:15, 2 April 2014 (UTC)

== Proposal to change this template ==

{{ping|MaxSem|Dragons flight|Mr. Stradivarius|WOSlinker}} not sure why it's not being discussed here, but see [[Wikipedia:TFD#Template:Lunar_coords_and_quad_cat|this discussion]] (pinging recent contributors to this template). [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 16:06, 11 May 2014 (UTC)

Revision as of 16:06, 11 May 2014

wmflabs extremely slow

Since Template:Coord was changed to use https://tools.wmflabs.org/geohack/geohack.php instead of Toolserver, and now it would appear to be extremely slow, probably as a result (ie. 1—2 minutes to return a result). —Sladen (talk) 15:27, 28 October 2013 (UTC)[reply]

Wikidata tracking

Please apply this change. If a template is used in the title and it's an article, this template will either add Category:Coordinates on Wikidata or Category:Coordinates not on Wikidata. More information about this at d:Wikidata:Coordinates tracking. This is already live on the Dutch Wikipedia. You can see more examples of Wikidata tracking in Category:Wikidata tracking categories. Multichill (talk) 13:52, 20 November 2013 (UTC)[reply]

My first thought is that this should probably go in Module:Coordinates rather than in Template:Coord. We want to avoid having half the template in Lua and half not. In fact, I would go further and say that the existing {{#coordinates}} parser function should also be moved inside the module, as that would allow easier parameter processing. Multichill, do you know any Lua? If not, I can maybe take a look at it some time this week. — Mr. Stradivarius ♪ talk ♪ 14:07, 20 November 2013 (UTC)[reply]
I'm pretty sure #coordinates is not in lua because Lua error handling is not very good. So please be careful with that.
I'm not very good with lua. Please apply it here and later on you can always move it to lua. That gives you the time to figure out how to properly implement it in lua and I don't have to wait for the functionality. Multichill (talk) 14:27, 20 November 2013 (UTC)[reply]
Ah yes, I seem to remember reading something about #coordinates not playing nicely with Lua, now that you come to mention it. Probably best not to mess around with that. :) I've added the category code to Module:Coordinates/sandbox, and you can test it with {{coord/sandbox}}. I tested it at York Minster and Book, and it seems to be working correctly. I'm a relative Wikidata noob though, so I have a question: is it possible for the P625 property to exist, but for there to be no actual coordinate data there? The current script checks for the P625 property, but it doesn't check any of the individual data fields inside it. — Mr. Stradivarius ♪ talk ♪ 03:16, 21 November 2013 (UTC)[reply]
Yes, I tested on Grote Kerk, Haarlem and it seems to work as expected. Thanks for luafying this.
A claim can be set to "no value" and "unknown value". You could test for that and set the category to Category:Coordinates on Wikidata set to no value and Category:Coordinates on Wikidata set to unknown value. Multichill (talk) 09:38, 21 November 2013 (UTC)[reply]
Can you give me an example of a claim which is set to "no value" and a claim which is set to "unknown value"? It can be any property; it doesn't have to be P625. If I can see how it behaves in Lua I should be able to code it up without any problems, but I'm not sure how to go about looking for an example. — Mr. Stradivarius ♪ talk ♪ 13:26, 21 November 2013 (UTC)[reply]
Let's enable it without this feature, you can always add it later and than do it for multiple places where properties are used.
You can find examples in the history of d:Q1545193 or at d:Q4252870. Multichill (talk) 14:44, 21 November 2013 (UTC)[reply]
Ok, it is Done, complete with support for "no value" and "unknown value". Sorry to keep you waiting. At the moment the module checks for snak types of "value" (coords exist), "somevalue" (unknown value) and "novalue". If property 625 exists but the snak type is something other than these three, the page will not be categorised. If you become aware of any other snak types that need categorising, let me know. Best — Mr. Stradivarius ♪ talk ♪ 03:39, 22 November 2013 (UTC)[reply]
Excellent! Thank you very much for your help Mr. Stradivarius. Multichill (talk) 20:11, 24 November 2013 (UTC)[reply]

Input DMS but only display DM

For readability I only want to display degrees and minutes. Nevertheless if I leave out seconds, map markers are poorly aligned with features. How about adding an option to get the best of both worlds?LADave (talk) 02:49, 19 December 2013 (UTC)[reply]

How about if you use degrees and decimal minutes, like {{coord|37|32.76|N|117|21.88|W}}, producing 37°32.76′N 117°21.88′W / 37.54600°N 117.36467°W / 37.54600; -117.36467? —hike395 (talk) 03:10, 19 December 2013 (UTC)[reply]
The example falls in the middle of some empty real estate so let's move a little. Let's say we have an article about the airport in Lee Vining. In text 37°57′N 119°06′W / 37.950°N 119.100°W / 37.950; -119.100 already seems like an eyeful to read, but when you bring up the map it puts the pointer somewhere out in the sagebrush. Adding seconds 37°57′29″N 119°06′23″W / 37.95806°N 119.10639°W / 37.95806; -119.10639 or decimal minutes 37°57.49′N 119°06.38′W / 37.95817°N 119.10633°W / 37.95817; -119.10633 clobbers readability but when you bring up the map it's a big improvement. A half degree of imprecision is almost a kilometer of map slop and that is often excessive. This is why I often want to map to more precision than I show in the text. LADave (talk) 08:10, 19 December 2013 (UTC)[reply]
So why not use pure decimal degrees?: they are the most concise, easiest to understand the precision, and easiest to transfer to devices or other services. 37°57′29″N 119°06′22″W / 37.958°N 119.106°W / 37.958; -119.106EncMstr (talk) 08:20, 19 December 2013 (UTC)[reply]
Especially if you think metrically. A degree is ~100km and .01 degree is ~1km etc. However if you think in traditional units, a minute is a (nautical) mile and a second is a hundred feet. LADave (talk) 22:05, 19 December 2013 (UTC)[reply]
Please do not try to hide data "for readability", nor for any other reason. (OTOH, beware of false precision.) Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 12:13, 19 December 2013 (UTC)[reply]
...so the tail of consistency wags the dog of wanting more precision in maps than in the text? LADave (talk) 22:05, 19 December 2013 (UTC)[reply]

Marking articles as "No coords" deliberately?

What's our practice for an article that deliberately has no coords, as they're unimportant and irrelevant?

Presumably as the article has correct ancestor categories that imply a geographical location, it gets tagged with {{coord missing}}. Removing this is likely to simply trigger another 'bot to put it back. There should be no coords on this article and we should have a means to label the article as such. {{coords irrelevant}} or such.

The article in question is Tower Belle. It's a mobile tourist boat in Bristol. It's not permanently moored, so coords aren't static, but it's part of "tourism in Bristol" so 'bots tend to assume an implied geographical location. Andy Dingley (talk) 15:02, 12 March 2014 (UTC)[reply]

Change request

Any objections if I apply this edit? It's needed because Template:Mars Quads - By Name uses {{coord}} on pages where it's transcluded, filling the database with bogus points. Max Semenik (talk) 23:45, 25 March 2014 (UTC)[reply]

 Done since no objections were voiced. Max Semenik (talk) 09:15, 2 April 2014 (UTC)[reply]

Proposal to change this template

@MaxSem, Dragons flight, Mr. Stradivarius, and WOSlinker: not sure why it's not being discussed here, but see this discussion (pinging recent contributors to this template). Frietjes (talk) 16:06, 11 May 2014 (UTC)[reply]

Leave a Reply