Module:jugs-noun-cell: Difference between revisions
No edit summary Tag: Reverted |
No edit summary |
||
| (55 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
local export = {} | local export = {} | ||
local accel_forms = { | local accel_forms = { | ||
-- | --NEUTRALS | ||
nsi = "nom|s", | nsi = "nom|s", | ||
nsd = "def|nom|s", | nsd = "def|nom|s", | ||
| Line 40: | Line 38: | ||
gpd_la = "def|gen|p|la", | gpd_la = "def|gen|p|la", | ||
--PEJORATIVES | |||
nsi_pej = "nom|s|pej", | |||
nsd_pej = "def|nom|s|pej", | |||
npi_pej = "nom|p|pej", | |||
npd_pej = "def|nom|p|pej", | |||
asi_pej = "acc||pej", | |||
asd_pej = "def|acc|s|pej", | |||
api_pej = "acc|p|pej", | |||
apd_pej = "def|acc|p|pej", | |||
dsi_pej = "dat|s|pej", | |||
dsd_pej = "def|dat|s|pej", | |||
dpi_pej = "dat|p|pej", | |||
dpd_pej = "def|dat|p|pej", | |||
gsi_pej = "gen|s|pej", | |||
gs_pejd = "def|gen|s|pej", | |||
gpi_pej = "gen|p|pej", | |||
gpd_pej = "def|gen|p|pej", | |||
} | } | ||
function export.create(frame) | function export.create(frame) | ||
local args = frame:getParent().args | local args = frame:getParent().args | ||
local | local out = {} | ||
if not args[1] or args[1] == "" then | if not args[1] or args[1] == "" then | ||
return "―" | return "―" | ||
| Line 63: | Line 79: | ||
accel = {form = accel_form} | accel = {form = accel_form} | ||
end | end | ||
local words = mw.text.split(args[1], "%s*,%s*") | |||
if words then | |||
for i,j in ipairs(words) do | |||
table.insert(out, args[1]) | |||
end | |||
end | |||
end | end | ||
return table.concat( | return table.concat(out, ", ") | ||
end | end | ||
return export | return export | ||