Модул:families/templates
Изглед
Script error: The function "main" does not exist.
local export = {}
function export.exists(frame)
return require("Модул:families").getByCode(
require("Модул:parameters").process(frame.args, {
[1] = {required = true}
})[1]
) and "1" or ""
end
function export.getByCode(frame)
return require("Модул:language-like").templateGetByCode(
require("Модул:parameters").process(frame.args, {
[1] = {required = true, type = "family"},
[2] = {required = true},
[3] = {}
})
)
end
function export.getByCanonicalName(frame)
local fam = require("Модул:families").getByCanonicalName(
require("Модул:parameters").process(frame.args, {
[1] = {required = true}
})[1]
)
return fam and fam:getCode() or ""
end
return export