Module:User:Isomorphyc/test-pron
Appearance
- This module sandbox lacks a documentation subpage. Please create it.
- Useful links: root page • root page’s subpages • links • transclusions • testcases • sandbox
local export = {}
function export.test(frame)
local args = frame:getParent().args
local word = args[1] or mw.title.getCurrentTitle().text
local data = mw.loadData('Module:User:Isomorphyc/test-pron/data')
local txt = ""
for i = 1,10 do --I seem to be completely unable to do things the right way in Lua
for j=1,10 do
txt = txt .. (data[word][i] and (data[word][i][j] and ( " e" .. i .. "p" .. j .. ". " .. data[word][i][j]) or "") or "")
end
txt = txt .. (data[word][i+1] and " ; " or "")
end
return txt
end
return export