Revision as of 21:36, 5 January 2009 editPigsonthewing (talk | contribs)Autopatrolled, Event coordinators, Extended confirmed users, Page movers, File movers, IP block exemptions, New page reviewers, Pending changes reviewers, Rollbackers, Template editors266,666 edits →Formatting preferences: objection← Previous edit | Latest revision as of 16:31, 18 January 2025 edit undoRedrose64 (talk | contribs)Autopatrolled, Administrators273,438 edits →Help needed with "Script error: The function "coordinsert" does not exist.": typo | ||
Line 1: | Line 1: | ||
{{talk header}} | |||
{{permprot}} | {{permprot}} | ||
{{WikiProject banner shell|collapsed=yes| | |||
{{ProjectMicroformats}} | |||
{{WikiProject Microformats}} | |||
{{WPcoord}} | |||
{{WikiProject Geographical coordinates}} | |||
{{central|:Category:Coord template{{!}}all template talk-subpages}} | |||
{{WikiProject Geography}} | |||
}} | |||
{{central|text=all sub-template talk pages redirect here.}} | |||
{{Old XfD multi | |||
{{Archives}} | |||
<!-- 1st --> | |||
|date = 14 April 2014 | |||
|result = '''No consensus''' | |||
|page = Misplaced Pages:Templates for discussion/Log/2014 April 14#Template:Coord | |||
|link = | |||
|caption = | |||
<!-- 2nd --> | |||
|date2 = 8 May 2014 | |||
|page2 = Misplaced Pages:Templates for discussion/Log/2014 May 8#Template:Coord | |||
|result2 = '''No consensus''' | |||
|link2 = | |||
|caption2 = | |||
<!-- 3rd --> | |||
|date3 = 10 June 2014 | |||
|page3 = Misplaced Pages:Templates for discussion/Log/2014 June 10#Template:Coord | |||
|result3 = '''No consensus''' | |||
|link3 = | |||
|caption3 = | |||
<!-- ... --> | |||
<!-- behavior --> | |||
|collapse = <!-- yes/no/a number value --> | |||
|type = <!-- article, template, file, essay, etc. --> template | |||
|deletion = <!-- deletion, merging, renaming etc. --> merging | |||
}} | |||
{{user:MiszaBot/config | |||
| maxarchivesize = 100K | |||
| counter = 14 | |||
| algo = old(365d) | |||
| minthreadsleft = 5 | |||
| minthreadstoarchive = 2 | |||
| archive = Template talk:Coord/Archive %(counter)d | |||
}} | |||
{{Archives|search=yes|bot=MiszaBot II|age=300}} | |||
{{Lua sidebar|module=Coordinates}} | |||
== Placement of the center of a location? == | |||
;'''Conversion: For issues to be considered in upgrading other coordinates templates to this one, please see ].''' | |||
Greetings and felicitations. The section title is awkward, but I can't think of a better way to phrase it. In particular with cities (and other larger areas), what coordinates should I use—the geographic center of the area in question, or the business district/center of activity? —] (]) 04:06, 29 October 2023 (UTC) | |||
<!-- | |||
: Edit: An example: ]. One set of coordinates was in the infobox, and another at the bottom of the article (as is often the case with American municipalities and counties), which I moved to the infobox, to aid in comparing the two. The first points to the northern part of the island, near the (possible) geographic center of the island, while the second appears to point to the business district. —] (]) 04:14, 29 October 2023 (UTC) | |||
Please leave the above here, when archiving discussions. Thank you. | |||
::Bumping. —] (]) 08:58, 17 May 2024 (UTC) | |||
--> | |||
:::Bumping again, in part to avoid the archiving of this topic. —] (]) 18:07, 10 September 2024 (UTC) | |||
::::{{replyto|DocWatson42}} Many settlements grew up around the place where two transport routes met, such as a crossroads, or a bridge over a river. I would pick that point, if it can be identified. --] 🌹 (]) 22:13, 10 September 2024 (UTC) | |||
::::: Okay—so the human, rather than the geographic, center (assuming there is one, and it can be identified)? —] (]) 22:23, 10 September 2024 (UTC) | |||
:::::: Bumping. —] (]) 01:28, 24 December 2024 (UTC) | |||
== GeoGroup == | |||
__TOC__ | |||
Since we are encouraging people to use GeoGroup, can we get it fixed as it is not working at all, just hangs when you try to display all the coords. ] (]) 23:23, 22 February 2024 (UTC) | |||
== Removal of hCard microformat == | |||
:But if you wait long enough, it will display a map of the world with an error message saying "No data to display". ] (]) 23:33, 22 February 2024 (UTC) | |||
== Template is not compatible with night mode == | |||
{{unresolved}} | |||
The coordinates icon is not displaying very well in the new upcoming night theme: https://phabricator.wikimedia.org/F54691215 | |||
An ''apparently undocumented'' feature of this template is that, if the name parameter is set, an ] ] is emitted. This causes problems in several ways: | |||
Example: https://en.wikipedia.org/Phoenix,_Arizona?vectornightmode=1&useskin=vector-2022 | |||
Is it perhaps time to update this icon, perhaps to one of the map icons in https://doc.wikimedia.org/codex/latest/icons/all-icons.html ? <span style="background:white; color: black;">🐸</span> ] (]) 04:55, 31 May 2024 (UTC) | |||
*It can conflict with the use of the template inside other templates/ tables, such as infoboxes, which are themselves designed to emit an hCard. In such cases, redundant, and incomplete, second hCards are often generated. | |||
*It precludes the use of additional hCard fields such as address properties, dates, etc. | |||
*The name is hidden by CSS in the output HTML. Some microformat parsers, including the most popular, ], by default, ignore hidden content. | |||
*Even where the coordinates relate to a person (such as those of a burial place) an HTML class of "org" is included; this flags the coordinates as belonging ''not'' to a person, but to an organisation or venue. | |||
:@] The icon is provided by the wikiminiatlas gadget, and I believe hosted on meta, or toolforge. It is managed by ]. —] (] • ]) 16:37, 31 May 2024 (UTC) | |||
I propose that this be resolved by removing the mark-up <code><nowiki><span class="vcard"></nowiki></code> and <code><nowiki><span class="fn org"></nowiki></code> from the child-template {{tl|Coord/link}}; along with their two paired closing tags. These classes are used only by the microformat; and are not styled in any Misplaced Pages skin. The name parameter would remain, still hidden, for use by other services. ] (User:Pigsonthewing); ]; ] 18:51, 18 September 2008 (UTC) | |||
== Question about the "city" parameter (repost) == | |||
:Removing the spans would break the structure by taking away the markup for the name. To retain the microformat functionality, used by a tool in {{tl|GeoGroupTemplate}} for example, the associated HTML would then have to be written to articles directly, obfuscating the wikitext and making articles harder to edit. These issues were discussed thoroughly before, please see ]. --] (]) 22:05, 18 September 2008 (UTC) | |||
At what point does the size of the population stop mattering? I have been generally ignoring populations smaller than 10,000 and just entering the unmodified "city" parameter—is this correct? (Reposted from ].) —] (]) 21:02, 10 September 2024 (UTC) | |||
: Bumping. —] (]) 01:29, 24 December 2024 (UTC) | |||
== Consequences of placing the template at the top of articles? == | |||
::What do you mean by "''break the structure by taking away the mark-up for the name''"? {{tl|GeoGroupTemplate}} doesn't require an hCard "fn"; but will use the proper, parent hCard name where one is provided. Nothing in the earlier discussion resolves the points I list above. ] (User:Pigsonthewing); ]; ] 22:09, 18 September 2008 (UTC) | |||
Greetings and felicitations. Are there any consequences to placing this template at the top of articles—will it foul anything up? (I have a vague recollection of seeing a mention that it does, but would like specific and concrete information.) —] (]) 01:34, 24 December 2024 (UTC) | |||
:::Most coordinates on Misplaced Pages with a name parameter do not have surrounding classes or names in prose and removing the elements would therefore break compatibility with the microformat tools in the majority of cases. The widely supported modification a year ago did exactly the opposite of your proposal by clearing articles of markup that doesn't belong on article level. All issues except perhaps for the last one were discussed, resulting for example to the mention of infoboxes in the ] of the template. On the last point: people don't have fixed coordinates; coordinates for a burial site are for the location of the grave. Inclusion of such detailed information in Misplaced Pages is questionable anyway. --] (]) 22:58, 18 September 2008 (UTC) | |||
:] says to put it between the navboxes and categories; but if it has {{para|display|title}} (without <code>inline</code>) it could, in theory, be placed almost anywhere (like categories). It's conventional to put it at the bottom. --] 🌹 (]) 23:10, 24 December 2024 (UTC) | |||
::I know the convention—I'm just wondering about the consequences of an alternative, mostly because this would put it where it displays, and make it easier to find. —] (]) 23:37, 24 December 2024 (UTC) | |||
:::You run the risk of wikignomes (some armed with scripts and bots) moving it to the bottom again. --] 🦌 (]) 14:01, 25 December 2024 (UTC) | |||
== Help needed with "Script error: The function "coordinsert" does not exist." == | |||
::::Unless you can cite evidence of such a case, I think your claim that "''removing the elements would therefore break compatibility with the microformat tools in the majority of cases''" is false; removing the classes from ''Coord'' would still leave it rendering a Geo microformat (which is what it was created to so in the first place), and the relevant tools are made to work with that. The changes of a year ago did a deal of damage; ; where "label" (unformatted address) and "note" properties were removed from the hCard microformat; perhaps you could tell us how they can be replaced? The issues may have been ''discussed'', but the problems were not ''resolved''. Coordinates for the graves of dead people are labelled with the name of; and are part of the hCard of; the dead person, not of the grave, just as are the hCard's date of birth property, and such hCards do not use "fn org". The vCard specification, on which hCard is based, has a coordinates property explicitly for the coordinates of an individual. As an aside, it is odd to see you arguing so vociferously for the retention of a microformat, when , at the same time, that microformats should not be used on Misplaced Pages. There is already consensus for the inclusion of such information. As O have already said to you elsewhere today: If you wish to pursue a case against the use of microformats per se, then please do so in the appropriate forum; not here. ] (User:Pigsonthewing); ]; ] 23:30, 18 September 2008 (UTC) | |||
Hi, all! Can anyone help us over at ], please? We're getting the following when we use Coord template within the Infobox historic site template. Coord works outside of the Infobox historic site template, and we've gotten around it by putting the Coord template at the beginning and hidden the paramater |coordinates for now within the Infobox (see ] for an example of all of this in action). Cheers! ] (]) 14:38, 1 January 2025 (UTC) | |||
:::::Simple: just look at the HTML with for example. If the spans are removed, the structure will end up broken and the information without markup. The last available database dump from July 2008 contains 88500 direct uses of ''coord|...|name=''. Significant issues with their use have not been reported. --] (]) 18:30, 19 September 2008 (UTC) | |||
:{{replyto|Xxglennxx}} The English ] has a coordinsert function, which is not present in ]. --] 🦌 (]) 16:54, 1 January 2025 (UTC) | |||
::Thank you, @]. Where can I find coordinsert? Cheers! ] (]) 19:17, 1 January 2025 (UTC) | |||
::@] Not to worry now - I just recopied from en to cy and it seems to have fixed it! Why I didn't do that hours ago is beyond me! Thank you again! :D ] (]) 19:31, 1 January 2025 (UTC) | |||
== Broken! == | |||
::::::It's not "simple" at all. Merely asserting that "''...the structure will end up broken''" tells us nothing more than did your previous unqualified assertion. How will it be broken? Will it be invalid? Not render correctly? What? Likewise, what information will be "''without markup''", and why will that matter? What do those spans do, other than carrying the HTML class names used only by the microformat? | |||
https://geohack.toolforge.org now gives 404. ] (]) 11:21, 18 January 2025 (UTC) | |||
::::::I have reported significant issues with the use of the name parameter in Coord, above and predicted them - correctly - elsewhere, previously. For example,. you use of it on ] means that the first table entry says, nonsensically, to readers with CSS disabled or unavailable that the ''coordinates'' of Bellesguard's Tower are "41°24′34″N 2°07′37″E / 41.40944, 2.12694 (Bellesguard's Tower)"; it does not ''degrade gracefully'', as is good practice. | |||
::::::Despite this, I have not asked here for the name parameter to be removed, only for the hCard classes and their containing spans. If the spans are important, for some reason that escapes me, then just the classes can be removed, or renamed, leaving the (empty) spans in situ. ] (User:Pigsonthewing); ]; ] 18:43, 19 September 2008 (UTC) | |||
:Seems to work now. — ] (]) 12:54, 18 January 2025 (UTC) | |||
:::::::I'm sorry, I should have been more clear, we can't expect everyone to be aware of what microformats are. When this template is used with the name parameter, the HTML ends up with span elements and some very specific class names, linking the coordinates to a descriptive name. Some tools in turn recognise these class names and can use the information as labels on a map. If either the encapsulating elements or the class names are removed, the given names will no longer be associated with the coordinates in the microformat, and the tools that used the microformat cannot find the information, as the only thing they look for are the elements with those very specific class names. I've understood microformats are quite popular indeed with coordinates, and many Misplaced Pages articles with inline coordinates link directly to a tool that depends on the markup this template creates with the name parameter. It would be a shame to make the descriptive information unavailable to the users of those tools, or to have to start writing the HTML this template creates into article wikitext instead. I hope this helps. --] (]) 00:35, 20 September 2008 (UTC) | |||
::Yes - raised issue on the Help Desk and it started working again soon after, though maybe coincidence. ] (]) 13:04, 18 January 2025 (UTC) | |||
::::::::So, to be clear, you're referring to the use of those spans/ classes in an hCard microformat ''only'', and for ''no other purpose''? If so, my earlier points apply: the use of a hidden name property in this way, in a microformat is broken, and causes the problems already identified. The spans/ classes should be removed as requested, in order that an hCard "fn" or "fn org" property can be applied to visible data, in a valid and appropriate manner. Your reference to direct links to "a tool that depends on the markup this template creates" seems to be a red herring, as that tool (GeoHack) does not use the spans/ classes to which this request applies. ] (User:Pigsonthewing); ]; ] 13:38, 20 September 2008 (UTC) | |||
:::::::::As far as I know, the additional HTML is there for microformat purposes only and is used by many microformat readers, including the . They might even be the reason our users have used the parameter tens of thousands of times. The hiddenness of information visible though not directly adjacent to coordinates has been discussed already among your other concerns. The rest of this discussion can be found from the talk archives of this and ]. Please refer to them to find why your concerns aren't met with actions. The best part was perhaps "''I've still seen no citation for any *prohibition* of hidden data in microformats''". By adding the new parameter with its microformat functionality to this template after an RfC, the ]. ], please. --] (]) 23:36, 20 September 2008 (UTC) | |||
::::::::::Nothing in what you write addresses the problems I have listed. The "Suda tool" and ''every other microformat reader'' will work equally well with Geo microformats with no name parameter; or where the name's class is applied to ''visible'' data as part of a more widely-scoped hCard microformat. ] (User:Pigsonthewing); ]; ] 23:43, 20 September 2008 (UTC) | |||
== Formatting preferences == | |||
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, <tt><nowiki>{{coord|43.12|N|79.34|W}}</nowiki></tt> displays as {{coord|43.12|N|79.34|W}}. Is this intentional? I want and expect it to display as {{coor d|43.12|N|79.34|W}} like the old template did, and I'm guessing that most other people would think likewise... | |||
TIA, ] (]) 19:53, 12 November 2008 (UTC). | |||
::I also second the complaint about improperly switching away from the input format. Can that be fixed? ] (]) 02:47, 10 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. 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. --] (]) 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. ] (]) 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 ], ], ] and ]. | |||
I have created ] to start documenting this template, and it seems that there are two possible ways to do this change: | |||
* Directly in the link creating template ] with parserfunctions to treat negative numbers. | |||
* In ] and ] to give the currently fed coordinates in addition to ones formatted for display. | |||
--] (]) 20:17, 30 December 2008 (UTC) | |||
:Before expending such energy, you would be wise to determine - through a centralised discussion, with notices in relevant fora - whether there is community consensus to make this change. Your "many" is actually only a handful of people, compared with the thousands who use the template with no concern for this issue. I'm sur enone of us want to see a repeat of the debacle over date formatting. ] (User:Pigsonthewing); ]; ] 20:28, 30 December 2008 (UTC) | |||
::I note that ] displays the cursor location as ''lat 25.166763° lon -91.136274° elev 0 ft''. I had never noticed the lack of NSEW and don't really care whether it appears or not. —] (]) 21:19, 30 December 2008 (UTC) | |||
::: In this case the "lat" and "lon" labels provide the needed context, so N/S/E/W is not needed. --] (]) 19:39, 31 December 2008 (UTC) | |||
::::In what way does the presence, when {{Tl|Coord}} is used, of a globe icon not provide context? ] (User:Pigsonthewing); ]; ] 15:57, 1 January 2009 (UTC) | |||
:::::It does not distinguish between the two numbers. --] (]) 17:47, 2 January 2009 (UTC) | |||
:::::: It does not need to, because the order in which they appear is not only significant, but standardised. ] (User:Pigsonthewing); ]; ] 18:55, 2 January 2009 (UTC) | |||
:::::] has previously shed some pearls of wisdom on this, such as ''"a Javascript-based alternative would by inaccessible to some people"'' and ''"Javascript is not, as pointed out above, accessible to everyone"''. The Javascript-added globe icon is also excluded from printouts of Misplaced Pages pages. When it is visible, it only hints of the numbers being coordinates, but that doesn't say anything about latitude and longitude. Their ordering is not universal; the ] standard for example uses the longitude,latitude order. Displaying the N/S/E/W makes clear what's what, just like using symbols for degrees, minutes and seconds. --] (]) 00:44, 2 January 2009 (UTC) | |||
:The distinction between coordinates in decimal format and coordinates in degrees, minutes & seconds format does not extend to formatting of negative numbers. The Misplaced Pages community however has since 2005 formatted coordinates with cardinal directions instead of mathematical symbols, and any new templates replacing old ones should continue that practice unless there is significant support for change. Here on the talk page of the concerned template and on the talk page related to geographical coordinates in Misplaced Pages, majority of editors with good rational support to correct the template and make Misplaced Pages's coordinate formatting consistent. This issue is not analogous to manual of style related topics where thousands of articles have had to be edited, as the changes will be done on a few templates only and not on all the pages using the template. | |||
:I have therefore taken the time to implement my first option from above: . Only ] needs modification in that one. Like the current coord template, it still has the ], and I don't know if it's possible to fix it with all the conversions going inside the template. Test cases are below. The second option would be more elegant to keep the link template just for concatenation without much logic, but it would require edits to all the input templates to pass decimal coordinates for both display and geo microformat use, and might not be worth the trouble. --] (]) 21:01, 1 January 2009 (UTC) | |||
:{| class="wikitable" | |||
! Wikitext !! Current output !! Expected !! <s>Proposed coord/link</s><br/><small>Superseded by next proposal</small> !! Proposed coord/input/d<br/>& coord/link | |||
|- | |||
| <nowiki>{{coord|1|2}}</nowiki> || {{coord|1|2}} || 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}} | |||
|- | |||
| <nowiki>{{coord|1|-2}}</nowiki> || {{coord|1|-2}} || 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}} | |||
|- | |||
| <nowiki>{{coord|1|N|2|E}}</nowiki> || {{coord|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}} | |||
|- | |||
| <nowiki>{{coord|1|N|2|W}}</nowiki> || {{coord|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}} | |||
|- | |||
| <nowiki>{{coord|1.10|2.00}}</nowiki> || {{coord|1.10|2.00}} || 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}} | |||
|- | |||
| <nowiki>{{coord|1.10|-2.00}}</nowiki> || {{coord|1.10|-2.00}} || 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}} | |||
|- | |||
| <nowiki>{{coord|1.10|N|2.00|E}}</nowiki> || {{coord|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}} | |||
|- | |||
| <nowiki>{{coord|1.10|N|2.00|W}}</nowiki> || {{coord|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}} | |||
|- | |||
| <nowiki>{{coord|1|2|3|N|4|5|6|W}}</nowiki> || {{coord|1|2|3|N|4|5|6|W}} || colspan=3 | Current DMS just for comparison, no changes proposed there. | |||
|} | |||
::There was '''significant support''' for change to the current {{Tl|Coord}} template, which has been in use since 2007. '''As I have already pointed out''', a significant change to the '''current''' behaviour, to many thousands of articles, should not be made without first obtaining consensus at a centralised discussion, with pointers posted in all the appropriate fora. This very much '''''is''''' analogous to Mos issues with date formatting, and we've all seen where non-consensual changes to that led. If there is such consensus, then the three alternative presentations it offers to users should each be given classes and styled such that users may choose which of these they can see, as they currently can for the two options in the live template. ] (User:Pigsonthewing); ]; ] 22:41, 1 January 2009 (UTC) | |||
::Why do you propose inconsistent precisions? I see -2.00 becoming 2 W and 2 becoming 2.00 E. Precision should not be modified by formatting. −] (]) 22:57, 1 January 2009 (UTC) | |||
:::That is unfortunately the current state of the template that fixing the formatting problem doesn't address. See below. --] (]) 23:15, 1 January 2009 (UTC) | |||
::::I found a fix for this. Modifications are necessary to , and a new template ]. Demo test cases are in the above table. There are a few inconsistencies with commas and hidden decimal formatting of dms coordinates, where the fix would be to make Coord/input/dm and Coord/input/dms use the dec-lat/long-display parameter as well. --] (]) 21:31, 4 January 2009 (UTC) | |||
:::::Your latest version is emitting invalid ]. My previous comments also pertain. ] (User:Pigsonthewing); ]; ] 22:01, 4 January 2009 (UTC) | |||
::::::Fixed. Thanks for testing. --] (]) 22:45, 4 January 2009 (UTC) | |||
:::::::Seems useful and an obvious improvement. I disagree about the need of a large scale consensus finding process. This is a case of Bold-Revert-Discuss. --] 23:14, 4 January 2009 (UTC) | |||
::::::::Looks good and sound to me. I'd say go for it. --] (] • ]) 14:25, 5 January 2009 (UTC) | |||
:::::::::Concur. --] (]) 15:26, 5 January 2009 (UTC) | |||
::::::::This affects many tens, if not hundreds, of thousands of articles. ] (User:Pigsonthewing); ]; ] 18:17, 5 January 2009 (UTC) | |||
:I still see some issue with geo-default -> geo-dec spans for microformatting. | |||
<pre><nowiki><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></nowiki></pre> | |||
:Which was originally: | |||
<pre><nowiki><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></nowiki></pre> | |||
:--] (] • ]) 16:43, 5 January 2009 (UTC) | |||
::The old one followed ] while the now one follows ]. The shorthand notation wasn't used for the original version presumably because ; is not a common separator. Negative coordinates are however no longer shown, so the odd separator is fine inside the geo display:none element. --] (]) 16:48, 5 January 2009 (UTC) | |||
:::To demonstrate, the stub demo template <code><nowiki>{{User:Para/Coord/input/dec|0.0000|23.4567}}</nowiki></code> shows {{User:Para/Coord/input/dec|0.0000|23.4567}} in a without problems. Likewise for <code><nowiki>{{User:Para/Coord/input/d|0.0000|N|34.5678|E}}</nowiki></code>: {{User:Para/Coord/input/d|0.0000|N|34.5678|E}} (examples coordinates chosen to be first on the sorted list of coordinates from this page – but turns out the tool actually shows them in longitude,latitude order so they're last in the list). --] (]) 18:28, 5 January 2009 (UTC) | |||
: I note that you again overlook, or ignore, . ] (User:Pigsonthewing); ]; ] 18:16, 5 January 2009 (UTC) | |||
::This formatting problem was not brought to the attention of all the people who discussed converting coor templates to coord. Everyone interested in fixing the problem have now had a chance to comment here, at GEO or at MOS and there has been nothing but support. Re-re-repeating your concerns that nobody shares didn't work the ] and it's not going to work now either. --] (]) 18:28, 5 January 2009 (UTC) | |||
=== Modifications === | |||
<s>{{tl|editprotected}}</s> | |||
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. | |||
{| class="wikitable" | |||
! Template ! Code | |||
|- | |||
| ] | |||
| <code><nowiki> | |||
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> | |||
</nowiki></code> | |||
|- | |||
| ] | |||
| <code><nowiki> | |||
|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> | |||
</nowiki></code> | |||
|- | |||
| ] | |||
| Protect | |||
|} | |||
Thanks. --] (]) 16:42, 5 January 2009 (UTC) | |||
:This proposal will remove from view a useful output format (numbers only, e.g. "1.10,-2.00"), preferred by some suers and useful for copy-n-pasting into mapping and other tools. I therefore object to this "editprotected" change (or anything like it), until such time as there has been a proper and widely-notified discussion, with demonstrable consensus, as suggested in | |||
== Precision glitch == | |||
:''Broken out of "Formatting problems" section above'' | |||
There is another way in which template {{tl|coor}} is not broken like this one is. Compare: | |||
*<nowiki>{{coor d|43.10|N|79.00|W}}</nowiki> → {{coor d|43.10|N|79.00|W}} | |||
*<nowiki>{{coord|43.10|N|79.00|W}}</nowiki> → {{coord|43.10|N|79.00|W}} <!-- editors note: output currently reads "43.1, -79" --> | |||
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? ] (]) 02:42, 10 December 2008 (UTC) | |||
:And in addition to the precision loss problem demonstrated above, mismatched precisions between the coordinates looks bad as a matter of style. --] (]) 03:29, 30 December 2008 (UTC) | |||
::"Mismatched precision" might be intentional. I remember someone describing their application of ] for a semi-linear feature such as a park (I don't remember what it was). They decided on more decimal places of precision for the narrow dimension than the lengthwise, something like (44.12, -123.4567). —] (]) 20:04, 31 December 2008 (UTC) | |||
:As long as MediaWiki and PHP render <code><nowiki>{{#expr:-1*-1.0}}</nowiki></code>, <code><nowiki>{{#expr:abs(-1.0)}}</nowiki></code> and <code><nowiki>{{#expr:-1.0+2.0}}</nowiki></code> as {{#expr:-1*-1.0}}, {{#expr:abs(-1.0)}} and {{#expr:-1.0+2.0}}, I'm not sure it's possible to fix this for all the cases. --] (]) 01:45, 2 January 2009 (UTC) | |||
::Actually, looks like Wikipedians have built some character hacks where the math fails: <code><nowiki>{{rnd|49|{{precision|49.00}}}}</nowiki></code> renders {{rnd|49|{{precision|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, <code><nowiki>{{rnd|-1.1|{{precision|1.10}}}}</nowiki></code> = {{rnd|-1.1|{{precision|1.10}}}} and might solve the formatting problem in the section above, but the ] from the 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. --] (]) 12:05, 2 January 2009 (UTC) | |||
:::Good find. Wikipedians are so clever. It does look like it would be stretching things too far/deep. Maybe the best bet would be to get the needed functionality added to #expr; seems we have a strong case for adding yet another operator or so. --] (]) 19:16, 2 January 2009 (UTC) | |||
::::I'm not sure whether it should be a fix in PHP or in MediaWiki, but there has probably been lots of discussion on how number handling is implemented in different programming languages and whether their operators lose precision. Since that discussion is a bit far from here, I did a little workaround following the example of {{tl|precision1}} by handling only up to certain number of decimals. It's quite a bit lighter than the rnd&precision templates. <code>{{]|-1.10|1.1}}</code> renders as {{User:Para/negzeropad|-1.10|1.1}}. There the -1.10 would be the original value and 1.1 the one after abs. I also came up with a fix to Gene's 43.10 problem above by removing an unneeded dec2dms transformation from the degrees only case; see the above section for test cases. --] (]) 20:17, 4 January 2009 (UTC) | |||
== Image size of the globe == | |||
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. --<small> ]</small> <sup>]</sup> 22:51, 14 December 2008 (UTC) | |||
{|align=right | |||
|rowspan=2|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. --<small> ]</small> <sup>]</sup> 22:58, 14 December 2008 (UTC) | |||
:Yes, it is adjustable. The ] manual explains how. (use the ''buttonImage'' config parameter and set it to a smaller version of the globe, i.e. ) --] 17:57, 30 December 2008 (UTC) | |||
== Bug in this template == | |||
Finding a longitude reported as "-104.6" in ], I changed it to a correct minus sign (per ]) 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. ] (]) 01:43, 19 December 2008 (UTC) | |||
:Do you mean that you changed "-" to "<code>&minus;</code>"? 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 ] is about writing math articles not using math symbols in actual calculations like this and {{tl|convert}}. ] ] 02:53, 19 December 2008 (UTC) | |||
:(e/c) Depends, &minus; is HTML. The backends of template/expr/map server, might not necessarily deal with that very well either, since they deal with numbers, not HTML. The correct character is simply the unicode char: −. Although I doubt any of the systems are guaranteed to understand that. It would be interesting to find out where these limitations are however. | |||
:: A quick test of #expr seems to indicate that both the unicode and HTML form are supported. What the templates themselves support, I'm not 100% sure yet. It seems however, that both geohack as well as the wikiminiatlas, do NOT support this character. WMA seems to do a hard regexp for - in the information it is handed. Geohack is broken in a similar method, the URL is correct, but the backend does not handle that unicode character, only the -. I propose you file a bugreport on http://bugzilla.wikimedia.org --] (] • ]) 03:05, 19 December 2008 (UTC) | |||
:::hm, the unicode minus issue came up before. I thought I changed the WMA accordingly. I'll look into that. --] 04:42, 19 December 2008 (UTC) | |||
::::Yeah, in edit in September I added unicode minus support. Any more minus symbols I'll have to add? --] 04:44, 19 December 2008 (UTC) P.S.: the serverside coordinate parser might need to be fixed (so that the labels appear at the correct coordinates). --] 04:56, 19 December 2008 (UTC) | |||
:This was last discussed at ] and at ]. Following the that was mentioned there, MediaWiki and therefore this template as well can now parse the unicode minus by replacing it internally with an ascii minus. GeoHack and all other tools that use Misplaced Pages coordinates would need a similar fix. | |||
:However, I think it's still premature to make Misplaced Pages coordinates use the unicode minus. None of the services I tried from the GeoTemplate list support the unicode minus, not in the url or when copied and pasted to their search box. While we could modify this template and GeoHack to display all negative numbers with the unicode minus but keep to ascii in urls, it would still break manual and machine reuse of Misplaced Pages coordinates in a way that's not obvious to fix. There's still some unicode evangelism to be done outside Misplaced Pages. --] (]) 11:31, 19 December 2008 (UTC) | |||
==Table of contents mess== | |||
Will someone please fix ] 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). ] (]) 13:19, 5 January 2009 (UTC) | |||
:Fine here. ] (User:Pigsonthewing); ]; ] 17:54, 5 January 2009 (UTC) | |||
:A floating TOC will overlap the quick ref table unless you have a wide enough screen (or a non stnadards-compliant webbrowser, I guess :-) ). I remove the floating thingie and put the toc below the quickref. --] 18:16, 5 January 2009 (UTC) | |||
== Categorising faulty co-ordinates == | |||
Whilst editing or browsing, I occasionally come across articles such as ], which produces an error message in large red letters across the top of the screen. I'm not an expert on the intricacies of this template, so I haven't fixed it. (I tried previewing it changing the O to an E, but it didn't work). What would be useful would be for the template to automatically add a category to any faults it finds, say ''Category:Pages with faulty co-ordinates'' or something. This would allow editors experienced with this template to easily target and fix the problems. Is this possible? — ]<sub> (]/])</sub> 17:31, 5 January 2009 (UTC) | |||
:It used to be possible with the old templates, but they were unfortunately ]. Since this template attempts to be everything the old ones were together, there are space constraints with multiple transclusions and I doubt we can add the error checking functionality here. ] however runs a daily check on all coordinates with an external tool to produce error logs: see ] and click on coord-enwiki.log. --] (]) 17:47, 5 January 2009 (UTC) | |||
::The categories which were deleted were those for the deprecated ''coor *'' templates; they were deleted by the correct, consensual process. ] still exists. I have fixed the coordinates on ]. ] (User:Pigsonthewing); ]; ] 18:12, 5 January 2009 (UTC) |
Latest revision as of 16:31, 18 January 2025
This is the talk page for discussing improvements to the Coord template. |
|
Archives: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14Auto-archiving period: 12 months |
Template:Coord is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit protected}} to notify an administrator to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
This template does not require a rating on Misplaced Pages's content assessment scale. It is of interest to multiple WikiProjects. | |||||||||||||||
|
To help centralize discussions and keep related topics together, all sub-template talk pages redirect here. |
This template was nominated for merging. Please review the prior discussions if you are considering re-nomination:
|
Archives | ||||||||||||||
|
||||||||||||||
This page has archives. Sections older than 365 days may be automatically archived by Lowercase sigmabot III when more than 5 sections are present. |
Related pages |
---|
Placement of the center of a location?
Greetings and felicitations. The section title is awkward, but I can't think of a better way to phrase it. In particular with cities (and other larger areas), what coordinates should I use—the geographic center of the area in question, or the business district/center of activity? —DocWatson42 (talk) 04:06, 29 October 2023 (UTC)
- Edit: An example: North Haven, Maine. One set of coordinates was in the infobox, and another at the bottom of the article (as is often the case with American municipalities and counties), which I moved to the infobox, to aid in comparing the two. The first points to the northern part of the island, near the (possible) geographic center of the island, while the second appears to point to the business district. —DocWatson42 (talk) 04:14, 29 October 2023 (UTC)
- Bumping. —DocWatson42 (talk) 08:58, 17 May 2024 (UTC)
- Bumping again, in part to avoid the archiving of this topic. —DocWatson42 (talk) 18:07, 10 September 2024 (UTC)
- @DocWatson42: Many settlements grew up around the place where two transport routes met, such as a crossroads, or a bridge over a river. I would pick that point, if it can be identified. --Redrose64 🌹 (talk) 22:13, 10 September 2024 (UTC)
- Okay—so the human, rather than the geographic, center (assuming there is one, and it can be identified)? —DocWatson42 (talk) 22:23, 10 September 2024 (UTC)
- Bumping. —DocWatson42 (talk) 01:28, 24 December 2024 (UTC)
- Okay—so the human, rather than the geographic, center (assuming there is one, and it can be identified)? —DocWatson42 (talk) 22:23, 10 September 2024 (UTC)
- @DocWatson42: Many settlements grew up around the place where two transport routes met, such as a crossroads, or a bridge over a river. I would pick that point, if it can be identified. --Redrose64 🌹 (talk) 22:13, 10 September 2024 (UTC)
- Bumping again, in part to avoid the archiving of this topic. —DocWatson42 (talk) 18:07, 10 September 2024 (UTC)
- Bumping. —DocWatson42 (talk) 08:58, 17 May 2024 (UTC)
GeoGroup
Since we are encouraging people to use GeoGroup, can we get it fixed as it is not working at all, just hangs when you try to display all the coords. Kerry (talk) 23:23, 22 February 2024 (UTC)
- But if you wait long enough, it will display a map of the world with an error message saying "No data to display". Kerry (talk) 23:33, 22 February 2024 (UTC)
Template is not compatible with night mode
The coordinates icon is not displaying very well in the new upcoming night theme: https://phabricator.wikimedia.org/F54691215 Example: https://en.wikipedia.org/Phoenix,_Arizona?vectornightmode=1&useskin=vector-2022
Is it perhaps time to update this icon, perhaps to one of the map icons in https://doc.wikimedia.org/codex/latest/icons/all-icons.html ? 🐸 Jdlrobson (talk) 04:55, 31 May 2024 (UTC)
- @Jdlrobson The icon is provided by the wikiminiatlas gadget, and I believe hosted on meta, or toolforge. It is managed by User:Dschwen. —TheDJ (talk • contribs) 16:37, 31 May 2024 (UTC)
Question about the "city" parameter (repost)
At what point does the size of the population stop mattering? I have been generally ignoring populations smaller than 10,000 and just entering the unmodified "city" parameter—is this correct? (Reposted from 27 May 2023.) —DocWatson42 (talk) 21:02, 10 September 2024 (UTC)
- Bumping. —DocWatson42 (talk) 01:29, 24 December 2024 (UTC)
Consequences of placing the template at the top of articles?
Greetings and felicitations. Are there any consequences to placing this template at the top of articles—will it foul anything up? (I have a vague recollection of seeing a mention that it does, but would like specific and concrete information.) —DocWatson42 (talk) 01:34, 24 December 2024 (UTC)
- MOS:ORDER says to put it between the navboxes and categories; but if it has
|display=title
(withoutinline
) it could, in theory, be placed almost anywhere (like categories). It's conventional to put it at the bottom. --Redrose64 🌹 (talk) 23:10, 24 December 2024 (UTC)- I know the convention—I'm just wondering about the consequences of an alternative, mostly because this would put it where it displays, and make it easier to find. —DocWatson42 (talk) 23:37, 24 December 2024 (UTC)
- You run the risk of wikignomes (some armed with scripts and bots) moving it to the bottom again. --Redrose64 🦌 (talk) 14:01, 25 December 2024 (UTC)
- I know the convention—I'm just wondering about the consequences of an alternative, mostly because this would put it where it displays, and make it easier to find. —DocWatson42 (talk) 23:37, 24 December 2024 (UTC)
Help needed with "Script error: The function "coordinsert" does not exist."
Hi, all! Can anyone help us over at cy:Nodyn:Coord, please? We're getting the following when we use Coord template within the Infobox historic site template. Coord works outside of the Infobox historic site template, and we've gotten around it by putting the Coord template at the beginning and hidden the paramater |coordinates for now within the Infobox (see cy:Venta Silurum for an example of all of this in action). Cheers! Xxglennxx (talk) 14:38, 1 January 2025 (UTC)
- @Xxglennxx: The English Module:Coordinates has a coordinsert function, which is not present in cy:Modiwl:Coordinates. --Redrose64 🦌 (talk) 16:54, 1 January 2025 (UTC)
- Thank you, @Redrose64. Where can I find coordinsert? Cheers! Xxglennxx (talk) 19:17, 1 January 2025 (UTC)
- @Redrose64 Not to worry now - I just recopied from en to cy and it seems to have fixed it! Why I didn't do that hours ago is beyond me! Thank you again! :D Xxglennxx (talk) 19:31, 1 January 2025 (UTC)
Broken!
https://geohack.toolforge.org now gives 404. Jidanni (talk) 11:21, 18 January 2025 (UTC)
- Seems to work now. — hike395 (talk) 12:54, 18 January 2025 (UTC)
- Yes - raised issue on the Help Desk and it started working again soon after, though maybe coincidence. Rupples (talk) 13:04, 18 January 2025 (UTC)