![]() | This is the module sandbox page for Module:IPAc-de (diff). |
![]() | This module is rated as pre-alpha. It is unfinished, and may or may not be in active development. It should not be used from article namespace pages. Modules remain pre-alpha until the original editor (or someone who takes one over if it is abandoned for some time) is satisfied with the basic structure. |
![]() | This module's documentation is missing, inadequate, or does not accurately describe its functionality or the parameters in its code. Please help to expand and improve it. (August 2025) |
Usage
edit{{#invoke:IPAc-de|function_name}}
local data = mw.loadData( 'Module:IPAc-de/data/sandbox' )
local p = {}
function p.toIPA( args )
local ipa = ""
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
return p