Module:IPAc-de/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1:
local data = mw.loadData( 'Module:IPAc-de/data/sandbox' )
 
local p = {}
 
function p.toIPA( args )
local ipa = ""
return args[1]
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