4,951
edits
Falterfire (talk | contribs) (Added testApostrophe) |
Falterfire (talk | contribs) 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 | ||
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 |