Module:IPA: difference between revisions

Content deleted Content added
add format_enPR_full
use format_references() in Module:references to format references
Line 4:
local force_cat = false -- for testing
 
local m_data = mw.loadData("Module:IPA/data") -- [[Module:IPA/data]]
local m_str_utils = require("Module:string utilities")
local m_symbols = mw.loadData("Module:IPA/data/symbols") -- [[Module:IPA/data/symbols]]
local references_module = "Module:references"
local syllables_module = "Module:syllables"
local utilities_module = "Module:utilities"
Line 295 ⟶ 296:
refspecs = item.refs
end
local refs = {}
if #refspecs > 0 then
forbit _,= refspecbit in.. ipairsrequire(references_module).format_references(refspecs) do
if type(refspec) ~= "table" then
refspec = {text = refspec}
end
local refargs
if refspec.name or refspec.group then
refargs = {name = refspec.name, group = refspec.group}
end
table.insert(refs, mw.getCurrentFrame():extensionTag("ref", refspec.text, refargs))
end
bit = bit .. table.concat(refs)
end
end