Template talk:Gbmapping

(Redirected from Template talk:Gbmappingsmall)
Latest comment: 3 years ago by John Maynard Friedman in topic gbmapscaled

Not working

edit

This template appears not to be working - leads to a page of random symbols. This applies to the examples in the documentation as well as to usage in articles such as Leeds Country Way. Does anyone know whether this is a temporary glitch, or whether the template is defunct? It is transcluded in a lot of articles - certainly 500+, didn't look beyond that. PamD (talk) 22:25, 22 January 2009 (UTC)Reply

looks ok on Leeds Country way from here. Pit-yacker (talk) 19:55, 23 January 2009 (UTC)Reply
Yes, for me too - but was definitely playing up last night! Thanks for looking at it. PamD (talk) 00:07, 24 January 2009 (UTC)Reply


Noticed this morning: this template and a couple of related ones, link to a site refusing access. That surely is wrong or broken. The problem effects several pages I've tried, which leads me here. I have no solution. Northfield (talk) 09:29, 8 August 2009 (UTC)Reply

Odd inaccuracy

edit

Following the link for {{gbmapping|SO40442450}}, grid reference SO40442450 takes me to http://stable.toolserver.org/geohack/geohack.php?pagename=Template_talk%3AGbmapping&params=51.915874531785_N_-2.8672768351309_E_region%3AGB_scale%3A25000 which includes SO4035524553 (all-numeric format: 340356 224553) on the British national grid reference system. Surely SO40442450 should map to SO4044024500, shouldn't it? --Cavrdg (talk) 18:13, 27 July 2009 (UTC)Reply

I think I can see the problem. The shift from SO4044024500 to SO4035524553 is 85 m west and 53 m north. This is almost exactly size of the datum shift between OSGB 36 and WGS 84 in that part of the country. Basically, I think the geohack tool is failing to do a Helmert transform (or a better approximation) to shift between the two co-ordinate systems. This should probably be reported to the author/maintainer of the geohack tool. —ras52 (talk) 17:11, 28 July 2009 (UTC)Reply

Template goes to a redirect

edit

Full URL on printed pages

edit

If I select 'printable page' from the toolbox, or right-click and request 'print', using Firefox 3.6.2 or Chrome, the whole url gets included alongside any gbmapping grid refs, which really mangles any lists or infoboxes. It doesn't do it in ME8, and the 'download to pdf' doesn't do it either. Template:Coord doesn't have the same problem, and it would seem that <span class="plainlinks nourlexpansion"> in coord/link is the bit that deals with it.(However I notice it also removes the blue arrow symbol) For example:

Would it solve the problem for all the pages that use these templates if the span class could be added to the templates? RobinLeicester (talk) 20:49, 30 January 2012 (UTC)Reply

Edit request on 3 June 2012 for Template:Gbmaprim

edit

please append <noinclude>{{documentation}}</noinclude> after {{OS coord ...}}. this will add documentation and categories to the Template:Gbmaprim template. Frietjes (talk) 19:42, 3 June 2012 (UTC)Reply

Why not add <noinclude>{{documentation|Template:Gbmapping/doc}}</noinclude>? That would be consistent with the others in this group, for which a shared doc page has already been set up. --Redrose64 (talk) 18:39, 6 June 2012 (UTC)Reply
The problem with this method is that separate categories and interwikis are not easy to set up. But perhaps that it not needed in this case. — Martin (MSGJ · talk) 19:53, 10 June 2012 (UTC)Reply
I'm deactivating this request because there has been no response for 3 days and I'm not sure which method is needed here. — Martin (MSGJ · talk) 20:14, 13 June 2012 (UTC)Reply

Please implement as per Redrose64. DH85868993 (talk) 07:52, 19 August 2012 (UTC)Reply

  Done see here. --Redrose64 (talk) 12:54, 19 August 2012 (UTC)Reply
  Note: The technique found at Template:Merge/doc carries the interlanguage links for Template:Merge from and Template:Merge to in addition to those for Template:Merge. We could do the same here. --Redrose64 (talk) 12:51, 19 August 2012 (UTC)Reply

403: User account expired

edit

Tried using this template for Reculver today, it led to a Toolserver.org error notice "403: User account expired".[1] Anyone know what gives? Nortonius (talk) 10:10, 7 May 2014 (UTC)Reply

@Nortonius: Have you informed RHaworth (talk · contribs)? --Redrose64 (talk) 10:59, 7 May 2014 (UTC)Reply
Ah great, thanks RHaworth; @Redrose64: good suggestion but no, I just thought if RHaworth were around they'd respond here. Cheers all. Nortonius (talk) 12:04, 7 May 2014 (UTC)Reply
Same here - first sentence, and on around 4,000 pages. Can someone fix it please? Llywelyn2000 (talk) 09:04, 16 September 2014 (UTC)Reply
Please can someone take a look at this on cywiki, as we have hundreds of malfunctioning links! Many thanks. 2.28.216.58 (talk) 18:21, 2 March 2015 (UTC)Reply
@Llywelyn2000: I copied some of the code from Template:OS coord to cy:Nodyn:OS coord, see this edit, although I forgot the :en: prefix in the edit summary link back here. --Redrose64 (talk) 19:57, 2 March 2015 (UTC)Reply
@Redrose64:Many thanks, once again - our Welsh Knight in shining armour! Llywelyn2000 (talk) 07:53, 4 March 2015 (UTC)Reply

