Module:Ordnance Survey coordinates/sandbox: Difference between revisions

Content deleted Content added
more cleanup
lazy load module
Line 33:
local getArgs = require('Module:Arguments').getArgs
local yesno = require('Module:Yesno')
local preview = require('Module:If preview')
local namespace = mw.title.getCurrentTitle().namespace;
 
Line 312 ⟶ 311:
 
local function warning(errmsg)
local preview = require('Module:If preview')
local msg = errmsg or 'Empty OS grid ref'
 
local html = preview._warning({ msg })