Module:names: Difference between revisions

31 bytes removed ,  19 February 2021
no edit summary
(Created page with "local m_languages = require("Module:languages") local m_links = require("Module:links") local m_utilities = require("Module:utilities") local m_table = require("Module:table")...")
 
No edit summary
Line 458: Line 458:
table.insert(textsegs,
table.insert(textsegs,
(dimtype and dimtype .. " " or "") ..
(dimtype and dimtype .. " " or "") ..
"[[diminutive]]" ..
"diminutive" ..
(xlittext ~= "" and ", " .. xlittext .. "," or "") ..
(xlittext ~= "" and ", " .. xlittext .. "," or "") ..
" of the ")
" of the ")
Line 466: Line 466:
table.insert(genders, args["or"])
table.insert(genders, args["or"])
table.insert(textsegs, table.concat(genders, " or ") .. " ")
table.insert(textsegs, table.concat(genders, " or ") .. " ")
table.insert(textsegs, numdims > 1 and "[[given name|given names]]" or
table.insert(textsegs, numdims > 1 and "given names" or
"[[given name]]")
"given name")
local need_comma = false
local need_comma = false
if numdims > 0 then
if numdims > 0 then
Line 678: Line 678:
table.insert(textsegs, " " .. m_table.serialCommaJoin(nametypes))
table.insert(textsegs, " " .. m_table.serialCommaJoin(nametypes))
if args.dim then
if args.dim then
table.insert(textsegs, " [[diminutive]]")
table.insert(textsegs, " diminutive")
elseif args.aug then
elseif args.aug then
table.insert(textsegs, " [[augmentative]]")
table.insert(textsegs, " augmentative")
end
end
table.insert(textsegs, " ")
table.insert(textsegs, " ")