Module talk:Naval Vessel Register URL
New Module:NVR implementation
I've implemented a new Lua module Module:NVR intended to replace the implementation of {{NVR url}} and {{NVR SC url}} . See Module_talk:NVR/testcases for the test cases. The goal of the Lua implentation was to preserve the style of output from the current {{NVR url}} template, but with links that point to the new entries in the NVR database. The Lua code will correctly handle "id" parameter values that are in both the "old" scheme as well as the "new" scheme. Where possible the code outputs links to the new NVR entries, even if an id that is from the older scheme is supplied. It also handles all of the "exceptions" identified above (in some cases falling back to returning links to the older pages using the older linking scheme if I couldn't identify the correct page in the new scheme. Because it is used on more than a thousand pages, I didn't switch {{NVR url}} and {{NVR SC url}} to use Module:NVR on my own, but if there are no suggested improvement or objections, I'll make the switch. The new code is currently installed in NVR url's sandbox if you want to experiment with it (as well as at the service versions's sandbox). Use them link {{NVR url/sandbox|OLDIRON}}
. —RP88 (talk) 01:21, 28 September 2016 (UTC)