Content deleted Content added
use unicode functions |
make Lua more idiomatic |
||
Line 53:
end
-- end hack
e =
end▼
if mw.ustring.len(e) == 0 then▼
pr = math.pow(10.0,(5.0-pr))
local T1 = mw.ustring.byte(mw.ustring.sub(lett,1,1))-65
Line 286 ⟶ 282:
local function split(s,sep)
-- split a string s into chunks, separated by sep
local t = {}
for chunk in mw.ustring.gmatch(s,"([^"..sep.."]+)") do
Line 315 ⟶ 309:
end
return html
local function empty(s)
end
Line 320 ⟶ 318:
local args = getArgs(frame,{parentFirst=true,parentOnly=false,frameOnly=false})
local input = args[1]
if
return warning(nil)
end
Line 337 ⟶ 335:
LL = {IrishEN2LL(firstArg,args[2])}
restargs = 3
if
linktitle=args[1]..'_'..args[2]
end
Line 344 ⟶ 342:
LL = {GBEN2LL(args[1],args[2])}
restargs = 3
if
linktitle=args[1]..'_'..args[2]
end
Line 351 ⟶ 349:
LL = {NGR2LL(args[1])}
restargs = 2
if
linktitle=args[1]
end
|