Module:mg-pron: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 130: Line 130:
[1] = { default = mw.title.getCurrentTitle().text }, -- PAGENAME
[1] = { default = mw.title.getCurrentTitle().text }, -- PAGENAME
[2] = {},
[2] = {},
["pos"] = {},
}
}
local args = require("Module:parameters").process(frame:getParent().args, params)
local args = require("Module:parameters").process(frame:getParent().args, params)
local term = frame.args[1] or mw.title.getCurrentTitle().nsText == 'Template' and "gueizuñe" or args[1]
local term = frame.args[1] or mw.title.getCurrentTitle().nsText == 'Template' and "gueizuñe" or args[1]
local pos = frame.args[2] or args[2]
local pos = frame.args[2] or args.pos or args[2]
local is_g = match(term, "g")
local is_g = match(term, "g")