Module:IPAc-de: Difference between revisions

Content deleted Content added
starting on a new version of the template
 
wasn't that hard!
 
Line 1:
local data = mw.loadData( 'Module:IPAc-de/data/sandbox' )
 
local p = {}
 
function p.toIPA( frameargs )
local ipa = ""
-- In progress, see [[Module:IPAc-de/sandbox]]
for k, v in ipairs(args)
do
if k ~= "text"
then
ipa = ipa .. data[v]
end
end
return mw.getCurrentFrame():expandTemplate({
title = "IPA",
args = {
"de",
ipa,
args["text"]
}
})
end
 
function p.main( frame )
return p.toIPA( frame:getParent().args )
end