Module:Sandbox/FalterTest: Difference between revisions

no edit summary
(Added testApostrophe)
No edit summary
Line 20: Line 20:
function p.testApostrophe(frame)
function p.testApostrophe(frame)
   local pageName = frame.args ~= nil and frame.args[1] or frame
   local pageName = frame.args ~= nil and frame.args[1] or frame
  local strArray = {}
   for i = 1, #pageName do
   for i = 1, #pageName do
     mw.log(string.sub(pageName, i, i)..' ['..pageName:byte(i)..']')
     local newStr = string.sub(pageName, i, i)..' ['..pageName:byte(i)..']'
    table.insert(strArray, newStr)
    mw.log(newStr)
   end
   end
  return table.concat(strArray, '\r\n')
end
end


return p
return p