2,788
edits
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
function export.show(frame) | function export.show(frame) | ||
local args = require("Module:parameters").process(frame:getParent().args, params) | local args = require("Module:parameters").process(frame:getParent().args, params) | ||
local language = require("Module:languages").get_by_code(args[ | local language = require("Module:languages").get_by_code(args[1]) | ||
if language == nil then | if language == nil then | ||
error("No such language: " .. args[ | error("No such language: " .. args[1]) | ||
end | end | ||
local language_pron = "Appendix:" .. language.name .. "_pronunciation" | local language_pron = "Appendix:" .. language.name .. "_pronunciation" | ||
Line 18: | Line 18: | ||
local class = "IPA" | local class = "IPA" | ||
if args["nolarge"] then class = class .. " nolarge" end | if args["nolarge"] then class = class .. " nolarge" end | ||
for i, i_ipa in ipairs(args[ | for i, i_ipa in ipairs(args[2]) do | ||
if i > 1 then out = out .. ", " end | if i > 1 then out = out .. ", " end | ||
out = out .. '<span class="' .. class .. '">' | out = out .. '<span class="' .. class .. '">' |