Module:rad-stem/templates: Difference between revisions

m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
mNo edit summary
Line 162: Line 162:
local disable_ipa = args['noipa'] or false
local disable_ipa = args['noipa'] or false
if args[1] and args[2] ~= "adj" and args[2] ~= "adv" then error("Second parameter must be adj or adv.") end
if args[1] and args[2] ~= "adj" and args[2] ~= "adv" then error("Second parameter must be adj or adv") end
-- process alts --
-- process alts --
if args['alt'] then
if args['alt'] then
if stem == nil then error("You cannot have alternative forms of a nil stem.") end
if stem == nil then error("You cannot have alternative forms of a nil stem") end
local stem_temp = {
local stem_temp = {
[1] = {word = args[1]},
[1] = {word = args[1]},