This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | ← | Archive 4 | Archive 5 | Archive 6 | Archive 7 | Archive 8 | → | Archive 10 |
Following a lenghty discussion on
WT:GEO, it appears that one of the features from other templates that could improve others, was the introduction of named parameters for parameters such as type, region, scale.
This would result in using "type=landmark|region=GB|scale=5000" instead of "type:landmark_region:GB_scale:5000".
Using pipes (|) instead of underscores (_) has also the advantage of being closer to the way people use parameters in wikipedia. Probably already now, {{ coord}} is frequently used this way. If we want to identify the pages, adding this sample code to {{ coord}} would categorize all these pages into a maintenance category Category:coord template needing repair.
All articles that would end up in the category currently need repair as information on region/type/scale is present in the article, but not passed on to geohack. Check, e.g. this version of Carreño.
If we decide to use named parameters, the named parameters can be used within the template to check input. {{ coord}} would need to be modified slightly to pass them on to geohack (see fix). -- User:Docu
Similar to checks in {{ coor at dms}} and {{ coordinate}}, I'd like to add checks to verify if the there aren't any excessive number of input fields. Sample:
{{coord|12|N|12|W|region:XY_type:landmark}}
{{coord|12|N|12|W|region:XY|type:landmark}}
which renders as {{coord|12|N|12|W|region:XY|type:landmark}}The subpage includes additions to make to each template. Any article with an excessive number of input fields would be categorized in Category:coord template needing repair. -- User:Docu
Sometimes input is made in the degree/minutes/seconds format instead of decimal format, e.g. {{coord|12|67|85}} instead of {{coord|12.6785}}
To be able to identify and fix these uses of {{ coord}}, I'd suggest to make an addition similar to the ones used on {{ coor at dms}} or {{ coordinate}}. ( sample fix}}
This would categorize all articles with minutes/seconds equal to or exceeding 60 seconds in Category:coord template needing repair. -- User:Docu
(separated from previous section with new header by Docu).
According to Template:Coord/doc, {{ coord}} is to be used only for Earth. Thus we could add the above limits for degrees latitude and longitude. Most coor d/dm/dms templates already check for latitude >90°.
Code would be similar as the one for minutes/seconds. I will adapt it and add it here. Articles would also be categorized in Category:Coord template needing repair. -- User:Docu
There is an issue with broadcast stations in North America: both the FCC (U.S.) and CRTC (Canada) still use NAD27. Displaying these as NAD83/ WGS84 causes errors in pinpointing the position of many stations. This is obvious when looking at aerial images of the antenna site, and the marker doesn't even touch the building or tower. It would be nice to have a parameter like "datum=NAD27" to indicate that a conversion should be done. – radiojon ( talk) 22:12, 26 September 2008 (UTC)
Apparently square brackets in names break the display, e.g at Cities_of_the_Ancient_Near_East. Either we remove square brackets from the names or we try to find some fix for {{ coord}}. Apparently the same with {{ coor d}} works. -- User:Docu
<span class="plainlinksneverexpand">[http://stable... T[es]t</span>)</span></span></span>]</span>
<span class="plainlinksneverexpand"><a href="http://stable... T[es</a>t</span>)</span></span></span>]</span>
Is there away to display N/S and E/W for coordinates with input in decimal format, e.g.
whereas
-- User:Docu
Some infoboxes, such as 'infobox shopping mall' have an entry for coordinates. It works fine, but there is a slight issue that I'm not certain is easily fixable (see Lakehurst Mall as an example.) If I try using display=inline,title in the coord template, it does work, but the text on the title line is smaller than normal, as it looks like it's using the infobox's font size. Is this something that can be fixed? Would somebody need to edit the coord template to force a fixed font size for title? Or would the infobox template need to be updated? I'd rather not use a separate standalone coord template, as that could lead to conflicts if they get changed for some reason, and somebody doesn't update both. Andyross ( talk) 22:21, 15 October 2008 (UTC)
This template is very sensitive to spaces if any left between pipe symbol and text. Whenever such a space is left, it displays error without specifying what caused the error. I think code should be modified to automatically remove space or to be made insensitive to space. Meanwhile this is fixed, code should display error message saying one of the error could be space between pipe and text. —Preceding unsigned comment added by Pruthvi.vallabh ( talk • contribs)
{{coord|1|2|3|N|4|5|6|W |format=dms |region:AB_type:landmark_scale:1000000_source:internet |name=UndisambiguatedName |display=title,inline}}
{{coord|1|2|3|N|4|5|6|W|format=dms|region:AB_type:landmark_scale:1000000_source:internet|name=UndisambiguatedName|display=title,inline}}
.{{coord|1|2|3|N|4|5|6|W| format=dms |region:AB_type:landmark_scale:1000000_source:internet |name=UndisambiguatedName |display=title,inline}}
tt
tags to code
, as that's more meaningful.
Andy Mabbett (User:Pigsonthewing);
Andy's talk;
Andy's edits 07:24, 20 October 2008 (UTC)Please, add de-interwiki: de:Vorlage:Koordinate Artikel. Ludmiła Pilecka ( talk) 16:18, 18 October 2008 (UTC)
How is this template able to float over the top line? thank you. Odessaukrain ( talk) 14:11, 20 October 2008 (UTC)
The geo classes currently have their documentation placed as a large comment inside MediaWiki:Common.css. I am planning to move that documentation to the /doc page of Template:Coord/link, since that is the place the comment currently points to for more information.
For more explanation about this, and to discuss it, see MediaWiki talk:Common.css#Geo class documentation.
-- David Göthberg ( talk) 23:10, 3 November 2008 (UTC)
Would it be possible to amend {{ coord}} such that it could carry an inline reference? See a discussion at Wikipedia talk:WikiProject_Geographical coordinates#Citing verifable sources. Please give it your consideration. thanks -- Tagishsimon (talk) 00:30, 5 November 2008 (UTC)
Hi. Please add the norwegian link: [[no:Mal:Koordinater]]
to this protected page.
Prillen (
talk) 10:22, 10 November 2008 (UTC)
An apparently undocumented feature of this template is that, if the name parameter is set, an hCard microformat is emitted. This causes problems in several ways:
I propose that this be resolved by removing the mark-up <span class="vcard">
and <span class="fn org">
from the child-template {{
Coord/link}}; along with their two paired closing tags. These classes are used only by the microformat; and are not styled in any Wikipedia skin. The name parameter would remain, still hidden, for use by other services.
Andy Mabbett (User:Pigsonthewing);
Andy's talk;
Andy's edits 18:51, 18 September 2008 (UTC)
This section was originally titled Formatting problems - Wbm1058 ( talk) 15:43, 17 February 2013 (UTC)
I see this has been noted above, but has been unanswered so far.
If you use a decimal number for the coordinates then the "N", "S", "E" and "W" signs are ignored and the degree symbol is not displayed. Thus, {{coord|43.12|N|79.34|W}}
displays as
43°07′N 79°20′W / 43.12°N 79.34°W. Is this intentional? I want and expect it to display as
43°07′N 79°20′W / 43.12°N 79.34°W like the old template did, and I'm guessing that most other people would think likewise...
TIA, 86.134.43.109 ( talk) 19:53, 12 November 2008 (UTC).
I too would like to see a way to label the decimal output format with the degree symbol and N/S/E/W. While there is something mathematically pure with two simple signed numbers to pin-point any location on earth, I think most encyclopedia readers would be more comfortable with the less-efficient but more-human-friendly labeled format. I've been avoiding using the decimal format for this very reason. And in addition to the precision loss problem demonstrated above, mismatched precisions between the coordinates looks bad as a matter of style. -- GregU ( talk) 03:29, 30 December 2008 (UTC)
I too would like to see a way to label the decimal output format with the degree symbol and N/S/E/W. Cush ( talk) 17:39, 30 December 2008 (UTC)
It would indeed make sense to make the decimal coordinates look like coordinates as well. Many users have also requested it before, at least at Template talk:Coord/Archive 1#Display issues, Template talk:Coord/Archive 1#Bug: display N.2FW.2FE.2FS, Template talk:Coord/Archive 9#N.2FS and E.2FW display for decimals and Wikipedia talk:WikiProject Geographical coordinates#COORD Template and digital N.2FS.2FE.2FW output. I have created Template:Coord/doc/internals to start documenting this template, and it seems that there are two possible ways to do this change:
-- Para ( talk) 20:17, 30 December 2008 (UTC)
Wikitext | Current output | Expected | Superseded by next proposal |
Proposed coord/input/d & coord/link |
---|---|---|---|---|
{{coord|1|2}} | 1°N 2°E / 1°N 2°E | 1°N 2°E | {{User:Para/Coordlink|dms-lat=1°N|dms-long=2°E|dec-lat=1|dec-long=2|default=dec}}
|
{{User:Para/Coord/input/dec|1|2}}
|
{{coord|1|-2}} | 1°N 2°W / 1°N 2°W | 1°N 2°W | {{User:Para/Coordlink|dms-lat=1°N|dms-long=2°W|dec-lat=1|dec-long=-2|default=dec}}
|
{{User:Para/Coord/input/dec|1|-2}}
|
{{coord|1|N|2|E}} | 1°N 2°E / 1°N 2°E | 1°N 2°E | {{User:Para/Coordlink|dms-lat=1°N|dms-long=2°E|dec-lat=1|dec-long=2|default=dec}}
|
{{User:Para/Coord/input/d|1|N|2|E}}
|
{{coord|1|N|2|W}} | 1°N 2°W / 1°N 2°W | 1°N 2°W | {{User:Para/Coordlink|dms-lat=1°N|dms-long=2°W|dec-lat=1|dec-long=-2|default=dec}}
|
{{User:Para/Coord/input/d|1|N|2|W}}
|
{{coord|1.10|2.00}} | 1°06′N 2°00′E / 1.10°N 2.00°E | 1.10°N 2.00°E | {{User:Para/Coordlink|dms-lat=1°06′N|dms-long=2°00′W|dec-lat=1.10|dec-long=2.00|default=dec}}
|
{{User:Para/Coord/input/dec|1.10|2.00}}
|
{{coord|1.10|-2.00}} | 1°06′N 2°00′W / 1.10°N 2.00°W | 1.10°N 2.00°W | {{User:Para/Coordlink|dms-lat=1°06′N|dms-long=2°00′W|dec-lat=1.10|dec-long=-2.00|default=dec}}
|
{{User:Para/Coord/input/dec|1.10|-2.00}}
|
{{coord|1.10|N|2.00|E}} | 1°06′N 2°00′E / 1.10°N 2.00°E | 1.10°N 2.00°E | {{User:Para/Coordlink|dms-lat=1°06′N|dms-long=2°00′E|dec-lat=1.10|dec-long=2.00|default=dec}}
|
{{User:Para/Coord/input/d|1.10|N|2.00|E}}
|
{{coord|1.10|N|2.00|W}} | 1°06′N 2°00′W / 1.10°N 2.00°W | 1.10°N 2.00°W | {{User:Para/Coordlink|dms-lat=1°06′N|dms-long=2°00′W|dec-lat=1.10|dec-long=-2.00|default=dec}}
|
{{User:Para/Coord/input/d|1.10|N|2.00|W}}
|
{{coord|1|2|3|N|4|5|6|W}} | 1°2′3″N 4°5′6″W / 1.03417°N 4.08500°W | Current DMS just for comparison, no changes proposed there. |
<span class="geo-default"> <span class="geo-dec" title="Maps, aerial photos, and other data for 1.10 2.00">1.10°N 2.00°W</span> <span style="display:none"> / <span class="geo">1.10; 2.00</span></span> </span>
<span class="geo-default"> <span class="geo-dec geo" title="Maps, aerial photos, and other data for 1.1 -2"> <span class="latitude">1.1</span>, <span class="longitude">-2</span> </span> </span>
{{User:Para/Coord/input/dec|0.0000|23.4567}}
shows {{User:Para/Coord/input/dec|0.0000|23.4567}}
{{User:Para/Coord/input/d|0.0000|N|34.5678|E}}
: {{User:Para/Coord/input/d|0.0000|N|34.5678|E}}
{{ editprotected}}
This page is the discussion page for all the protected subtemplates of this template. Please update from the following table the ends of the templates. The beginning and end of the code matches a recognisable position in the templates. The modifications need to be copied from the wikitext and not the HTML, as they contain HTML entities.
Template | Code |
---|---|
Template:Coord/link |
data for {{{dec-lat}}} {{{dec-long}}}">{{{dec-lat-display|{{#ifexpr:{{{dec-lat}}}<0|{{Coord/negzeropad|{{{dec-lat}}}|{{#expr:abs{{{dec-lat}}}}}}}°S|{{{dec-lat}}}°N}}}}} {{{dec-long-display|{{#ifexpr:{{{dec-long}}}<0|{{Coord/negzeropad|{{{dec-long}}}|{{#expr:abs{{{dec-long}}}}}}}°W|{{{dec-long}}}°E}}}}}</span><span style="display:none"> / <span class="geo">{{{dec-lat}}}; {{{dec-long}}}</span></span>{{#if:{{{name|}}}|<span style="display:none"> (<span class="fn org">{{{name|}}}</span>)</span></span>|}}]</span><noinclude>
|
Template:Coord/input/d |
|dec-lat={{#ifeq:{{{2}}}|W|-}}{{{1}}}|dec-long={{#ifeq:{{{4}}}|S|-}}{{{3}}}|dec-lat-display={{{1}}}°{{{2}}}|dec-long-display={{{3}}}°{{{4}}}|param={{{1}}}_{{{2}}}_{{{3}}}_{{{4}}}_{{{5|}}}|default={{#if:{{{format|}}}|{{{format}}}|{{#ifeq:{{coord/prec dec|{{{1}}}|{{{3}}}}}|d|dms|dec}}}}|name={{{name|}}}}}</includeonly>
|
Template:Coord/negzeropad | Protect |
Thanks. -- Para ( talk) 16:42, 5 January 2009 (UTC)
I've disabled the editprotected request for now as there is no consensus for its fulfillment. {{ Nihiltres| talk| log}} 20:47, 6 January 2009 (UTC)
{{
edit protected}}
template. --
El
on
ka 19:41, 11 January 2009 (UTC)
← Your insinuation that I have been canvassing is unacceptable; and your edit summary sugegsts that you see obtaining consensus as a "waste of time". Wikipedia policy, and admins who have commented here, see things differently. Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 14:04, 17 January 2009 (UTC)
I will ask on related fora if other people have opinions on this, and point them here. See beginning of thread for an overview of the issue, and please comment if you have an opinion on this. No need to remain and engage unless you wish to, we are mainly looking for wider input. Thanks. -- GregU ( talk) 17:24, 17 January 2009 (UTC)
we seek wider opinions on whether {{ coord}} should offer a N/S/E/W labeled format for decimal coordinates (example: 43.12° N 79.34° W) either as an option or by default, or if the existing unlabeled format (example:
{{Coord/display/inline|1={{Coord/input/{{#ifeq:W||dec|{{#if:{{#switch:W{{{8}}}|NE|NW|SE|SW=y}}|dms|{{#if:{{#switch:79.34{{{6}}}|NE|NW|SE|SW=y}}|dm|{{#if:{{#switch:NW|NE|NW|SE|SW=y}}|d|ERROR}}}}}}}}|1=43.12|2=N|3=79.34|4=W|5=|6=|7=|8=|9=|format=|name=}}}}<!-- -->{{#ifeq:XYZ|XYZ||[[Category:Coord template needing repair|R{{PAGENAME}}]]}}<!-- -->{{#ifeq:XYZ|XYZ||[[Category:Coord template needing repair|T{{PAGENAME}}]]}}<!-- -->{{#ifeq:XYZ|XYZ||[[Category:Coord template needing repair|S{{PAGENAME}}]]}}<!-- -->)is sufficient.
← The objection is not to the use of labels per se, but to the deliberate removal of a "pure decimal" option, an act for which there is clearly no consensus. Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 21:03, 25 January 2009 (UTC)
{{ editprotected}}
Despite the ongoing discussion, Docu ( talk · contribs), has made the disputed changes (+ [9]; ) (twice refused by other admins) and marked the discussions as closed (now reopened). Templates are now emitting broken Geo microformats and so the change needs to be urgently reverted, at least until this is fixed, if not to allow proper consensus to be reached. Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 20:48, 25 January 2009 (UTC)
<span class="geo-dec geo" title="Maps, aerial photos, and other data for 52.548 1.932">52.548°N 1.932°W</span>
. That is an invalid geo microformat. Your breaking of the template aside, and as previously explained, there is no consensus to remove the "pure decimal" option.
Andy Mabbett (User:Pigsonthewing);
Andy's talk;
Andy's edits 22:06, 25 January 2009 (UTC)<span class="geo"></span>
. The duplicate class should be removed of course, but there's no hurry doing it. --
Para (
talk) 23:25, 25 January 2009 (UTC)I saw the notice about this template on WP:AN. As an outsider, I'm not familiar with this template or what it's supposed to produce. All I see are bald assertions of "It's broken!" "No it isn't!". Could someone provide the following information:
Thanks. -- Carnildo ( talk) 03:03, 27 January 2009 (UTC)
Thanks. -- Carnildo ( talk) 03:03, 27 January 2009 (UTC)
Here you go:
Test cases, current, first row:
<span class="plainlinksneverexpand"><a href="http://stable.toolserver.org/geohack/geohack.php?pagename=Template_talk:Coord¶ms=1_N_2_E_" class="external text" title="http://stable.toolserver.org/geohack/geohack.php?pagename=Template_talk:Coord¶ms=1_N_2_E_" ><span class="geo-nondefault"><span class="geo-dms" title="Maps, aerial photos, and other data for 1°N 2°E"><span class="latitude">1°N</span> <span class="longitude">2°E</span></span></span><span class="geo-multi-punct"> / </span><span class="geo-default"><span class="geo-dec geo" title="Maps, aerial photos, and other data for 1 2">1°N 2°E</span><span style="display:none"> / <span class="geo">1; 2</span></span></span></a></span>
Test cases, proposed, first row:
<span class="plainlinksneverexpand"><a href="http://stable.toolserver.org/geohack/geohack.php?pagename=Template_talk:Coord¶ms=1_N_2_E_" class="external text" title="http://stable.toolserver.org/geohack/geohack.php?pagename=Template_talk:Coord¶ms=1_N_2_E_" ><span class="geo-nondefault"><span class="geo-dms" title="Maps, aerial photos, and other data for 1°N 2°E"><span class="latitude">1°N</span> <span class="longitude">2°E</span></span></span><span class="geo-multi-punct"> / </span><span class="geo-default"><span class="geo-dec" title="Maps, aerial photos, and other data for 1 2">1°N 2°E</span><span style="display:none"> / <span class="geo">1; 2</span></span></span></a></span>
The xfeffs in the diff were a workaround to a MediaWiki parser problem, but I can't find off hand when the issue actually occurs. -- Para ( talk) 12:47, 28 January 2009 (UTC)
There is another way in which template {{ coor}} is not broken like this one is. Compare:
What's with the improper loss of precision in the display? Why in the world is there any discussion whatsoever about "updating" other templates to this broken one? Gene Nygaard ( talk) 02:42, 10 December 2008 (UTC)
{{#expr:-1*-1.0}}
, {{#expr:abs(-1.0)}}
and {{#expr:-1.0+2.0}}
as 1, 1 and 1, I'm not sure it's possible to fix this for all the cases. --
Para (
talk) 01:45, 2 January 2009 (UTC){{rnd|49|{{precision|49.00}}}}
renders 49.00, "rounding" the number to the original or derived precision. It could probably be used at some of the early processing stages of the template, where it sometimes already uses the precision function. Similarly, {{rnd|-1.1|{{precision|1.10}}}}
= −1.10 and might solve the formatting problem in the section above, but the
unicode minus from the
rnd template breaks things, and would need to be modified or copied over here for a special version. Using these hacks could also be too much with the parsefunction limits on some coord heavy list pages. --
Para (
talk) 12:05, 2 January 2009 (UTC){{
User:Para/negzeropad|-1.10|1.1}}
renders as {{User:Para/negzeropad|-1.10|1.1}}
Can the size of the globe be adjustable? On some articles it is simply too large. It can keep it's current size as the default value. -- Cat chi? 22:51, 14 December 2008 (UTC)
Globe | 12°24′46″N |
47°55′28″E |
Actually it would be nice if I could add a newline char between the NS data and EW data. So that it displays like on the right. -- Cat chi? 22:58, 14 December 2008 (UTC)
Finding a longitude reported as "-104.6" in Pueblo Community College, I changed it to a correct minus sign (per WP:MOSMATH) so that it said "−104.6". But then when I clicked on it, it showed the wrong location on the map. Clearly that needs to get fixed. Michael Hardy ( talk) 01:43, 19 December 2008 (UTC)
−
"? That's not a bug as very few editors would expect to put anything other than a "-" to get west coordinates. Also WP:MOSMATH and
Wikipedia:Manual of Style (dates and numbers)#Common mathematical symbols is about writing math articles not using math symbols in actual calculations like this and {{
convert}}.
CambridgeBayWeather
Have a gorilla 02:53, 19 December 2008 (UTC)Will someone please fix Template:Coord/doc so that the table of contents isn't plastered all over the top of the documentation text (there and when transcluded on the template page). I'd suggest just the no table of contents command (don't remember what it is for sure, probably NOTOC bracketed by two underscores at each end or something along those lines). Gene Nygaard ( talk) 13:19, 5 January 2009 (UTC)
The above article ends up in the Category:ParserFunction errors, possibly due to a problem with this template. The link from the coordinates to the toolserver includes "%E2%80%8E" in its URL. The coordinates as such seem to work.
The problem is possibly the same as the one mentioned at User_talk:Dispenser#Coordinates log (Warning: UTF8params). -- User:Docu
Thank you for fixing it. The following may have the same problem:
They are all in the parser function error category and showed up with UTF warnings in the coord-enwiki log. -- User:Docu
%E2 %80 %8E 11100010 10000000 10001110 aaaa aaaabb bbbbbb a = 00100000 = 0x20 b = 00001110 = 0x0E ab = 0x200E
s/[^\dNSEW._-]//g
before the first colon (if any) should get rid of them. --
Para (
talk) 15:36, 25 January 2009 (UTC)Thanks for your reply. My bot fixed some of them even if I haven't found the ideal python regex yet. -- User:Docu
The following python regex got rid of most of them:
(u"(\u200E|\uFEFF|\u200B)", r""),
Thanks for your help. -- User:Docu
This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | ← | Archive 4 | Archive 5 | Archive 6 | Archive 7 | Archive 8 | → | Archive 10 |
Following a lenghty discussion on
WT:GEO, it appears that one of the features from other templates that could improve others, was the introduction of named parameters for parameters such as type, region, scale.
This would result in using "type=landmark|region=GB|scale=5000" instead of "type:landmark_region:GB_scale:5000".
Using pipes (|) instead of underscores (_) has also the advantage of being closer to the way people use parameters in wikipedia. Probably already now, {{ coord}} is frequently used this way. If we want to identify the pages, adding this sample code to {{ coord}} would categorize all these pages into a maintenance category Category:coord template needing repair.
All articles that would end up in the category currently need repair as information on region/type/scale is present in the article, but not passed on to geohack. Check, e.g. this version of Carreño.
If we decide to use named parameters, the named parameters can be used within the template to check input. {{ coord}} would need to be modified slightly to pass them on to geohack (see fix). -- User:Docu
Similar to checks in {{ coor at dms}} and {{ coordinate}}, I'd like to add checks to verify if the there aren't any excessive number of input fields. Sample:
{{coord|12|N|12|W|region:XY_type:landmark}}
{{coord|12|N|12|W|region:XY|type:landmark}}
which renders as {{coord|12|N|12|W|region:XY|type:landmark}}The subpage includes additions to make to each template. Any article with an excessive number of input fields would be categorized in Category:coord template needing repair. -- User:Docu
Sometimes input is made in the degree/minutes/seconds format instead of decimal format, e.g. {{coord|12|67|85}} instead of {{coord|12.6785}}
To be able to identify and fix these uses of {{ coord}}, I'd suggest to make an addition similar to the ones used on {{ coor at dms}} or {{ coordinate}}. ( sample fix}}
This would categorize all articles with minutes/seconds equal to or exceeding 60 seconds in Category:coord template needing repair. -- User:Docu
(separated from previous section with new header by Docu).
According to Template:Coord/doc, {{ coord}} is to be used only for Earth. Thus we could add the above limits for degrees latitude and longitude. Most coor d/dm/dms templates already check for latitude >90°.
Code would be similar as the one for minutes/seconds. I will adapt it and add it here. Articles would also be categorized in Category:Coord template needing repair. -- User:Docu
There is an issue with broadcast stations in North America: both the FCC (U.S.) and CRTC (Canada) still use NAD27. Displaying these as NAD83/ WGS84 causes errors in pinpointing the position of many stations. This is obvious when looking at aerial images of the antenna site, and the marker doesn't even touch the building or tower. It would be nice to have a parameter like "datum=NAD27" to indicate that a conversion should be done. – radiojon ( talk) 22:12, 26 September 2008 (UTC)
Apparently square brackets in names break the display, e.g at Cities_of_the_Ancient_Near_East. Either we remove square brackets from the names or we try to find some fix for {{ coord}}. Apparently the same with {{ coor d}} works. -- User:Docu
<span class="plainlinksneverexpand">[http://stable... T[es]t</span>)</span></span></span>]</span>
<span class="plainlinksneverexpand"><a href="http://stable... T[es</a>t</span>)</span></span></span>]</span>
Is there away to display N/S and E/W for coordinates with input in decimal format, e.g.
whereas
-- User:Docu
Some infoboxes, such as 'infobox shopping mall' have an entry for coordinates. It works fine, but there is a slight issue that I'm not certain is easily fixable (see Lakehurst Mall as an example.) If I try using display=inline,title in the coord template, it does work, but the text on the title line is smaller than normal, as it looks like it's using the infobox's font size. Is this something that can be fixed? Would somebody need to edit the coord template to force a fixed font size for title? Or would the infobox template need to be updated? I'd rather not use a separate standalone coord template, as that could lead to conflicts if they get changed for some reason, and somebody doesn't update both. Andyross ( talk) 22:21, 15 October 2008 (UTC)
This template is very sensitive to spaces if any left between pipe symbol and text. Whenever such a space is left, it displays error without specifying what caused the error. I think code should be modified to automatically remove space or to be made insensitive to space. Meanwhile this is fixed, code should display error message saying one of the error could be space between pipe and text. —Preceding unsigned comment added by Pruthvi.vallabh ( talk • contribs)
{{coord|1|2|3|N|4|5|6|W |format=dms |region:AB_type:landmark_scale:1000000_source:internet |name=UndisambiguatedName |display=title,inline}}
{{coord|1|2|3|N|4|5|6|W|format=dms|region:AB_type:landmark_scale:1000000_source:internet|name=UndisambiguatedName|display=title,inline}}
.{{coord|1|2|3|N|4|5|6|W| format=dms |region:AB_type:landmark_scale:1000000_source:internet |name=UndisambiguatedName |display=title,inline}}
tt
tags to code
, as that's more meaningful.
Andy Mabbett (User:Pigsonthewing);
Andy's talk;
Andy's edits 07:24, 20 October 2008 (UTC)Please, add de-interwiki: de:Vorlage:Koordinate Artikel. Ludmiła Pilecka ( talk) 16:18, 18 October 2008 (UTC)
How is this template able to float over the top line? thank you. Odessaukrain ( talk) 14:11, 20 October 2008 (UTC)
The geo classes currently have their documentation placed as a large comment inside MediaWiki:Common.css. I am planning to move that documentation to the /doc page of Template:Coord/link, since that is the place the comment currently points to for more information.
For more explanation about this, and to discuss it, see MediaWiki talk:Common.css#Geo class documentation.
-- David Göthberg ( talk) 23:10, 3 November 2008 (UTC)
Would it be possible to amend {{ coord}} such that it could carry an inline reference? See a discussion at Wikipedia talk:WikiProject_Geographical coordinates#Citing verifable sources. Please give it your consideration. thanks -- Tagishsimon (talk) 00:30, 5 November 2008 (UTC)
Hi. Please add the norwegian link: [[no:Mal:Koordinater]]
to this protected page.
Prillen (
talk) 10:22, 10 November 2008 (UTC)
An apparently undocumented feature of this template is that, if the name parameter is set, an hCard microformat is emitted. This causes problems in several ways:
I propose that this be resolved by removing the mark-up <span class="vcard">
and <span class="fn org">
from the child-template {{
Coord/link}}; along with their two paired closing tags. These classes are used only by the microformat; and are not styled in any Wikipedia skin. The name parameter would remain, still hidden, for use by other services.
Andy Mabbett (User:Pigsonthewing);
Andy's talk;
Andy's edits 18:51, 18 September 2008 (UTC)
This section was originally titled Formatting problems - Wbm1058 ( talk) 15:43, 17 February 2013 (UTC)
I see this has been noted above, but has been unanswered so far.
If you use a decimal number for the coordinates then the "N", "S", "E" and "W" signs are ignored and the degree symbol is not displayed. Thus, {{coord|43.12|N|79.34|W}}
displays as
43°07′N 79°20′W / 43.12°N 79.34°W. Is this intentional? I want and expect it to display as
43°07′N 79°20′W / 43.12°N 79.34°W like the old template did, and I'm guessing that most other people would think likewise...
TIA, 86.134.43.109 ( talk) 19:53, 12 November 2008 (UTC).
I too would like to see a way to label the decimal output format with the degree symbol and N/S/E/W. While there is something mathematically pure with two simple signed numbers to pin-point any location on earth, I think most encyclopedia readers would be more comfortable with the less-efficient but more-human-friendly labeled format. I've been avoiding using the decimal format for this very reason. And in addition to the precision loss problem demonstrated above, mismatched precisions between the coordinates looks bad as a matter of style. -- GregU ( talk) 03:29, 30 December 2008 (UTC)
I too would like to see a way to label the decimal output format with the degree symbol and N/S/E/W. Cush ( talk) 17:39, 30 December 2008 (UTC)
It would indeed make sense to make the decimal coordinates look like coordinates as well. Many users have also requested it before, at least at Template talk:Coord/Archive 1#Display issues, Template talk:Coord/Archive 1#Bug: display N.2FW.2FE.2FS, Template talk:Coord/Archive 9#N.2FS and E.2FW display for decimals and Wikipedia talk:WikiProject Geographical coordinates#COORD Template and digital N.2FS.2FE.2FW output. I have created Template:Coord/doc/internals to start documenting this template, and it seems that there are two possible ways to do this change:
-- Para ( talk) 20:17, 30 December 2008 (UTC)
Wikitext | Current output | Expected | Superseded by next proposal |
Proposed coord/input/d & coord/link |
---|---|---|---|---|
{{coord|1|2}} | 1°N 2°E / 1°N 2°E | 1°N 2°E | {{User:Para/Coordlink|dms-lat=1°N|dms-long=2°E|dec-lat=1|dec-long=2|default=dec}}
|
{{User:Para/Coord/input/dec|1|2}}
|
{{coord|1|-2}} | 1°N 2°W / 1°N 2°W | 1°N 2°W | {{User:Para/Coordlink|dms-lat=1°N|dms-long=2°W|dec-lat=1|dec-long=-2|default=dec}}
|
{{User:Para/Coord/input/dec|1|-2}}
|
{{coord|1|N|2|E}} | 1°N 2°E / 1°N 2°E | 1°N 2°E | {{User:Para/Coordlink|dms-lat=1°N|dms-long=2°E|dec-lat=1|dec-long=2|default=dec}}
|
{{User:Para/Coord/input/d|1|N|2|E}}
|
{{coord|1|N|2|W}} | 1°N 2°W / 1°N 2°W | 1°N 2°W | {{User:Para/Coordlink|dms-lat=1°N|dms-long=2°W|dec-lat=1|dec-long=-2|default=dec}}
|
{{User:Para/Coord/input/d|1|N|2|W}}
|
{{coord|1.10|2.00}} | 1°06′N 2°00′E / 1.10°N 2.00°E | 1.10°N 2.00°E | {{User:Para/Coordlink|dms-lat=1°06′N|dms-long=2°00′W|dec-lat=1.10|dec-long=2.00|default=dec}}
|
{{User:Para/Coord/input/dec|1.10|2.00}}
|
{{coord|1.10|-2.00}} | 1°06′N 2°00′W / 1.10°N 2.00°W | 1.10°N 2.00°W | {{User:Para/Coordlink|dms-lat=1°06′N|dms-long=2°00′W|dec-lat=1.10|dec-long=-2.00|default=dec}}
|
{{User:Para/Coord/input/dec|1.10|-2.00}}
|
{{coord|1.10|N|2.00|E}} | 1°06′N 2°00′E / 1.10°N 2.00°E | 1.10°N 2.00°E | {{User:Para/Coordlink|dms-lat=1°06′N|dms-long=2°00′E|dec-lat=1.10|dec-long=2.00|default=dec}}
|
{{User:Para/Coord/input/d|1.10|N|2.00|E}}
|
{{coord|1.10|N|2.00|W}} | 1°06′N 2°00′W / 1.10°N 2.00°W | 1.10°N 2.00°W | {{User:Para/Coordlink|dms-lat=1°06′N|dms-long=2°00′W|dec-lat=1.10|dec-long=-2.00|default=dec}}
|
{{User:Para/Coord/input/d|1.10|N|2.00|W}}
|
{{coord|1|2|3|N|4|5|6|W}} | 1°2′3″N 4°5′6″W / 1.03417°N 4.08500°W | Current DMS just for comparison, no changes proposed there. |
<span class="geo-default"> <span class="geo-dec" title="Maps, aerial photos, and other data for 1.10 2.00">1.10°N 2.00°W</span> <span style="display:none"> / <span class="geo">1.10; 2.00</span></span> </span>
<span class="geo-default"> <span class="geo-dec geo" title="Maps, aerial photos, and other data for 1.1 -2"> <span class="latitude">1.1</span>, <span class="longitude">-2</span> </span> </span>
{{User:Para/Coord/input/dec|0.0000|23.4567}}
shows {{User:Para/Coord/input/dec|0.0000|23.4567}}
{{User:Para/Coord/input/d|0.0000|N|34.5678|E}}
: {{User:Para/Coord/input/d|0.0000|N|34.5678|E}}
{{ editprotected}}
This page is the discussion page for all the protected subtemplates of this template. Please update from the following table the ends of the templates. The beginning and end of the code matches a recognisable position in the templates. The modifications need to be copied from the wikitext and not the HTML, as they contain HTML entities.
Template | Code |
---|---|
Template:Coord/link |
data for {{{dec-lat}}} {{{dec-long}}}">{{{dec-lat-display|{{#ifexpr:{{{dec-lat}}}<0|{{Coord/negzeropad|{{{dec-lat}}}|{{#expr:abs{{{dec-lat}}}}}}}°S|{{{dec-lat}}}°N}}}}} {{{dec-long-display|{{#ifexpr:{{{dec-long}}}<0|{{Coord/negzeropad|{{{dec-long}}}|{{#expr:abs{{{dec-long}}}}}}}°W|{{{dec-long}}}°E}}}}}</span><span style="display:none"> / <span class="geo">{{{dec-lat}}}; {{{dec-long}}}</span></span>{{#if:{{{name|}}}|<span style="display:none"> (<span class="fn org">{{{name|}}}</span>)</span></span>|}}]</span><noinclude>
|
Template:Coord/input/d |
|dec-lat={{#ifeq:{{{2}}}|W|-}}{{{1}}}|dec-long={{#ifeq:{{{4}}}|S|-}}{{{3}}}|dec-lat-display={{{1}}}°{{{2}}}|dec-long-display={{{3}}}°{{{4}}}|param={{{1}}}_{{{2}}}_{{{3}}}_{{{4}}}_{{{5|}}}|default={{#if:{{{format|}}}|{{{format}}}|{{#ifeq:{{coord/prec dec|{{{1}}}|{{{3}}}}}|d|dms|dec}}}}|name={{{name|}}}}}</includeonly>
|
Template:Coord/negzeropad | Protect |
Thanks. -- Para ( talk) 16:42, 5 January 2009 (UTC)
I've disabled the editprotected request for now as there is no consensus for its fulfillment. {{ Nihiltres| talk| log}} 20:47, 6 January 2009 (UTC)
{{
edit protected}}
template. --
El
on
ka 19:41, 11 January 2009 (UTC)
← Your insinuation that I have been canvassing is unacceptable; and your edit summary sugegsts that you see obtaining consensus as a "waste of time". Wikipedia policy, and admins who have commented here, see things differently. Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 14:04, 17 January 2009 (UTC)
I will ask on related fora if other people have opinions on this, and point them here. See beginning of thread for an overview of the issue, and please comment if you have an opinion on this. No need to remain and engage unless you wish to, we are mainly looking for wider input. Thanks. -- GregU ( talk) 17:24, 17 January 2009 (UTC)
we seek wider opinions on whether {{ coord}} should offer a N/S/E/W labeled format for decimal coordinates (example: 43.12° N 79.34° W) either as an option or by default, or if the existing unlabeled format (example:
{{Coord/display/inline|1={{Coord/input/{{#ifeq:W||dec|{{#if:{{#switch:W{{{8}}}|NE|NW|SE|SW=y}}|dms|{{#if:{{#switch:79.34{{{6}}}|NE|NW|SE|SW=y}}|dm|{{#if:{{#switch:NW|NE|NW|SE|SW=y}}|d|ERROR}}}}}}}}|1=43.12|2=N|3=79.34|4=W|5=|6=|7=|8=|9=|format=|name=}}}}<!-- -->{{#ifeq:XYZ|XYZ||[[Category:Coord template needing repair|R{{PAGENAME}}]]}}<!-- -->{{#ifeq:XYZ|XYZ||[[Category:Coord template needing repair|T{{PAGENAME}}]]}}<!-- -->{{#ifeq:XYZ|XYZ||[[Category:Coord template needing repair|S{{PAGENAME}}]]}}<!-- -->)is sufficient.
← The objection is not to the use of labels per se, but to the deliberate removal of a "pure decimal" option, an act for which there is clearly no consensus. Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 21:03, 25 January 2009 (UTC)
{{ editprotected}}
Despite the ongoing discussion, Docu ( talk · contribs), has made the disputed changes (+ [9]; ) (twice refused by other admins) and marked the discussions as closed (now reopened). Templates are now emitting broken Geo microformats and so the change needs to be urgently reverted, at least until this is fixed, if not to allow proper consensus to be reached. Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 20:48, 25 January 2009 (UTC)
<span class="geo-dec geo" title="Maps, aerial photos, and other data for 52.548 1.932">52.548°N 1.932°W</span>
. That is an invalid geo microformat. Your breaking of the template aside, and as previously explained, there is no consensus to remove the "pure decimal" option.
Andy Mabbett (User:Pigsonthewing);
Andy's talk;
Andy's edits 22:06, 25 January 2009 (UTC)<span class="geo"></span>
. The duplicate class should be removed of course, but there's no hurry doing it. --
Para (
talk) 23:25, 25 January 2009 (UTC)I saw the notice about this template on WP:AN. As an outsider, I'm not familiar with this template or what it's supposed to produce. All I see are bald assertions of "It's broken!" "No it isn't!". Could someone provide the following information:
Thanks. -- Carnildo ( talk) 03:03, 27 January 2009 (UTC)
Thanks. -- Carnildo ( talk) 03:03, 27 January 2009 (UTC)
Here you go:
Test cases, current, first row:
<span class="plainlinksneverexpand"><a href="http://stable.toolserver.org/geohack/geohack.php?pagename=Template_talk:Coord¶ms=1_N_2_E_" class="external text" title="http://stable.toolserver.org/geohack/geohack.php?pagename=Template_talk:Coord¶ms=1_N_2_E_" ><span class="geo-nondefault"><span class="geo-dms" title="Maps, aerial photos, and other data for 1°N 2°E"><span class="latitude">1°N</span> <span class="longitude">2°E</span></span></span><span class="geo-multi-punct"> / </span><span class="geo-default"><span class="geo-dec geo" title="Maps, aerial photos, and other data for 1 2">1°N 2°E</span><span style="display:none"> / <span class="geo">1; 2</span></span></span></a></span>
Test cases, proposed, first row:
<span class="plainlinksneverexpand"><a href="http://stable.toolserver.org/geohack/geohack.php?pagename=Template_talk:Coord¶ms=1_N_2_E_" class="external text" title="http://stable.toolserver.org/geohack/geohack.php?pagename=Template_talk:Coord¶ms=1_N_2_E_" ><span class="geo-nondefault"><span class="geo-dms" title="Maps, aerial photos, and other data for 1°N 2°E"><span class="latitude">1°N</span> <span class="longitude">2°E</span></span></span><span class="geo-multi-punct"> / </span><span class="geo-default"><span class="geo-dec" title="Maps, aerial photos, and other data for 1 2">1°N 2°E</span><span style="display:none"> / <span class="geo">1; 2</span></span></span></a></span>
The xfeffs in the diff were a workaround to a MediaWiki parser problem, but I can't find off hand when the issue actually occurs. -- Para ( talk) 12:47, 28 January 2009 (UTC)
There is another way in which template {{ coor}} is not broken like this one is. Compare:
What's with the improper loss of precision in the display? Why in the world is there any discussion whatsoever about "updating" other templates to this broken one? Gene Nygaard ( talk) 02:42, 10 December 2008 (UTC)
{{#expr:-1*-1.0}}
, {{#expr:abs(-1.0)}}
and {{#expr:-1.0+2.0}}
as 1, 1 and 1, I'm not sure it's possible to fix this for all the cases. --
Para (
talk) 01:45, 2 January 2009 (UTC){{rnd|49|{{precision|49.00}}}}
renders 49.00, "rounding" the number to the original or derived precision. It could probably be used at some of the early processing stages of the template, where it sometimes already uses the precision function. Similarly, {{rnd|-1.1|{{precision|1.10}}}}
= −1.10 and might solve the formatting problem in the section above, but the
unicode minus from the
rnd template breaks things, and would need to be modified or copied over here for a special version. Using these hacks could also be too much with the parsefunction limits on some coord heavy list pages. --
Para (
talk) 12:05, 2 January 2009 (UTC){{
User:Para/negzeropad|-1.10|1.1}}
renders as {{User:Para/negzeropad|-1.10|1.1}}
Can the size of the globe be adjustable? On some articles it is simply too large. It can keep it's current size as the default value. -- Cat chi? 22:51, 14 December 2008 (UTC)
Globe | 12°24′46″N |
47°55′28″E |
Actually it would be nice if I could add a newline char between the NS data and EW data. So that it displays like on the right. -- Cat chi? 22:58, 14 December 2008 (UTC)
Finding a longitude reported as "-104.6" in Pueblo Community College, I changed it to a correct minus sign (per WP:MOSMATH) so that it said "−104.6". But then when I clicked on it, it showed the wrong location on the map. Clearly that needs to get fixed. Michael Hardy ( talk) 01:43, 19 December 2008 (UTC)
−
"? That's not a bug as very few editors would expect to put anything other than a "-" to get west coordinates. Also WP:MOSMATH and
Wikipedia:Manual of Style (dates and numbers)#Common mathematical symbols is about writing math articles not using math symbols in actual calculations like this and {{
convert}}.
CambridgeBayWeather
Have a gorilla 02:53, 19 December 2008 (UTC)Will someone please fix Template:Coord/doc so that the table of contents isn't plastered all over the top of the documentation text (there and when transcluded on the template page). I'd suggest just the no table of contents command (don't remember what it is for sure, probably NOTOC bracketed by two underscores at each end or something along those lines). Gene Nygaard ( talk) 13:19, 5 January 2009 (UTC)
The above article ends up in the Category:ParserFunction errors, possibly due to a problem with this template. The link from the coordinates to the toolserver includes "%E2%80%8E" in its URL. The coordinates as such seem to work.
The problem is possibly the same as the one mentioned at User_talk:Dispenser#Coordinates log (Warning: UTF8params). -- User:Docu
Thank you for fixing it. The following may have the same problem:
They are all in the parser function error category and showed up with UTF warnings in the coord-enwiki log. -- User:Docu
%E2 %80 %8E 11100010 10000000 10001110 aaaa aaaabb bbbbbb a = 00100000 = 0x20 b = 00001110 = 0x0E ab = 0x200E
s/[^\dNSEW._-]//g
before the first colon (if any) should get rid of them. --
Para (
talk) 15:36, 25 January 2009 (UTC)Thanks for your reply. My bot fixed some of them even if I haven't found the ideal python regex yet. -- User:Docu
The following python regex got rid of most of them:
(u"(\u200E|\uFEFF|\u200B)", r""),
Thanks for your help. -- User:Docu