Module:families/templates
Itsura
Ang dokumentasyon ng ng modyul na ito ay maaaring likhain sa Module:families/templates/doc
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