Module:names: Difference between revisions

No change in size ,  6 August 2023
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
(Created page with "local export = {} local m_languages = require("Module:languages") local m_parameters = require("Module:parameters") local params = { [1] = {required = true}, [2] = {alias_of = "gender"}, ["gender"] = {}, ["from"] = {}, ["nocat"] = {type = "boolean"}, } local function check_gender(gender) if gender == nil then return nil end if gender == "male" or gender == "female" or gender == "unisex" then return gender end error("Invalid gender was supplied") end local...")
 
No edit summary
Line 49: Line 49:


function export.givenName(frame)
function export.givenName(frame)
return export.format_name(get_data(frame), "given name")
return export.format_name(get_data(frame, "given name"))
end
end


function export.surname(frame)
function export.surname(frame)
return export.format_name(get_data(frame), "surname")
return export.format_name(get_data(frame, "surname"))
end
end


return export
return export