Module:mtev-pronunc: Difference between revisions

Melinoë (talk | contribs)
No edit summary
Melinoë (talk | contribs)
No edit summary
Line 412: Line 412:
end
end


local function make_table(dialects, novedic, noclassical, nolabel)
local function make_table(dialects, noclassical, nolabel)
local dial_types = {'rig', 'cla'}
local dial_types = {'cla'}
if novedic then
table.remove(dial_types, 1)
end
if noclassical then
if noclassical then
Line 470: Line 466:
w = {default = mw.loadData("Module:headword/data").pagename},
w = {default = mw.loadData("Module:headword/data").pagename},
a = {list = true, allow_holes = true, type = 'number'},
a = {list = true, allow_holes = true, type = 'number'},
novedic = {type = 'boolean'},
noclassical = {type = 'boolean'},
noclassical = {type = 'boolean'},
nolabel = {type = 'boolean'},
nolabel = {type = 'boolean'},
Line 483: Line 478:
local dialects = make_dialects(text)
local dialects = make_dialects(text)
return make_table(dialects, args.novedic, args.noclassical, args.nolabel)
return make_table(dialects, args.noclassical, args.nolabel)
end
end


return export
return export