Modul:families/templates
Napohlad
Dokumentacija za tutón modul hodźi so na Modul:families/templates/dokumentacija wutworić
local export = {}
function export.exists(frame)
return require("Modul:families").getByCode(
require("Modul:parameters").process(frame.args, {
[1] = {required = true}
})[1]
) and "1" or ""
end
function export.getByCode(frame)
return require("Modul:language-like").templateGetByCode(
require("Modul:parameters").process(frame.args, {
[1] = {required = true, type = "family"},
[2] = {required = true},
[3] = {}
})
)
end
function export.getByCanonicalName(frame)
local fam = require("Modul:families").getByCanonicalName(
require("Modul:parameters").process(frame.args, {
[1] = {required = true}
})[1]
)
return fam and fam:getCode() or ""
end
return export