মডিউল:families/templates
অবয়ব
এই মডিউলের জন্য মডিউল:families/templates/নথি-এ নথিপত্র তৈরি করা হয়ে থাকতে পারে
local export = {}
function export.exists(frame)
return require("Module:families").getByCode(
require("Module:parameters").process(frame.args, {
[1] = {required = true}
})[1]
) and "1" or ""
end
function export.getByCode(frame)
return require("Module:language-like").templateGetByCode(
require("Module:parameters").process(frame.args, {
[1] = {required = true, type = "family"},
[2] = {required = true},
[3] = {}
})
)
end
function export.getByCanonicalName(frame)
local fam = require("Module:families").getByCanonicalName(
require("Module:parameters").process(frame.args, {
[1] = {required = true}
})[1]
)
return fam and fam:getCode() or ""
end
return export