Module:names: Difference between revisions

m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
mNo edit summary
 
Line 30: Line 30:
function export.format_name(data)
function export.format_name(data)
local out = {"A"}
local out = {"A"}
local cat = "[[Category:" .. data.language.name .. " " .. data.type .. "s]]"
local cat = "[[Category:" .. data.language.name .. " names]][[Category:" .. data.language.name .. " " .. data.type .. "s]]"
if data.gender then
if data.gender then
cat = cat .. "[[Category:" .. data.language.name .. " " .. data.gender .. " " .. data.type .. "s]]"
cat = cat .. "[[Category:" .. data.language.name .. " " .. data.gender .. " " .. data.type .. "s]]"