Module:jugs-noun-cell: Difference between revisions
Created page with "local m_links = require("Module:links") local lang = require("Module:languages").getByCode("non") local export = {} local accel_forms = { --NOUNS nsi = "nom|s", nsd = "def|nom|s", npi = "nom|p", npd = "def|nom|p", asi = "acc|s", asd = "def|acc|s", api = "acc|p", apd = "def|acc|p", dsi = "dat|s", dsd = "def|dat|s", dpi = "dat|p", dpd = "def|dat|p", gsi = "gen|s", gsd = "def|gen|s", gpi = "gen|p", gpd = "def|gen|p", --LAUDATIVES nsi_la = "nom|s|la",..." |
No edit summary |
||
| (82 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 67: | Line 82: | ||
if words then | if words then | ||
for i,j in ipairs(words) do | for i,j in ipairs(words) do | ||
table.insert( | table.insert(out, args[1]) | ||
end | end | ||
end | end | ||
end | end | ||
return table.concat( | return table.concat(out, ", ") | ||
end | end | ||
return export | return export | ||