Bypass redirect

edit

This template generates a piped link to [[British national grid reference system|grid reference]], where the piping is actually a redirect to Ordnance Survey National Grid. Could it please be changed to go directly to the target - there's no advantage in retaining this very old (since 2010) redirect. Colonies Chris (talk) 21:04, 19 April 2016 (UTC)Reply

  Done — Martin (MSGJ · talk) 22:07, 19 April 2016 (UTC)Reply

Converting grid references to coordinates

edit

I use a Natural England source which gives locations as TL 932 367 and insert in <small style="font-size:85%;"> {{coord| |type:landmark_region:GB|name=Arger Fen }} <br/> {{gbmappingsmall| }}</small>. I then insert the grid reference into 'Gridref' to get the location in coords. This is time consuming and prone to error. Is there any way of automating the conversion? Dudley Miles (talk) 18:56, 25 April 2017 (UTC)Reply

@Dudley Miles: Not sure what you are asking for here. Please give an example of an edit which could have been made easier by your suggestion. --Redrose64 🌹 (talk) 10:42, 27 April 2017 (UTC)Reply
In <small style="font-size:85%;"> {{coord| |type:landmark_region:GB|name=Arger Fen }} <br/> {{gbmappingsmall| }}</small> I have a grid ref of TL 932 367 for Arger Fen which I insert against gbmapping. I then insert the grid reference in Gridref] and check the coordinates, which I transfer to complete the coord, reducing to 2 or 3 decimal places as editors object to excessively precise coords, as 51.986|0.812. This gives <small style="font-size:85%;"> {{coord| 51.986|0.812 |type:landmark_region:GB|name=Arger Fen }} <br/> {{gbmappingsmall|TL 932 367 }}</small>. Is there any way to simplify this process? Thanks. Dudley Miles (talk) 11:04, 27 April 2017 (UTC)Reply
Sorry, don't understand? Which article are you editing? It's always best if you provide a diff of the edit in question. --Redrose64 🌹 (talk) 20:28, 27 April 2017 (UTC)Reply
I was editing my sandbox, which has now gone live as List of Local Nature Reserves in Suffolk. A sample diff is [2]. For Haverhill Railway Walks: (1) I copied the grid reference from the Natural England Details page at [3]. (2) I pasted the grid reference into {{gbmappingsmall| }}. (3) I also pasted the grid reference to the Gridref program to get the coords. (4) I then noted the coords to 2 or 3 decimal places (in this case to 2 places as it is a long narrow site) and inserted them in {{coord| | |type:landmark_region }}. This gave:
52°05′N 0°28′E / 52.08°N 0.46°E / 52.08; 0.46 (Haverhill Railway Walks)
TL 686 448
Sorry I did not make myself clear and I hope I have done now. Thanks. Dudley Miles (talk) 22:49, 27 April 2017 (UTC)Reply
Might be worth asking for a script - Rich Farmbrough, is this in your area of expertise? --Redrose64 🌹 (talk) 18:54, 29 April 2017 (UTC)Reply
The conversion is non-trivial, I use a perl module to perform it. All the best: Rich Farmbrough, 19:29, 29 April 2017 (UTC).Reply
Thanks. At least I know that I am not missing out on an obvious fix. Dudley Miles (talk) 20:18, 29 April 2017 (UTC)Reply

gbmapscaled

edit

{{gbmapscaled}} has a page template:gbmapscaled, but the content is documentation for {{gbmapping}} and the talk page redirects here?? There is no documentation to explain this strange construction that I have just found: {{gbmapscaled|SP772285|25|SP772285}} Anyone know what might be [might have been] intended? Any reason why I shouldn't just swap it out for a simple {{gbmapping|SP772285}} given that the infobox that it is being used in has a standard {{mapframe}}? --John Maynard Friedman (talk) 14:59, 13 May 2021 (UTC)Reply

@John Maynard Friedman: It seems to be valid usage. {{gbmapscaled}} is a front end for {{OS coord}} where the first parameter is the grid ref; the second param is the scale in thousands, so |25 sets a scale of 1:25000; and the third param is the text to display in the link. So {{gbmapscaled|SP772285|25|SP772285}} is exactly equivalent to {{OS coord|SP772285_region:GB_scale:25000|SP772285}} which produces SP772285. For information on region:GB and scale:25000, see Template:Coord#region:R and Template:Coord#scale:N. --Redrose64 🌹 (talk) 18:48, 13 May 2021 (UTC)Reply
Thank you, Redrose64, that was what I needed to know. It would be nice if that info could be added to the template doc or better still the gbmapscaled template given its own doc page.--John Maynard Friedman (talk) 19:58, 13 May 2021 (UTC)Reply