Jump to content

Module talk:OSM Location map

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by RobinLeicester (talk | contribs) at 23:34, 5 March 2025 (Preparing to go live with replacement for the wiki-template version: new section). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Preparing to go live with replacement for the wiki-template version

I have finally got to grips with enough of Lua/Scribuntu to convert the whole of the existing suite of {{OSM Location map}} templates to into a Lua module. The intention here is to retain complete 'functional equivalence', but for various reasons there may be tiny shifts in position of some elements, which I would propose to 'leave be'. Differences which have a significant impact on existing maps, or throw up errors, will need to be addressed before going live, if at all possible.

The main objectives in this rewrite are:

  • Better performance/lower resource use. The maps via the module are making much lower demands on the resources and load-times.
  • Enable 'notionally unlimited' amount of dots, instead of the 60 limit. Clearly there would be a point beyond which the resources will be affected, but the module has no built in limit.
  • Use of Lua will make it possible to add features within more maintainable code.
  • Also to develop an alternative more condensed parameter regime, to give more flexibility/control options and more concise template text (and one day, maybe external data file).

This last point will be a thing to look at in detail later on. The first task at this point is to test out any potentially troublesome maps before going live, so any help in checking maps would be much appreciated.

{{OSM Location map/sandbox}} is now using the new module, so you can test a map 'in-situ' by simply adding '/sandbox' to the template name and preview it. (Note: don't leave it saved with the sandbox version, as it might be being used later for testing stuff). If you find errors the next step is to paste the full template code into a 'testcases table' template at {{OSM Location map/testcases}}. This allows side-by-side comparison of how it is supposed to look, so the issue can be debugged. My suggestion is that you notify about problem maps on this talk page, which is also a good place to initiate any other discussions on the switch-over to using the module

Thanks for any input people can make. RobinLeicester (talk) 23:34, 5 March 2025 (UTC)[reply]